I have created a python application in my Ubuntu machine which run commands to terminal. I would like when the program start to continue running as root. I know that to get a root terminal we use the following command:
sudo -i
then the shell ask us to type our pass and when we do it we have root for that terminal season until we type
exit
But can I set the pass parameter though a argument ? So the terminal won't prompt a 'give a pass' line?
Another question is when I use a live usb and I want to run sudo -i
to get root privileges do I need to type a pass or not?
sudo -i
command? Cause I don't get any window when I run the command in my python program. And what happens when I use live Ubuntu? Can I usesudo -i
wihout pass? – Nikos KLon Jul 30 '15 at 09:22gksu
isn not installed and I need to use the python script in all ubuntu machines either they have or notgksu
. If I have a live cd then can just usesudo -i
? As this question say (http://askubuntu.com/questions/284306/why-is-gksu-no-longer-installed-by-default) – Nikos KLon Jul 30 '15 at 09:37