Is it possible to set admin/sudo privileges or remove/add users through Python? I'm not saying how to use a script as sudo (although I do also want to know that), but mainly how to set the privileges.
Asked
Active
Viewed 36 times
0
-
One option is to `sudo myscript.py` – tdelaney Dec 02 '15 at 04:57
-
You can also do os.system("gksudo somecommand") for any system running gnome or a minimal gnome form for commands that require super-user privileges. – Alex Huszagh Dec 02 '15 at 05:20