use the program called 'expect' it can be called via python. you can build a script using the 'autoexpect' tool. http://www.linuxjournal.com/article/3065
cheers Raghul wrote: > Hi > Is it possible to login as a root in linux using python script? > What I need is when I execute a script it should login as root and > execute my command and logout from root to my existing account. IS is > possible? > > Thanx in advance. -- http://mail.python.org/mailman/listinfo/python-list