Linux Create User
Linux Create User Account Step by Step Example.
The Linux create user account step by step example below use useradd command to demonstrate how to create user account on Linux operating system. The useradd command only can be execute by root user and user that have sufficient privilege to create user on Linux system. The step by step below begin with the su command to make sure that we have the privileges to create user on the Linux system.
Linux create user example:
2. Type in su - command and key in root user password to gain root privileges.
[linux@fedora11 ~]$ su -
Password: <-- Type in root user password and hit 'Enter' key
3. Then type in useradd command along with username of the Linux user account that we want to create.
[root@fedora11 ~]# useradd jason
4. In order for user to log in on the Linux system using his or her user account, we need to create password for that user account. To create password for user just execute passwd command along with username as show on example below.
[root@fedora11 ~]# passwd jason
Changing password for user jason.
New password: <-- Type password for new created user and hit 'Enter' key
Retype new password: <-- Retype user password and hit 'Enter' key
passwd: all authentication tokens updated successfully.
5. To verify, execute finger command to display user details.
[root@fedora11 ~]# finger jason
Login: jason Name: (null)
Directory: /home/jason Shell: /bin/bash
Never logged in.
Keywords: linux create user, linux create user account, create user linux, create linux user, create linux user account, linux create user example, create user example, user account