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:
then the shell ask us to type our pass and when we do it we have root for that terminal season until we type
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?