In this article, we will show you how to add a user to the sudo group in Debian 9.
Every time you install a fresh new operating system, a user named root is being created automatically. This user is extremely powerful and even dangerous because it has a complete access to the server. Typically, the root user is only used for administrative tasks, as there are no restrictions present like they are for any other user.
Note that Linux does not have an “undo” command. In order to reduce the risk of irreversible damage to the system, we can create a user who will not have privileges to execute commands that can affect the server. However, having administrative access may still be appropriate for everyday tasks – sometimes we need the power to execute some command as an administrative user. This benefit can be utilized using the sudo command. However, to use the sudo command, the user is required to be present in the sudo group. Let’s get started with the tutorial. This should work in Debian 10 as well as other future versions of Debian, as these commands usually only have small variations over time.