Created
December 30, 2014 08:58
-
-
Save mjvdende/9fa6a1264ca9db3f4087 to your computer and use it in GitHub Desktop.
I want to run shell command as sudo without providing a password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Allow root to run any commands anywhere | |
root ALL=(ALL) ALL | |
user ALL=(ALL) ALL | |
Cmnd_Alias QADATE = /bin/date | |
Cmnd_Alias CHMOD = /bin/chmod | |
Cmnd_Alias NTPDATE= /sbin/ntpdate | |
root, user ALL= NOPASSWD: QADATE, CHMOD, NTPDATE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment