"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > This is on Linux... I have a daemon running as root and I want to > execute another Python program as another user (a regular user). I have > the name of the user and can use the 'pwd' and 'grp' modules to get > that user's user and group ids. What I don't understand is how to then > go about launching that new program.
Use os.fork to start a new process and have the new process do os.setuid to the new user. Then os.execl (or whatever) to run the target program. -- http://mail.python.org/mailman/listinfo/python-list