(super user do)
sudo [opțiuni]
Dintre opțiunile cele mai des folosite amintim:
-b - comanda este rulată în background
-E - este folosit environmentul utilizatorului curent
-g - grupul de utilizatori este specificat
-n - noninteractiv, utilizatorul nu este întrebat de parolă
-s - execută un shell
-u - utilizatorul este specificat
Un exemplu când accesul sudo nu este permis:
snorri@rimu:~$ sudo emacs /etc/resolv.conf
We assume you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
snorri is not in the sudoers file. This incident will be reported.
snorri@rimu:~$
Fisierul de configurare este situat in /etc/sudoers