So I\'m trying to get a process to be run as a super user from within a python script using subprocess. In the ipython shell something like
proc = subproces
Another way is to make your user a password-less sudo user
.
Type the following on command line:
sudo visudo
Then add the following and replace the
with yours:
ALL=(ALL) NOPASSWD: ALL
This will allow the user to execute sudo
command without having to ask for password (including application launched by the said user. This might be a security risk though