![]() Otherwise, it will display an error on the terminal screen. If the user is added into the sudoers group then, the ‘root’ will display in the result. ![]() To verify that the user is now added into the sudoers group, type the following terminal command: $ sudo whoamiĮnter the password. The above-explained method is enough for granting sudo privileges to a user. Therefore, the above command will change into the following form: $ usermod -aG sudo karim For example, we are adding a user named ‘karim’ into the sudoers group. In the above command, sudo is the group name and user_name is the name of the user. So, add this already existing user into the sudoers group by using the below-mentioned syntax: $ usermod -aG sudo user_name Here, we assume that a user is already created. You can add an existing user into the sudoers group or if you want then create a new user and add this user into the sudoers group. The sudo user authenticates this process using the password. When a command runs with sudo privileges, a password confirmation prompt shows on the terminal. ![]() The members of the sudoer group can run all administrative commands as root. The most frequently used method to assign sudo privileges to a user is to add a user into the sudoers group. Method 1: Add User to a Sudoers Group on Debian 10 In this article, we will explain a method of how to add a user to sudoers using the terminal on the Debian 10 system. So, you can grant some specific privileges and add these trusted users in a sudoers group or a file. The ‘sudo’ command access allows trusted users to execute the administrative commands as another user. When a new user creates an on a Linux system, you grant some Sudo privileges to run administrative commands. Users need root or administrative privileges to install new software on a system through the command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |