[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]
You must log in to post a comment.