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,
- Fix: Ubuntu (Linux) - bash: sudo: command not found error
- Quick steps to install Nginx on Ubuntu Linux
- Add new user in Ubuntu Linux using Terminal Command
- How to know current Ubuntu Linux version via terminal command
- How to stop/start/restart apache server using command [Ubuntu]
- Fix - sudo: systemctl: command not found
- How to install zsh shell on Ubuntu
- [Fix] Ubuntu E: Unable to locate package sudo error
- Quickly install Apache Server on Ubuntu Linux
- Install specific JRE on Ubuntu using apt
- Fix Ubuntu /bin/sh: 1: zsh: not found error
More Posts:
- Cannot access files within Microsoft Teams - We are setting up your file directory - Teams
- Command to get count of only directories [macOS/Linux/Unix] - HowTos
- Fix Apache Tomca: java.lang.OutOfMemoryError: PermGen spaceError - Tomcat
- How to hide quick launch in SharePoint classic site - SharePoint
- Check Internet Connection WIFI 4G is active on Android Programmatically - Android
- BeanDefinitionStoreException IOException parsing XML document from class path resource [spring.xml] - Java
- How to connect Airpods to Macbook Air or Pro? - MacOS
- Show CPU and Memory Usage on macOS Menu Bar - MacOS