Sudo

From Cheatsheet

Jump to: navigation, search

sudo lets a normal user do some things they might need root for without being root

visudo let's you edit who can do what

examples:

 root    ALL=(ALL) ALL
 someuser ALL=(ALL) ALL
 someuser ALL= NOPASSWD: /usr/sbin/somescriptyouwantorun
 someuser ALL= NOPASSWD: /bin/someotherscript
 someotheruser ALL= NOPASSWD: /bin/rm