User information in Ubuntu is stored in system files like /etc/passwd, /etc/group, and /etc/shadow. Adding a new user can be done by directly modifying these files or using tools provided by Ubuntu. Most administrators prefer using the tools due to the risks involved in manual file editing.
Ubuntu offers two methods for adding users: command-line tools and a graphical user interface (GUI). Command-line tools such as adduser and useradd are commonly used for their control and automation capabilities. These tools are essential for managing users on Ubuntu Server, where GUI options are unavailable.
The GUI method is suitable for administrators who prefer a visual approach. It allows for straightforward user management without needing command-line knowledge. Both methods provide the necessary functionality to manage user accounts effectively.
Related: How to create a user in Linux
Steps to create a new user on Ubuntu:
- Open Settings from the Activities Overview.
- Click on System at the bottom of the sidebar menu.
- Click on Users from the System panel.
- Click the Unlock button at the top right of the screen.
- Enter your password to authenticate and click Authenticate.
Your account must have Administrator privilege for this to work
- Click the Add User… button at the bottom of the panel.
- Enter the full name and the username of the new user.
A Username will automatically be generated based on the entered Full Name but could be manually changed.
- Choose whether the user will be a normal user or an administrator.
An administrator will have the capability to make system-wide changes such as to add a new user.
- Select whether the user will set the password at first login or set it manually.
- If setting the password manually, enter a secure password in both textboxes until the Add button is enabled.
- Click the Add button to create the user.
- Verify that the new user appears in the user list.
This guide is tested on Ubuntu:
Version | Code Name |
---|---|
24.04 LTS | Noble Numbat |
Mohd Shakir Zakaria is an experienced cloud architect with a strong development and open-source advocacy background. He boasts multiple certifications in AWS, Red Hat, VMware, ITIL, and Linux, underscoring his expertise in cloud architecture and system administration.
Comment anonymously. Login not required.