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
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
0 comentarios:
Post a Comment