Giving sudo Privileges To A User

The /etc/sudoers.tmp file must be edited, in order to give sudo access to any user.

1. Open a terminal and type,

varsha@varsha-laptop:~$ EDITOR=gedit sudo visudo

visudo is used for editing the sudoers file. See the manual for more details.

varsha@varsha-laptop:~$ man visudo

2. At the end of the file, append,

system_username ALL=(ALL) ALL

where system_username is the username of the user whom you want to give a sudo privilege.

Graphically, it can be done as given in this tutorial.



Comments