User Management in RedHat Linux
User Management in RedHat Linux
User Management
User Types
o Super User
o Custom or Normal User
o System Users (no login)
Why multiple users?
User Directories and Files
User management basic commands
How to create users and passwords?
How to modify users?
How to delete users?
How to view and change users Password Policy?
How to switch between users?
How to give Super User privileges to Custom Users?
User IDs
Super User and Group IDs: UID = 0, GID = 0
System User and Group IDs: UID = 1-999, GID = 1-999
Super User and Group IDs: UID = 1000+, GID = 1000+
Super User: User file: /etc /root // contain all info about
root
Custom User: Users File /etc /passwd // contains all info about
custom users
Custom User: Passwords File /etc /shadow // contain all passwords of
custom users
Note the difference between the following two outputs at the end of output
lines
:/bin / bash -> it means user have a shell and can login to
system
:/sbin / nologin -> it means user do not have a shell and cannot login
# vim /etc /shadow // it will open password file to see and edit
passwords