From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security
Unlock the full course today
Join today to access over 23,300 courses taught by industry experts.
Create, delete, and modify local groups and group memberships
From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security
Create, delete, and modify local groups and group memberships
- [Instructor] Groups are an important part of the Linux user management system. Each user belongs to a primary group. When users create files, they're owned by the user's primary group. Users can also belong to additional supplemental groups. This gives users the ability to access resources owned by those additional groups. We create a group using group add. Group add has a few options, but the most common is -g for specifying the group ID. Let's create a group called accounting with a group ID of 1,050. In a terminal, type in sudo groupadd -g 1050 accounting and hit enter. Type in your password when prompted. We can verify this by viewing the ETC group file. Type in cat /etc/group and hit enter. And we can see our new group at the bottom of the file. If later we want to modify attributes of our group, we can with group mod. For instance, if you want to change the group ID, we'd type in clear and then type in sudo groupmod -g 1051 accounting. This will change the group ID number to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Create and delete local user accounts5m 59s
-
(Locked)
Modify local user accounts5m 28s
-
(Locked)
Change passwords and adjust password aging for local user accounts4m 40s
-
(Locked)
Manage aging for local user accounts5m 45s
-
(Locked)
Create, delete, and modify local groups and group memberships5m 41s
-
(Locked)
Log in and switch users in multiuser targets2m 17s
-
(Locked)
Elevating privileges using sudo3m 28s
-
(Locked)
Challenge: Users and accounts1m 31s
-
(Locked)
Solution: Users and accounts2m 49s
-
-
-
-
-
-
-