Sudo

From PacBSD Wiki
Jump to: navigation, search

Sudo ("substitute user do") allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments.[1]

Installation

Install the sudo package, available in the official repositories:

Configuration

Example config is located in /usr/local/etc/sudoers.example

In order to add user to a group wheel, type:

pw groupmod wheel -m USERNAME