Difference between revisions of "Linux comand: visudo"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (→visudo) |
Rafahsolis (talk | contribs) |
||
| Line 11: | Line 11: | ||
or with some arguments: | or with some arguments: | ||
joe ALL=(ALL) NOPASSWD: /full/path/to/command ARG1 ARG2 | joe ALL=(ALL) NOPASSWD: /full/path/to/command ARG1 ARG2 | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 08:02, 7 June 2018
visudo
To give a user sudo permits
sudo visudo
add line:
pi ALL=(ALL) NOPASSWD: ALL
or
root ALL=(ALL:ALL) ALL
To allow some unprivileged user to run some commands with sudo:
joe ALL=(ALL) NOPASSWD: /full/path/to/command
or with some arguments:
joe ALL=(ALL) NOPASSWD: /full/path/to/command ARG1 ARG2