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
root ALL=(ALL:ALL) ALL
newuser ALL=(ALL:ALL) ALL
[/sourcecode]

Delete a user

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

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