233k views
4 votes
How to give sudo permission to user in linux

1 Answer

0 votes

Final answer:

To give sudo permission to a user in Linux, you need to add the user to the sudo group.

Step-by-step explanation:

To give sudo permission to a user in Linux, you need to add the user to the sudo group. This group has the necessary privileges to execute administrative commands. Here are the steps:


Open a terminal and log in as root or a user with administrative privileges. Use the command usermod -aG sudo [username] to add the user to the sudo group, replacing [username] with the actual username. Logout and log back in for the changes to take effect.

Once the user is added to the sudo group, they will be able to use sudo to execute commands with administrative privileges. For example, to install software or modify system configurations.

User Munter
by
7.3k points