Font size
WorksheetsLinux: Users and Groups
Total questions: 14
Worksheet time: 10mins
What is the name of the file in which details of user accounts are stored?
/etc/uac
/etc/accounts
/etc/passwd
/etc/shadow
What is the name of the file that stores salted/hashed versions of user passwords for authentication?
/etc/uac
/etc/passwd
/etc/shadow
/etc/.pws
What command can be used to change password policies such as minimum and maximum password age?
usermod
chage
passwd
pwd
Given the following entry in a the /etc/shadow file, what does the $6 tell you?
$6$CsSxcYg1Ll.....
6 days till password expiration
6 days since password last changed
Sha-512 Hashing algorithm was used
The password is 6 characters long
If you enter a command like the following, what does the ( -I 7 ) portion do?
sudo chage -m 1 -M 90 -W 7 -I 7 tatortot
sets an inactivity grace period of 7 days before account is disabled
sets the account as inactive after 7 failed login attempts
remembers the last 7 logins
logs out tatortot after 7 minutes of inactiviy
What is the default sudo command reprompt behavior; when will it ask you to enter your password when using sudo repeatedly?
Trick question, it always does
Only once per session
every 5 minutes
every 5 attempts
What file allows you to set defaults for account and password expiration for all newly created users?
/etc/passwd
/etc/login.defs
/etc/usermods
/etc/acct.defs
What term is used for groups that a user is a member of, but are not the users primary group?
secondary groups
tertiary groups
additive groups
supplementary groups
Match the following UID/s with the account/s that go with them.
root
UID 0
System Accounts statically assigned to system processes
UID 1-200
Regular users.
UID 201-999
System Processes that don't own files on the system.
UID 1000+
What does the following command do?
usermod -L tot
Displays the last login time for user tot.
Locks user tot's account out from logging in.
Adds current user to the group tot.
Lists user tot's supplementary groups.
What two commands are used to add and remove users respectively?
usermod -a / usermod -R
useradd / userdel
adduser / deluser
mkuser / rmuser
What file stores information about groups on Linux systems?
/etc/group
/etc/groupon
/etc/groups
/etc/members
Using the options below, construct a command that would add user tatorsalad to the group tubers.
(a) (b) (c) (d)
What file is used to give user's access so that they can utilize the sudo command?
(a) (b)
