SlideShare a Scribd company logo
2
Most read
4
Most read
6
Most read
By – Varnnit Jain
9990888972
Users And Groups In RHEL
Users
 Every person that logs into the computer is considered as a
user.
 Every user is assigned a unique user ID number (UID).
UID 0 identifies root.
 User acccounts usually starts at UID 500.
 1-499 UID is reserved for the system users.
 Whenever you create any user in Linux It belongs to their
own group.
 User names and UIDs are stored in /etc/passwd.
 Users are assigned a home directory ( /home/username) and
a program that is run when they log in. (Usually a shell)
USERS
 Users have full access to their directories.
 User cannot read, write or execute each other
files without permission.
GROUP
 A group is a collection of users which make easy
for administration to perform the task of
administration level.
 When they need to apply permissions and
restrictions with the same level to many users ,
the such permissions an restrictions can be
applied to related groups.
 Users are assigned to groups .
 Every user is a member of at least one group and
possibly more.
 Each group is assigned a unique group ID
number (GID).
GROUP
 Each group is given their own private group
(primary group, usually the same name of the
user).
 Users can be added to other groups.
 User’s primary group is defined in the
/etc/passwd file.
 User’s secondary group is defined in the
/etc/group file.
 All users in a group can share files that belong to
that user.
In Command Line
 #adduser username : Create a new user.
 #passwd username : Change/set
password for user.
 #groupadd groupname: create a new group.
 #gpasswd groupname : Set Group Password.
 #usermod –g groupname user name ,:Change
the primary group of the user
 #usermod –G groupname username : Create a
secondary group for a user.
 #usermod –a G groupname username : join user
in multiple secondary group but more steps are
required.
 #usermod –l username : Lock user.
 #usermod --lock username : lock user.
 #passwd -S username : Want to see if the user is
ocked or not.
 #usermod –U username : Unlock user.
 #usermod –unlock username : Unock user.
 #userdel –r username : Delete user wih its
directory.
 #usermod –l newname oldname : Rename the user.
 #gpasswd –a username groupname : Add user to
groups.
 #gpasswd –d username groupname : Remove user
from group.
Example
1. #adduser varnnit
2. #passwd varnnit.
2. #groupadd varnnitjain ; gpasswd varnnitjain
3. A new user has been added.
4. #usermod –aG group_name user_name This command is
used to add a user to a secondary group.
.
5. #usermod –L username
6. #passwd –S username
7. #usermod –U username
8. #userdel –r username
9. #usermod –l new_name old_name
10. Usermod –e expire_date user_name
11. #gpasswd –a user_name group_name

More Related Content

PDF
Lesson 2 Understanding Linux File System
PPTX
User and groups administrator
PPTX
User management
PPTX
Linux User Management
PDF
File System Hierarchy
PPTX
Linux standard file system
PPSX
User Administration in Linux
PPT
Linux
Lesson 2 Understanding Linux File System
User and groups administrator
User management
Linux User Management
File System Hierarchy
Linux standard file system
User Administration in Linux
Linux

What's hot (20)

PPT
Basic 50 linus command
PPTX
Linux file system
DOCX
Linux crontab
PPTX
Linux security
PPT
Linux command ppt
PPTX
Linux booting Process
PPTX
File permissions
PPTX
Basic commands of linux
PDF
Shell scripting
PPTX
IP tables and Filtering
PPTX
Linux basic commands
PDF
Users and groups in Linux
PDF
Linux systems - Linux Commands and Shell Scripting
PPT
Linux file system
PDF
Linux directory structure by jitu mistry
PDF
An Introduction To Linux
PPTX
Linux operating system - Overview
PPTX
Linux.ppt
PPTX
Process management in linux
PDF
Course 102: Lecture 22: Package Management
Basic 50 linus command
Linux file system
Linux crontab
Linux security
Linux command ppt
Linux booting Process
File permissions
Basic commands of linux
Shell scripting
IP tables and Filtering
Linux basic commands
Users and groups in Linux
Linux systems - Linux Commands and Shell Scripting
Linux file system
Linux directory structure by jitu mistry
An Introduction To Linux
Linux operating system - Overview
Linux.ppt
Process management in linux
Course 102: Lecture 22: Package Management
Ad

Similar to Users and groups (20)

PDF
Manage Local Users and Groups - RHCSA (RH124)
PPTX
Lecturehjiwiiiwiiiwiiiiwiiijjwjiwii.pptx
PPT
06 users groups_and_permissions
PPT
Unix Administration 3
PDF
Unit 4 user and group
PPTX
7 - User Administration in Red Hat
PPTX
Linux+Command+Line+&+Shell+Scripting+Masterclass+-+Final.pptx
PPTX
Linux training in chandigarh.pptx Join Now
KEY
Cis222 9
PPTX
Linux Fundamentals - An Intro to Linux Fundamentals
PPT
Week7 downloading and installing software (1).ppt
PPT
Week7. linux. operating. system. .ppt
PPT
Introduction to Unix
PPTX
Linux basics part 1
PPTX
Presentation1
PPT
HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,
PPT
Host security
PPT
Host security
PPT
Linux lecture
Manage Local Users and Groups - RHCSA (RH124)
Lecturehjiwiiiwiiiwiiiiwiiijjwjiwii.pptx
06 users groups_and_permissions
Unix Administration 3
Unit 4 user and group
7 - User Administration in Red Hat
Linux+Command+Line+&+Shell+Scripting+Masterclass+-+Final.pptx
Linux training in chandigarh.pptx Join Now
Cis222 9
Linux Fundamentals - An Intro to Linux Fundamentals
Week7 downloading and installing software (1).ppt
Week7. linux. operating. system. .ppt
Introduction to Unix
Linux basics part 1
Presentation1
HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,
Host security
Host security
Linux lecture
Ad

Recently uploaded (20)

PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Business Ethics Teaching Materials for college
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Pre independence Education in Inndia.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
Institutional Correction lecture only . . .
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Classroom Observation Tools for Teachers
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
master seminar digital applications in india
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
RMMM.pdf make it easy to upload and study
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPH.pptx obstetrics and gynecology in nursing
TR - Agricultural Crops Production NC III.pdf
Business Ethics Teaching Materials for college
Week 4 Term 3 Study Techniques revisited.pptx
Pre independence Education in Inndia.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Institutional Correction lecture only . . .
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Classroom Observation Tools for Teachers
102 student loan defaulters named and shamed – Is someone you know on the list?
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
master seminar digital applications in india
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Final Presentation General Medicine 03-08-2024.pptx
RMMM.pdf make it easy to upload and study

Users and groups

  • 1. By – Varnnit Jain 9990888972 Users And Groups In RHEL
  • 2. Users  Every person that logs into the computer is considered as a user.  Every user is assigned a unique user ID number (UID). UID 0 identifies root.  User acccounts usually starts at UID 500.  1-499 UID is reserved for the system users.  Whenever you create any user in Linux It belongs to their own group.  User names and UIDs are stored in /etc/passwd.  Users are assigned a home directory ( /home/username) and a program that is run when they log in. (Usually a shell)
  • 3. USERS  Users have full access to their directories.  User cannot read, write or execute each other files without permission.
  • 4. GROUP  A group is a collection of users which make easy for administration to perform the task of administration level.  When they need to apply permissions and restrictions with the same level to many users , the such permissions an restrictions can be applied to related groups.  Users are assigned to groups .  Every user is a member of at least one group and possibly more.  Each group is assigned a unique group ID number (GID).
  • 5. GROUP  Each group is given their own private group (primary group, usually the same name of the user).  Users can be added to other groups.  User’s primary group is defined in the /etc/passwd file.  User’s secondary group is defined in the /etc/group file.  All users in a group can share files that belong to that user.
  • 6. In Command Line  #adduser username : Create a new user.  #passwd username : Change/set password for user.  #groupadd groupname: create a new group.  #gpasswd groupname : Set Group Password.  #usermod –g groupname user name ,:Change the primary group of the user  #usermod –G groupname username : Create a secondary group for a user.  #usermod –a G groupname username : join user in multiple secondary group but more steps are required.
  • 7.  #usermod –l username : Lock user.  #usermod --lock username : lock user.  #passwd -S username : Want to see if the user is ocked or not.  #usermod –U username : Unlock user.  #usermod –unlock username : Unock user.  #userdel –r username : Delete user wih its directory.  #usermod –l newname oldname : Rename the user.  #gpasswd –a username groupname : Add user to groups.  #gpasswd –d username groupname : Remove user from group.
  • 8. Example 1. #adduser varnnit 2. #passwd varnnit. 2. #groupadd varnnitjain ; gpasswd varnnitjain
  • 9. 3. A new user has been added.
  • 10. 4. #usermod –aG group_name user_name This command is used to add a user to a secondary group.
  • 11. . 5. #usermod –L username 6. #passwd –S username 7. #usermod –U username
  • 12. 8. #userdel –r username
  • 13. 9. #usermod –l new_name old_name
  • 14. 10. Usermod –e expire_date user_name 11. #gpasswd –a user_name group_name