wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux User Management

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is the uid of the superuser account on Linux?

a)

0

b)

100

c)

1000

d)

-1

2.

What command lets you see a user's uid, gid, and group memberships?

a)

id

b)

w

c)

whoami

d)

groupadd

3.

An account that is not intended for logging in interactively but for launching daemons and other supporting tasks is known as.....

a)

daemon users

b)

stduser

c)

system account

d)

nologin

4.

What file houses information about each user, one per line but, ironically, no longer contains the password?

a)

/etc/password

b)

/sbin/pwd

c)

/etc/passwd

d)

/etc/sysconfig/accounts

5.

What file contains a user's password, in hashed form, as well as the salt that was added to before hashing?

a)

/etc/passwd

b)

/etc/saltd

c)

/etc/sonic

d)

/etc/shadow

6.

What command can be used to see who is currently logged on as well as when they logged on and from where?

a)

who

b)

quser

c)

ps

d)

w

7.

When adding users to a system, this is a more complete and friendly command to use for Debian based system; on CentOS there really is no difference.

a)

adduser

b)

useradd

c)

usermod

d)

addacct

8.

What command removes a user account and removes their home directory?

a)

remuser -r

b)

deluser

c)

userdel -r

d)

acctrem -R

9.

What group on Linux systems is typically given access within the sudoers file to run commands with administrative privileges?

a)

admins

b)

wheel

c)

term

d)

tty

10.

What command can be used to set the current user's password or change a password for another user; with super user privileges of course.

a)

pwd

b)

passwd

c)

password

d)

chage

11.

In order to add a supplementary group to a user without overwriting their current supplementary group/s, one must use what command and flag/s?

a)

groupmod -G

b)

usermod -a

c)

groupmod -ag

d)

usermod -aG

12.

When looking at the hashed string of a user's password, what does the very beginning, $6, represent?

a)

Password is 6 characters long

b)

No salt was added

c)

Uses the Sha-512 algorithm

d)

none of the above

13.

If I run the following command, what will it do?

usermod -L tator

a)

log out tator

b)

change tator to a local account

c)

lock out tator's account

d)

allow you to move his local home directory

14.

What range of UIDs are typically reserved for "regular" users of a Linux system?

a)

1,000+

b)

1-200

c)

201-999

d)

all of these are fair game

15.

In the following entry, what does the x represent?

tator:x:1007:1010:Tator M. Salad:/home/tator:/bin/bash

a)

Where the password used to be kept

b)

Tator's default group

c)

The last date tator's password was changed

d)

That tator's account is locked out

16.

Given the same output below, what is the /bin/bash representing?

tator:x:1007:1010:Tator M. Salad:/home/tator:/bin/bash

a)

That tator is not allowed to login interactively

b)

Tator's PATH environment variable

c)

Location of Tator's password file

d)

Tator's default shell

17.

What date represents the *nix epoch start?

a)

1980-07-07

b)

2000-01-01

c)

1970-01-01

d)

1965-03-03

18.

In the command below, what do the -m and -M do respectively?

sudo chage -m 90 -M 1 -W 7 -I 14 tator

a)

sets the minimum password age to 1 and maximum to 90

b)

sets the minimum password age to 90 and the maximum to 1

c)

sets the minimum password length to 90 and only uppercase letters are viable

d)

sets the maximum password length to 90 and enables the use of special characters

19.

How do you create a user account for things like uploading files or authenticating to a website, but prevent that account from logging in interactively?

a)

Give them an invalid shell in the passwd file

b)

Lock the account with usermod -L

c)

Change their maximum password age to 0

d)

All of these would work

20.

What is the best text editor to learn for professional development?

a)

pico

b)

nano

c)

emacs

d)

vim