RHEL Administration - Lecture#04
RHEL Administration - Lecture#04
Lecture #04
Types of Users
User-Related Directories
Directory Purpose
etc/passwd file and contains user account information in Linux. Each field has a specific
meaning.
User ID (UID) 1000 The unique ID assigned to this user (1000+ means a
normal user).
Login Shell /bin/bash The default shell for this user (e.g., Bash, Zsh).
Tab Button for Auto-Completion
● When typing a command, Just write the first one or two letters and press Tab to
auto-complete a command, filename, or directory name.
● Works for short words and common Linux commands.
Creating a User
Basic user creation:
useradd Ali
Setting a password:
passwd Ali
○ Not Recommended.
Modifying Users
Check user details:
id kashif
Deleting Users
Delete a user (but keep home directory):
userdel Adil
○ -rf removes the user forcefully (including any files and processes).
Switching Users
Basic switch:
su Asif