Ubuntu – Adding / Editing Users

[sourcecode language=”bash”]sudo adduser newuser[/sourcecode]

You can create the sudo user by opening the sudoers file with this command:

[sourcecode language=”bash”]sudo /usr/sbin/visudo[/sourcecode]

File looks like this

[sourcecode language=”bash”]
# User privilege specification
newuser ALL=(ALL:ALL) ALL

Delete a user

[sourcecode language=”bash”]
sudo userdel newuser
sudo rm -rf /home/newuser

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.