How do I get my python program to get the root password ?

David david at abbottdavid.com
Sat Jan 24 07:12:47 CET 2009


Linuxguy123 wrote:
> I want to make a python program that I can run as a normal user that
> changes the permission on some device files.  It will need to ask me for
> the root password and then run chown as root in order to do this. 
> 
> How do I accomplish this (easily) ?
> 
> Thanks
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
> 
> 
I am new to Python, in my process of learning I did put together an 
example of pexpect that may help.
http://asterisklinks.com/wiki/doku.php?id=wiki:pexpect
-david

-- 
Powered by Gentoo GNU/LINUX
http://www.linuxcrazy.com
pgp.mit.edu




More information about the Python-list mailing list