Is there a way to gain root access without user input?
I want a script automatically looks at a stored password, then authenticates with that password. Is there a way to do this without user input? I tried man su and man sudo, but these don’t support this. Is this possible?
P.S: I know python, sh and bash.
Check out this link. It explains how to do this in python. Root Access Python
The basic of it is changing the permission of the script itself.