You are not logged in.
Pages: 1
so some of my statements in my shell scripts need to run as root, is there a way to prevent the need to prompt the user for the root password everytime the script is run? ( I'm using sudo [insert commands here]. Is there a more elegant way of doing this? )
Offline
I don't believe there's a more elegant way, no but in the sudoers file you can specify certain commands that can be run without prompting for a password. For example:
%wheel ALL=(ALL) NOPASSWD:/sbin/shutdown
All users in the wheel group can execute shutdown as root without entering a password.
thayer williams ~ cinderwick.ca
Offline
Pages: 1