HOW TO install sudo
Posted: 03 Sep 2010, 12:50
I often refer to sudo in my tips. If you do not have it installed, you will have to write su and punch your root password.
Install sudo.
To make use of sudo you have to do it via visudo. If you are familiar with vim all you have to do is to type visudo as root in a terminal.
If you are like me you prefere nano as an editor so as root, I do a:
su
password
Add the following line in the user privilege specification section:
username ALL=(ALL) ALL
In my case that would be:
Punch CTRL+X and say yes to saving the file.
That is it - you can now use sudo.
The data entered in visudo is saved in /etc/sudoers file. DO NOT ATTEMPT TO EDIT IT DIRECTLY
You must use the procedure described above. 
Install sudo.
To make use of sudo you have to do it via visudo. If you are familiar with vim all you have to do is to type visudo as root in a terminal.
If you are like me you prefere nano as an editor so as root, I do a:
su
password
Code: Select all
EDITOR=nano visudoAdd the following line in the user privilege specification section:
username ALL=(ALL) ALL
In my case that would be:
Code: Select all
viking60 ALL=(ALL) ALLPunch CTRL+X and say yes to saving the file.
That is it - you can now use sudo.
The data entered in visudo is saved in /etc/sudoers file. DO NOT ATTEMPT TO EDIT IT DIRECTLY

You are not the first, for sure! Lemme know if it works for ya 