EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login

Create User in Linux

By Priya PedamkarPriya Pedamkar

Home » Software Development » Software Development Tutorials » Linux Tutorial » Create User in Linux

Create User in Linux

Introduction to Create User in Linux

In these, we will learn to create a User in Linux. What made Linux a developer’s favorite kernel. But before that, one important thing you must know before proceeding further is the fact that Linux is not an Operating System rather a Kernel. Kernel is the most important part of an operating system, but kernel alone can’t make the OS work. OS requires other software to be working with the kernel. In the case of Linux, it’s gonna be GNU software. Linux is famous because of it’s free, open-source and provides great control over the OS.

User in Linux

Linux has a multiuser option that means more than one user can use Linux at the same time. Managing multiple users is the job of the system administrator. System Admin can add or remove a user. So, if you are a system admin continue reading to know how to add a user to your Linux system.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

Types of Adding a User in Linux

There are two ways of adding a user in Linux

  1. From shell/terminal using “useradd”
  2. From GUI using system setting
Note: Here, Ubuntu 16 Linux is used. The steps are similar to the steps mentioned here with minimal changes.

1. Create a User from shell/terminal

This way is used by most of the professionals and experienced Linux users. To add a user from the shell/terminal following steps have to be followed. It’s also should be your priority to give great attention to the syntax given in the step and follow them exactly.

Step 1: Open the shell or terminal.

Step 2: To login as root, type “su -” in the terminal and enter the password.

login in (Create User in Linux)

  • If the password is correct you have should have the root access to your system. If the password is wrong, you will be getting a message as shown below.

create password (Create User in Linux)

Step 3: After getting the root access, type “useradd username”.

Popular Course in this category
Linux Training Program (16 Courses, 3+ Projects)16 Online Courses | 3 Hands-on Projects | 160+ Hours | Verifiable Certificate of Completion | Lifetime Access
4.5 (6,013 ratings)
Course Price

View Course

Related Courses
Kali Linux Training (3 Courses, 3+ Projects)Red Hat Linux Training Program (4 Courses, 1+ Projects)

add ur username

Step 4: Type “password username”, the terminal will ask for a new password. Confirm the new password. Enter the new password.

Step 5: You should be able to see the new user on To confirm type “cat /etc/password”, you should be able to see your new username over there.

2. Create a User from GUI

This way of creating a user is very easy and used when you are not that familiar with Linux.

Step 1: Go to Applications and select System Settings.

select system setting (Create User in Linux)
Step 2: Click on User Accounts.

create account

Step 3: At the top right corner, find the Dialog of User.

find dailog box

Step 4: The system will ask for Admin’s password, type incorrect password and Dialog should be unlocked if it says it’s locked, click on it to unlock.

enter incorrect password

Step 5: After unlocking the dialog, find an add user button at the left bottom of the box, click on.

add account

Step 6: Type in the name of your account to be created. You can also choose the Account Type either Standard or Admin.

name ur account

Step 7: Click on Add and you should be able to see your username on the left tab of the box.

user created (create user in linux)

Conclusion

Hey, congrats on knowing how to create/add a user on Linux. Multi-user access is one of the great advantages of using Linux and you have learned the first step of it. You can add as many users as you want but remember to keep your passwords strong enough. For more educational posts follow educba.

Recommended Articles

This is a guide to Create User in Linux. Here we discuss step by step creation of a user in Linux in two forms shell/terminal user and GUI user respectively. You can also go through our other related articles to learn more-

  1. Linux File System
  2. What is Linux?
  3. What is the GUI?
  4. Linux Operators

Linux Training Program (16 Courses, 3+ Projects)

16 Online Courses

3 Hands-on Projects

160+ Hours

Verifiable Certificate of Completion

Lifetime Access

Learn More

0 Shares
Share
Tweet
Share
Primary Sidebar
Linux Tutorial
  • Advanced
    • Install VMware
    • Install GRUB
    • Chown Command in Linux
    • Linux Network Command
    • Configuring Linux Network Environment
    • DNS Configuration in Linux
    • Linux Users
    • Create User in Linux
    • DHCP Server in Linux
    • FTP Server in Linux
    • Linux Regular Expression
    • IP Command in Linux
    • Set IP Address in Linux
    • Tar Command in Linux
    • Dynamic Host Configuration Protocol
    • Linux Kill Signals
    • Linux File Permissions
    • Linux File System
    • Linux Create File
    • Linux Concatenate Files
    • Linux Join
    • Linux Process Management
    • Linux Proxy Server
    • Linux System Commands
    • Linux System Logging
    • NFS in Linux
    • Linux LVM
    • Linux Repository
    • Samba Server in Linux
    • Top Commands in Linux
    • Types of Shells in Linux
    • Shell Script Types For Linux
    • GCC Command in Linux
    • Monolithic Kernel
    • YARN Package Manager
    • Linux Sed Replace
    • Linux List Groups
    • Linux Container
    • Linux Find File by Name
    • Create Folder in Linux
    • Linux Move Folder
    • Linux Error Codes
    • Linux Automount
    • Linux HugePages
  • Basic
    • Introduction to Linux
    • What is Linux
    • Careers in Linux
    • How to Install Linux
    • How to Install Ubuntu
    • How to Install Ubuntu Server
    • How To Install Debian
    • Advantage Of Linux
    • What is Raid in Linux
    • What is Raid 5?
    • Raid 5 vs Raid 6
    • Careers in Linux Administration
    • What is Shell in Linux?
    • Bash Shell in Linux
    • Linux Emulator
    • Linux Operators
    • Linux Apps
    • Linux Keyboard Shortcuts
    • Linux Crontab
    • What is Raid Storage
    • What is Vmware
    • What is RedHat
    • What is Debian
    • Uses of Ubuntu
    • Career In RedHat
    • Linux Distributions
    • Linux From Scratch
    • Linux Format
    • Cheat Sheet Linux
  • Linux Commands
    • CAT Command in Linux
    • PS command in Linux
    • Mkdir Command in Linux
    • rmdir command in Linux
    • mv command in Linux
    • Linux rm Command
    • CHMOD Command in Linux
    • Zip Command in Linux
    • Linux Route Command
    • SCP Command in Linux
    • du Command in Linux
    • Less Command in Linux
    • Copy Command in Linux
    • Head Command in Linux
    • Help Command in Linux
    • Linux History Command
    • hostname Command in Linux
    • GREP Command in Linux
    • Linux Curl Command
    • Linux List Users
    • Linux List Directories
    • Linux Directory Permissions
    • Find Directory Linux
    • Linux User Permission
    • Linux Add User
    • Linux Delete User
    • Linux uniq
    • Linux Filter Commands
    • Linux sort Command
    • Linux Sort by Size
    • Remove dir Linux
    • Linux tr Command
    • Linux Touch Command
    • Linux More Command
    • Linux Cal Command
    • Linux OD
    • Linux Zcat
    • Linux tracepath
    • Linux Sleep
    • Linux bg Command
    • Linux WC
    • Linux Read
    • Linux Write
    • Linux Rename Command
    • Linux Free Command
    • Linux tac
    • Linux Shred
    • Linux wget
    • Linux Date
    • Linux Untar
    • Linux JQ
    • Linux Xargs
    • Linux Mount Command
    • Linux mdadm
    • Linux comm
    • Linux tee Command
    • Tail Command in Linux
    • Linux gzip
    • Linux Directory Structure
    • Linux Alias Command
    • Linux Inode
    • Linux Ping
    • Linux Watch Command
    • Linux Split Command
    • Linux Size
    • Linux Network Stack
    • Linux Diff Command
    • Vim Command in Linux
    • Linux nslookup
  • Kali Linux
    • Install Kali Linux
    • Kali Linux Uses
    • Kali Linux Commands
    • Kali Linux Repository
    • Kali Linux Packages
    • Kali Linux root password
    • Kali Linux Alternative
  • Interview Questions
    • Linux Interview Questions
    • Linux System Administration Interview
    • Red Hat Interview Questions

Related Courses

Kali Linux Training

Linux Training Course

Red Hat Training Course

Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

© 2020 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA Login

Forgot Password?

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you
Book Your One Instructor : One Learner Free Class

Let’s Get Started

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

Special Offer - Linux Training Program (16 Courses, 3+ Projects) Learn More