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

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…

Contents