Difference between revisions of "Setting up sudo"

From gr0x0rd
Jump to navigation Jump to search
(Created page with "Next, we will emerge sudo, which will allow you to do things as a super user from your own account. Next, we will emerge sudo, # which will allow you to do things as a super u…")
 
Line 1: Line 1:
 
Next, we will emerge sudo, which will allow you to do things as a super user from your own account.
 
Next, we will emerge sudo, which will allow you to do things as a super user from your own account.
  
  Next, we will emerge sudo,
+
  emerge -av app-admin/sudo
# which will allow you to do things as a super user from your own account.
 
 
 
emerge -av app-admin/sudo
 
 
 
# Once sudo is installed, you may have to run
 
 
 
etc-update
 
 
 
# Now we'll need to add your account to the list of sudoers.
 
 
 
nano -w /etc/sudoers
 
 
 
# Find the line that says
 
 
 
root    ALL=(ALL) ALL
 
 
 
# and just below add
 
 
 
<your username> ALL=(ALL) ALL
 
 
 
# and use ctrl-x to exit then save the file. A note about sudo-
 
# you can run any command using sudo, so long as you enter "sudo"
 
# before the command. Sudo will then ask you for a password. Now
 
# that sudo is installed, log out of the root account.
 
 
 
logout
 
 
 
# now enter your new credentials to log into the system.
 
 
 
login: <username>
 
password: <your password>
 
 
 
  
 
Once sudo is installed, you may have to run  
 
Once sudo is installed, you may have to run  

Revision as of 19:13, 3 December 2010

Next, we will emerge sudo, which will allow you to do things as a super user from your own account.

emerge -av app-admin/sudo

Once sudo is installed, you may have to run

etc-update

Now we'll need to add your account to the list of sudoers.

nano -w /etc/sudoers

Find the line that says

root    ALL=(ALL) ALL

and just below add

<your username>		ALL=(ALL) ALL

and use ctrl-x to exit then save the file. A note about sudo- you can run any command using sudo, so long as you enter "sudo" before the command. Sudo will then ask you for a password. Now that sudo is installed, log out of the root account.

logout

now enter your new credentials to log into the system.

login: <username>
password: <your password>