Re: changeing users on linux

2005-11-12 Thread Mike Meyer
[EMAIL PROTECTED] writes: > the password is for loging into root The setuid call will fail unless you're already root. You can't, as some user other than root, change your userid, so the answer to the original question with the added restriction is "You can't". http://www.

Re: changeing users on linux

2005-11-12 Thread jepler
On Fri, Nov 11, 2005 at 11:25:56PM -0500, Mike Meyer wrote: > You didn't say what the password was for, so I skipped asking for it. You're a real comedian. Jeff pgpxqmFz5jalu.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: changeing users on linux

2005-11-11 Thread darkchild50
the password is for loging into root -- http://mail.python.org/mailman/listinfo/python-list

Re: changeing users on linux

2005-11-11 Thread Mike Meyer
[EMAIL PROTECTED] writes: > how would i go about makeing a program in python that asks for username > and password and changes to that user? For some definition of "changes to that user": # Untested code from pwd import getpwnam from os import setuid setuid(getpwnam(raw_input("Who do you want to

changeing users on linux

2005-11-11 Thread darkchild50
how would i go about makeing a program in python that asks for username and password and changes to that user? -- http://mail.python.org/mailman/listinfo/python-list