1> Open Terminal / Konsole and then login as root :
$ su -
2> Change the permission of /etc/sudoers to read-write mode :
# chmod u=rw /etc/sudoers
3> Open the file using a texteditor (I am using vim) and search for :
# vim /etc/sudoers
## Allow root to run any commands anywhereBelow that add (by i in vim) this:
root ALL=(ALL) ALL
username ALL=(ALL) ALLNote: Here you can add or remove users and may have more than one user
4> Save and close the file ( Q then wq in vim) and change permission back to default :
# chmod u=r /etc/sudoers
Alternatively you can also go for :
$ su -c /usr/sbin/visudoIt will open sudoers file in rw mode in vim editor
2 comments:
Nice one bro... Remember, we were having soo many probs with sudo once... ? with bluez...
Cool blog..
Thanks for the compliment.. you know yours is the first comment in my blog.. As for the sudo problem is concerned all the credits goes to you...
Post a Comment