So this is practically my first Linux tutorial. We will be creating new Linux user from the Linux settings and 2 ways in Terminal. Making new user is not the same on all Linux systems. If you have any questions you can ask internet or write your question in the comments bellow the YouTube video where others and/or I will try to help you.
Warning
- Username can be maximum of 32 characters. Best practice is to use short username, first character must be ONLY a lower-case letter
a-zor underscores_folowed by lower-case lettersa-z, numbers0-9, underscores_and/or hyphens-. Non-latin characters (cyrillic, Chinese, Greek, …) can be used but it is higly un-advised because it can cause compactibility and other issues, so just user best practice ones. - Password can contain lower case and capital letters
a–z, numbers0-9and/or symbols!@#$%^&*()_+-=[]{}|;:',.<>/?, spaces and unicode characters are generally accepted if your Linux environment uses UTF-8 encoding. Minimum lenght is 8 characters. - Keep at least one administrator user because if you delete all admin accounts and you are left with only standard accounts you you can not manage your Linux anymore and only reinstallation of Linux will help.
Info
Here’s a list of the common groups in popular Linux distributions for users to be part up for various functionality:
- sudo is essential for administrative privileges, allowing the user to execute commands with root-level access.
- adm is often used to allow access to system logs and administrative tasks.
- cdrom is usually used to allow user access to optical drives.
- plugdev grants permission to access external storage devices like external disk drive and USB drives.
- sambashare grants permission to create and manage Samba (Microsoft Windows) network file shares.
- dip allows access to dial-up modem connections.
- lpadmin grants access to printer and print job administration.
- audio provides access to audio devices.
- video allows access to video capture and GPU hardware.
- users is a basic group for system users.
- dialout typically required for modem and serial device access.
- games is sometimes used to give access to game software.
Tip
- Terminal keyboard shortcut is
CTRL + ALT + T. - Press
Enterkeyboard key to confirm each command line!
Note
This tutorial was made in 64-bit Linux Mint distribution / distro, version 22.3 Zena with Cinnamon flavor.
Terminal methods
Info
sudo is to elevate command like adduser, useradd, … with administrative privileges.
Open the Terminal window and create new user with the desired command bellow and always confirm with the Enter keyboard key.
(Click on the individual step or triangle to hide or show the details (images, info, …))
To create standard user (will convert it later to administrator-sudo): Elevating with After each input confirm it with the Now new standard user is created with new user’s home folder Now new user is created. I suggest you restart your computer before you log-in into the new profile, little lower I written down how to do it.adduser wraper/script method
adduser is wraper/script for easyer use that uses useradd commands. It exists in several Ubuntu based distributions or distros like in our case is Linux Mint. Check the beggining of this tutorial for what characters are allowed.sudo adduser tomatobox
sudo the script adduser to create new user which in our case is tomatobox but you choose whatever username you want to create. Result and additional info entry example:[sudo] password for testbox:
info: Adding user `tomatobox' ...
info: Selecting UID/GID from range 1000 to 59999 ...
info: Adding new group `tomatobox' (1001) ...
info: Adding new user `tomatobox' (1001) with group `tomatobox (1001)' ...
info: Creating home directory `/home/tomatobox' ...
info: Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for tomatobox
Enter the new value, or press ENTER for the default
Full Name []: TomatoBox
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
info: Adding new user `tomatobox' to supplemental / extra groups `users' ...
info: Adding user `tomatobox' to group `users' ...
Enter keyboard key.
testbox) if it asks you.Tomato Box where we can use spaces and other characters.Y or y to confirm all data we entered are correct or N / n to fix the data. Confirm it all with the Enter keyboard key./home/tomatobox, added to a newly created user group tomatobox. Now let’s join new user to groups like sudo for administrator privileges and other groups for more access and functionality, of course change tomatobox to your new user name and choose desired groups. Example of adding groups to a user:sudo usermod -aG sudo,adm,cdrom,plugdev,sambashare,dip,audio,video,dialout,games,bluetooth tomatobox
sudo elevates the script usermod to join user tomatobox to new groups seperated by comma , with the flag -aG OR -a -G. Check the beggining of this tutorial for each group meaning!
To create new user (check the beggining of this tutorial for what characters are allowed) use: To set the password (check the beggining of this tutorial for what characters are allowed) for the new user use: The result is: To set the full name for the new user use: You write what you want between the quotes but leave the quotes alone! Full name can contain spaces and other characters. Now new standard user is created with new user’s home folder useradd method
sudo useradd -m -s /bin/bash tomatobox2
/home/tomatobox2).-s is a flag that defines the path to the user’s default login shell which must be followed by the path like in our case is /bin/bash. If you exclude -s /bin/bash your new user will get /bin/sh. bash and sh are two drifferent shells where bash is like sh but with more features, better syntax where most commands works the same but they are not the same thing.sudo passwd tomatobox2
[sudo] password for testbox:
New password:
Retype new password:
passwd: password updated successfully
sudo usermod -c "Tomato Box2" tomatobox2
/home/tomatobox2, added to a newly created user group tomatobox2. Now let’s join new user to groups like sudo for administrator privileges and other groups for more access and functionality. Example of adding groups to a user, of course change tomatobox2 to your new user name:sudo usermod -aG sudo,adm,cdrom,plugdev,sambashare,dip,audio,video,dialout,games,bluetooth tomatobox2
sudo elevating script usermod to join user tomatobox2 to new groups seperated by comma , with the flag -aG OR -a -G. Check the beggining of this tutorial for each group meaning!
Now when the new user is created and restart the computer to apply changes and then log-in to new user account.
-
Left mouse button click on the
LMmenu button.
-
Left mouse button click on the
Shut downbutton.
-
Left mouse button click on the
Restartbutton in theShut downwindow.
Individual elements in each line are seperated by colon List all users with home folder
cat /etc/passwd | grep '/home'
cat command shows file content, can combine files and also create new files. With our command we look into passwd file located in /etc folder and commanting it to show lines that contains only /home and here is the result example:testbox:x:1000:1000:Test Box,,,:/home/testbox:/bin/bash
tomatobox:x:1001:1001:Tomato Box,,,:/home/tomatobox:/bin/bash
tomatobox2:x:1002:1002:Tomato Box2:/home/tomatobox2:/bin/bash
:.
/etc/shadow file.,./etc/shells file.
Confirm user deletion with the Enter keyboard key and once you delete, profile folder and that user is gone for ever so be sure you want to do it!deluser to delete specific user and it’s home folder
sudo deluser --remove-home tomatobox2
Linux settings method: Users and Groups
(Click on the individual step or triangle to hide or show the details (images, info, …))
We can open window in few different ways: Left mouse button click Left mouse button click on the left mouse button click in the search box, type OR scrool down to the bottom and left mouse button click on the In new window type in logged-in user password and then left mouse button click on Step 1: Open the window
Users and Groups and use password of currently logged in Linux user to show the window
LM menu, type users and then left mouse button click on the result Users and Groups.
LM menu and then click on the System settings,
users and then left mouse button click on the result Users and Groups
Users and Groups.
Authenticate button.
Step 2: left mouse button click on the
Add button to add new user
Step 3: fill out the data and then left mouse button click on the
Add button
Administrator but you can also set as Standard with limited functionality.Tomato Box or like John or whatever you want.
With left mouse button you click on the desired element to change.Step 4: in the previous window left mouse button click on the new user where we can set user details
Administrator but you can also set as Standard with limited functionality.Tomato Box or like John or whatever you want.
Left mouse button click on the Type in your same new password in both text boxes and then left mouse button click on Step 5: set the new user password
No password set button, in the new window input new password in both text boxes and confirm it with the OK button.
Change button.
Left mouse button click on the list of groups near the Select group checkboxes you want that user to be associated with and then left mouse button click on the Step 6: set the groups for the new user
Groups.
OK button.
In the main In the levt column left mouse button click the username you want to delete. Left mouse button click on the Left mouse button click on the Now user account and it’s home folder is deleted.Deleting the selected acocunt
Users and Groups window:
Delete button on the bottom.
Yes button.
Restart and login into new username
Now when the new user is created and restart the computer to apply changes and then log-in to new user account.
(Click on the individual step or triangle to hide or show the details (images, info, …))
Step 1: left mouse button click on the
LM menu button
Step 2: Left mouse button click on the
Shut down button
Step 3: left mouse button click on the
Restart button in the Shut down window
Step 4: when Linux login screen shows up left mouse button click on the new user
Step 5: type in the password and to login press
Enter keyboard key to log-in
After you log-in into a new user
(Click on the individual step or triangle to hide or show the details (images, info, …))
If you do not want this window to come up again when you turn on your computer just left mouse button click to uncheck the bottom checkbox near the Now you can close this window by clicking First you see Welcome window, feel free to research it
Show this dialogue at startup.
button in the top right corner.
In the free space on the desktop right mouse button click and then left mouse button click on the Left mouse button click on the selection box near the Left mouse button click on the desired resolution, in my case is 1080p or 1920 x 1080 pixels. You can change other elements and when all is done left mouse button click on the Linux will ask you if you want to keep the settings you set and left mouse button click on the Now you can close the settings window by clicking Change screen resolution if needed
Display settings
Resolution.
Apply button.
Keep changes button.
button in the top right corner.
Left mouse button click on the Wait till system checks are completed. You can set Linux is asking us if you really want to ignore that report, just left mouse button click on the Now you can close the window by clicking System Reports notification
System Reports button notification.
Timeshift if you want by left mouse button click on the Launch Timeshift button but because that is not the scope of this tutorial will just left mouse button click on the Ignore this report button. Timeshift is very important and you should use it, will do tutorial in the future about it.
OK button.
button in the top right corner.
Left mouse button click on the In the Now you can close the window by clicking Update Manager notification
Update Manager button notification.
Welcome to the Update Manager window just left mouse button click on the OK button to confirm.
button in the top right corner.
Links
Video version
(11.09.2026, 18:00 / 06:00 PM, timezone: CEST / UTC+2 / GMT+2)