User information in Linux, including Ubuntu, is stored in the /etc/passwd, /etc/group, and /etc/shadow files. Adding a new user involves manually updating these files or using specialized tools provided by the operating system.
Ubuntu offers command-line tools and graphical user interface (GUI) for user management, catering to system administrators' different preferences and needs. Available command-line tools for adding users in Ubuntu include adduser and useradd. These tools handle the creation of user accounts and necessary configurations. Command-line tools provide greater control and are ideal for automation and bulk user management. They are also the only available options for Ubuntu Server.
Ubuntu also provides a GUI method to ensure a consistent and efficient user management experience. The GUI tool is handy for those who prefer a more visual approach, while the command-line tools offer flexibility and scripting capabilities.
Related: How to add new users on 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.
- The new user will now be listed among the existing users.
This guide is tested on Ubuntu:
Version | Code Name |
---|---|
24.04 LTS | Noble Numbat |
![](https://www.simplified.guide/_media/page/author/shakir/mohd-shakir-zakaria.jpg?w=200&tok=d15487)
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.