TOOL » LINUX » PACKAGE

Sudo

Usage

Run a single command as root.

shell
sudo command

Change to root user.

shell
sudo su -
sudo -Es

Sudoers configuration

Start editing the sudoers file with visudo.

The last user specification match is applied to the sudo command.

SyntaxExplanation
%wheel ALL=(ALL) ALLAllow wheel members to run any command as any user
%wheel ALL=(root) NOPASSWD: /bin/programAllow wheel members to run program as root without password