sudo

When you install Debian, a default account is created called root. This user has full system access and should be used only for administrative tasks. There are basically no restrictions on what you can do to your system as the root user, which is powerful, but extremely dangerous. To alleviate this risk, we can let some users to execute single commands as root. The command sudo allows you running programs with the security privileges of root.


The benefits of using sudo are the following:


Debian allows users that are member of a group called sudo to run commands with the help of the command sudo. In order to add a user to the group sudo:


The moment you are member of group sudo, you can run commands with the root privileges just adding sudo before the command. The system will ask for your password (no the root password but your standard user password).


The default timeout of sudo is 5 minutes; that is, Linux will remember your password for 5 minutes by default.


In order to check if you are member of the group sudo run the following command: id. This command shows a list of groups you are member of. If 27(sudo) appears then,you are member of the group.


Good practice:


IMPORTANT: From now until the end of the academic year, use the sudo command for administrative tasks and DO NOT LOG IN to the system as the root user.