Thursday, July 28, 2011

How to give root permission privilages to a user

There are lots of applications and commands in ubuntu which need root passwords to be executed. you can avoid giving that password always, by following steps(editing /etc/sudoers.tmp).
in terminal type

1. sudo visudo
this will open up a file in terminal

2. Locate the following line
%sudo ALL=(ALL:ALL) ALL

3. Add the following line after above line
username ALL=NOPASSWD: ALL

4. Ctrl+x
it will ask to save

5. Give yes

You are done!!!
Then it will never ask you root passwords any more for applications which needs root password. :)

No comments:

Post a Comment