
Open a terminal (alt+f2 gnome-terminal , use a dropdown terminal, whatever you want.) and give this command as ROOT :
$su -
Enter your root password (or your username's password on some distros)
#visudo
Now use your Up/Down arrows (you may prefer PgUp and PgDn keys) and navigate to this line :
root ALL=(ALL) ALL
Under that line add this line (DO NOT FORGET TO CHANGE "user" part with your username!) :
user ALL=(ALL) ALL
You can use Shift + Insert to paste.
To save, write :w (hit enter of course) to save.To exit, write :quit and hit enter.I am poor at vi/vim or whatever you call that :)
You can find the sample screenshot of sudoers file (the part we have edited) at the beginning of my blog post.
| | | | |
| | | | |
| | | | |
|
No comments:
Post a Comment