The command sudo usermod -a -G sudo pramod is used to add a user named "pramod" to the "sudo" group on a Linux system. By adding a user to the "sudo" group, they are granted administrative privileges and can execute commands with superuser (root) privileges using the sudo command.
(Or)
Open terminal with the user already having sudo permission and run command
$ sudo visudo
Locate the section in the sudoers file that defines user privileges. It usually looks like this:
# User privilege specification
root ALL=(ALL:ALL) ALL
To grant sudo access to a specific user, add the following line below the root user entry:
pramod ALL=(ALL:ALL) ALL
Save and exit
***
No comments:
Post a Comment