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 22,600 courses taught by industry experts or purchase this course individually.
Solution: Users and accounts
From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security
Solution: Users and accounts
(upbeat music) - For this challenge, you needed a username Steve, with a user ID of 1100, and a group ID of 1100. A home directory of /home/Steve, his shell should be the korn shell. He needs sudo admin privileges. His account expires in 90 days with a five day warning period. He needs to belong into the developer's group which has a password, as well as Sue and Taylor as members. Now, let's look at the solution. First of all, let's tackle the prerequisites. We'll start by installing the korn shell sudo dnf install -y ksh and hit enter. Now let's create our users, type in clear type in sudo useradd -u 1100 -s /bin/ksh -G wheel steve this creates username Steve, with user and group IDs of 1100. notice, I don't have to specify the group ID, If it's the same as the user ID it also specifies the korn shell and add Steve to the wheel group. Any user in the wheel group has sudo admin privileges. view the pseudo config file with VI by typing in VI Sudo and then search for the name wheel. Now…
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
-
-
-
-
-
-
-