Add User To Sudoers. The usermod command is a command used to grant administrative privileges to regular login users. You can verify whether the user added to the sudo group by running the id command.
Change username with the name of the user that you want to grant permissions to. To add the user to the group run the command below as root or another sudo user. To test the sudo access run the whoami command.
The usermod command is a command used to grant administrative privileges to regular login users.
When users are added to the sudo group they acquire the ability to invoke sudo when running system related tasks. Add user to sudo group. You can verify whether the user added to the sudo group by running the id command. In our case to add user jack to sudoers group we will run usermod ag sudo jack.