For administrators. The sudo command is preferable to su but often your shell account is not configured to use this command. Typical error message: [name] is not in the sudoers file. This incident will be reported You need to:
- Configure sudo to allow the wheel group to use sudo.
- Add the desired accounts to the wheel group.
- Log in as the super user: su -
- Type: i
- Uncomment the specified line (see below)
- Save and quit: [Esc] :wq
# Uncomment to allow people in group wheel to run all commands %wheel ALL=(ALL) ALLThen, add the accounts to the group wheel to give them sudo access. gpasswd -a [name] wheel Adding user [name] to group wheel Then, after you've added your account name,
- Try sudo. You must enter your password (not root!) once per session.