Switch users and sudo access
- Commands
su
- usernamesudo
commandvisudo
(used to edit the sudoers file safely)
- File : /etc/sudoers
## Allows people in group wheel to run all commands
wheel ALL=(ALL) ALL
If we want a user to be able to execute sudo command, we can add them in the wheel
group using usermod
command (see User Account Management)
usermod -aG wheel userName