We will discuss how to create new user, modify existing user details and password. Types of users UID root 0 system 1-999 normal 1000-6000 System user is again divided into two types- Kernel and Application users Kernel :Like ping, shutdown have UID between 1-200 Application: Like Mysql have UID between 201-999 Adding user: Command: useradd <user> Eg: useradd star1 Note that a line will be added at the bottom of /etc/passwd file as below star1:x:1076:1078::/home/star1:/bin/bash If password not set for user then the user will be locked. Setting a password for the created user: command: passwd <user> Eg: #passwd star1 Changing password for user star1. New password: BAD PASSWORD: The password is shorter than 8 characters Retype new password: passwd: all authentication tokens updated successfully. You can switch user from one user to anothe
Linux step by step tutorials