sudo¶
sudo
allows to run privileged commands without logging in as the root user,
thus avoiding the “root session left open” syndrome.
It also allows sharing administrative access to a machine without sharing the root password, logging etc.
Quickstart¶
- Install the
sudo
package.
$ su -c "apt-get update"
$ su -c "apt-get install sudo"
- Add admin users to
sudo
group
$ su -c "usermod -aG sudo <user>"
- Logout, login again, and test
$ sudo whoami