If you want to add a new user in Ubuntu Linux, you can make use of the create newuser command,
Example:root@ubuntu:/# adduser newuser
Adding user `newuser' ...
Adding new group `newuser' (1001) ...
Adding new user `newuser' (1001) with group `newuser' ...
Creating home directory `/home/newuser' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for newuser
Enter the new value, or press ENTER for the default
Full Name []: John
Room Number []: 2022
Work Phone []: 000
Home Phone []: 000
Other []:
Is the information correct? [Y/n] Y
To move to the newly created user simply do su newuser
❗️Make sure you are either using a root user or sudo along with this command or else you will get an error - adduser: Only root may add a user or group to the system.
More Posts related to Ubuntu,
- Install Oh My Zsh on Ubuntu Docker complete steps
- Installing Home-brew on Ubuntu
- Install Golang (Go) on Ubuntu
- Install specific JRE on Ubuntu using apt
- How to stop/start/restart apache server using command [Ubuntu]
- How to install zsh shell on Ubuntu
- Quick steps to install Nginx on Ubuntu Linux
- How to know current Ubuntu Linux version via terminal command
- Add new user in Ubuntu Linux using Terminal Command
- Fix Ubuntu /bin/sh: 1: zsh: not found error
- How to install Python on Ubuntu
- [Fix] Ubuntu E: Unable to locate package sudo error
- How to stop MongoDB Server running on Ubuntu
- Install postgres Client using apt-get command
- How to kill service running on a port on Ubuntu Linux
- [fix] openssl No such file or directory error C++
- Fix - sudo: systemctl: command not found
- Access Windows share folder in Ubuntu Device in Network
- Add or remove users from sudo group - Ubuntu
- Quickly install Apache Server on Ubuntu Linux
- Fix: Ubuntu (Linux) - bash: sudo: command not found error
More Posts:
- The author stylesheet specified in tag script is too long - document contains 21759 bytes whereas the limit is 10000 bytes - Html
- How to access SharePoint on Office 365 using a Web Browser - SharePoint
- Android Emulator 5.1.1 not loading on Mac OS X Android Studio - Android-Studio
- Convert text to random case using Notepad++ - NotepadPlusPlus
- The Android Virtual Device myEmulator is currently running an emulator and cannot be deleted. - Android
- How to take a screenshot on a Mac - updated for Ventura 13 [updated 2023] - MacOS
- Python Hello World! Program with code example (snippet) - Python
- Error:The SDK Build Tools revision (XX.X.X) is too low for project. Minimum required is XX.X.X - Android