Asking a user for the root password and executing root only commands...

logistix logistix at zworg.com
Thu Oct 31 08:22:16 EST 2002


> 
> Smart-ass answer:  do you actually test the crap you spew?
> 

Yes.  Here was my test script:

#!/usr/local/bin/python
import os
x = os.popen("/sbin/mount /mnt /dev/wd0h") # unused partition
print x.read()
close()

Is /home mounted nosuid on your system?



More information about the Python-list mailing list