Wednesday, March 5, 2014

How to add sudoers users in Linux

8:11 PM

First you need to create a user, if you already created (jump to step 2), is ok, otherwise here's how:

1)Open a terminal and type $useradd nameofyournewuser
   Replace it with the name you want
 1.5) You can add the -m parameter to autocreate the home directory for that user instead type $useradd nameofyournewuser -m

2)Once is created, we need to modify the sudoers list, type
$nano /etc/sudoers 

3)Search for this line
# User privilege specification
root    ALL=(ALL:ALL) ALL
Below that last line add this
nameofyournewuser ALL=(ALL:ALL) ALL *(the syntaxes of that line can change between linux distros, in my case I am using kali linux)
 
4)Press Ctrl+X to save the changes and Y to confirm the changes

5)That's it, logout and login with your new user

Written by

0 comentarios:

Post a Comment

 

© 2013 ClusterKnowledge. All rights resevered. Designed by Templateism

Back To Top