To create a new user in Debian / Ubuntu you will need to be logged in as the root user. There are two options I will explain that you can choose from when creating a new user.

Creating A New User With The Command adduser

This is the command that is used when you want to add a user with a home directory. Below the user kk6jyt will be created with a home directory located at “/home/kk6jyt/”. Whenever the user logs in to the server, they will be placed into their home folder by default.

adduser kk6jyt

To remove the user is just as easy.

deluser kk6jyt

Creating A New User With The Command useradd

The command useradd predates adduser and it’s use is discouraged.

useradd kk6jyt

To remove the user the command is below.

userdel kk6jyt

Resources

askubuntu.com – Chapter 8 – Managing User Accounts

Pin It on Pinterest

Share This