wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux: Users and Groups

Total questions: 14

Worksheet time: 10mins

Name
Class
Date
1.

What is the name of the file in which details of user accounts are stored?

a)

/etc/uac

b)

/etc/accounts

c)

/etc/passwd

d)

/etc/shadow

2.

What is the name of the file that stores salted/hashed versions of user passwords for authentication?

a)

/etc/uac

b)

/etc/passwd

c)

/etc/shadow

d)

/etc/.pws

3.

What command can be used to change password policies such as minimum and maximum password age?

a)

usermod

b)

chage

c)

passwd

d)

pwd

4.

Given the following entry in a the /etc/shadow file, what does the $6 tell you?

$6$CsSxcYg1Ll.....

a)

6 days till password expiration

b)

6 days since password last changed

c)

Sha-512 Hashing algorithm was used

d)

The password is 6 characters long

5.

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

a)

sets an inactivity grace period of 7 days before account is disabled

b)

sets the account as inactive after 7 failed login attempts

c)

remembers the last 7 logins

d)

logs out tatortot after 7 minutes of inactiviy

6.

What is the default sudo command reprompt behavior; when will it ask you to enter your password when using sudo repeatedly?

a)

Trick question, it always does

b)

Only once per session

c)

every 5 minutes

d)

every 5 attempts

7.

What file allows you to set defaults for account and password expiration for all newly created users?

a)

/etc/passwd

b)

/etc/login.defs

c)

/etc/usermods

d)

/etc/acct.defs

8.

What term is used for groups that a user is a member of, but are not the users primary group?

a)

secondary groups

b)

tertiary groups

c)

additive groups

d)

supplementary groups

9.

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+

10.

What does the following command do?

usermod -L tot

a)

Displays the last login time for user tot.

b)

Locks user tot's account out from logging in.

c)

Adds current user to the group tot.

d)

Lists user tot's supplementary groups.

11.

What two commands are used to add and remove users respectively?

a)

usermod -a / usermod -R

b)

useradd / userdel

c)

adduser / deluser

d)

mkuser / rmuser

12.

What file stores information about groups on Linux systems?

a)

/etc/group

b)

/etc/groupon

c)

/etc/groups

d)

/etc/members

13.

Using the options below, construct a command that would add user tatorsalad to the group tubers.

​ (a)   ​ (b)   ​ (c)   ​ (d)  

Choose from the below words
usermod
-aG
tubers
tatorsalad
14.

What file is used to give user's access so that they can utilize the sudo command?

​ (a)   ​ (b)  

Choose from the below words
/etc
/sudoers
/var
/proc
/usr
/suds
/groupo
/grudo