Retrieval Practice Quiz · Fill in the Blank
Red Hat System Administration I · Mesa Community College
Question 1 of 10
Every user account on a Linux system is assigned a unique number called a , which the kernel uses to identify that user internally.
Question 2 of 10
The file that stores basic account information — including username, UID, home directory, and default shell — for every user on the system is
cat /etc/______/etc/passwd
Question 3 of 10
User password hashes are not stored in /etc/passwd.
They are stored in the file ,
which is readable only by root.
/etc/shadow
Question 4 of 10
The command creates the new user account megan .
useradd megan
Question 5 of 10
To lock a user account so the user cannot log in,
you run usermod with the option.
To unlock it, you use
usermod -L username · Unlock: usermod -U username
Question 6 of 10
The command is used to assign or change a user's password from the command line. Run as root, it can change any user's password.
passwd
— e.g. passwd username
Question 7 of 10
Every user belongs to a primary group. When a user creates a new file, the file's group ownership is set to the user's group by default.
/etc/passwd for that user.Question 8 of 10
Group account information — including group name, GID, and member list — is stored in the file
/etc/group
Question 9 of 10
The command adds an existing user to a supplementary group without removing them from their other groups. The options used are
-a flag here would replace all existing group memberships — a common mistake.usermod -aG groupname username
— -a appends, -G specifies the supplementary group
Question 10 of 10
A user can run a single command with root privileges by prefixing it with . To open a full interactive root shell, a user with appropriate rights runs
sudo <command>
· Root shell: sudo -i
Bonus Extra credit
The range of UIDs reserved for regular (non-system) user accounts on RHEL begins at
Answer Key — Q1 to Q5
/etc/passwd/etc/shadowuseradd megan-L lock · -U unlockAnswer Key — Q6 to Bonus
passwd/etc/groupusermod -aGsudo · sudo -iCIS126RH — Managing Local Users and Groups · Mesa Community College