MANAGING USERS

CHANGING IDENTITIES

There are two option to take on the identity of another user:

SU

Start shell as a root:

victor@rasp-4:~ $ su -
Password:
 
root@rasp-4:~#
root@rasp-4:~# su -l victor
 
victor@rasp-4:~ $

SUDO

The difference from su:

Running any command as root without having to enter a password:

Example config for user victor (/etc/sudoers.d/010-victor-nopasswd):

victor ALL=(ALL) NOPASSWD: ALL

Which means:

GROUPS

Adding a user to the group:

# usermod -aG sudo victor # 'a' - append; 'G' - group