NEW
Font size
WorksheetsLinux User Management
Total questions: 20
Worksheet time: 10mins
What is the uid of the superuser account on Linux?
0
100
1000
-1
What command lets you see a user's uid, gid, and group memberships?
id
w
whoami
groupadd
An account that is not intended for logging in interactively but for launching daemons and other supporting tasks is known as.....
daemon users
stduser
system account
nologin
What file houses information about each user, one per line but, ironically, no longer contains the password?
/etc/password
/sbin/pwd
/etc/passwd
/etc/sysconfig/accounts
What file contains a user's password, in hashed form, as well as the salt that was added to before hashing?
/etc/passwd
/etc/saltd
/etc/sonic
/etc/shadow
What command can be used to see who is currently logged on as well as when they logged on and from where?
who
quser
ps
w
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.
adduser
useradd
usermod
addacct
What command removes a user account and removes their home directory?
remuser -r
deluser
userdel -r
acctrem -R
What group on Linux systems is typically given access within the sudoers file to run commands with administrative privileges?
admins
wheel
term
tty
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.
pwd
passwd
password
chage
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?
groupmod -G
usermod -a
groupmod -ag
usermod -aG
When looking at the hashed string of a user's password, what does the very beginning, $6, represent?
Password is 6 characters long
No salt was added
Uses the Sha-512 algorithm
none of the above
If I run the following command, what will it do?
usermod -L tator
log out tator
change tator to a local account
lock out tator's account
allow you to move his local home directory
What range of UIDs are typically reserved for "regular" users of a Linux system?
1,000+
1-200
201-999
all of these are fair game
In the following entry, what does the x represent?
tator:x:1007:1010:Tator M. Salad:/home/tator:/bin/bash
Where the password used to be kept
Tator's default group
The last date tator's password was changed
That tator's account is locked out
Given the same output below, what is the /bin/bash representing?
tator:x:1007:1010:Tator M. Salad:/home/tator:/bin/bash
That tator is not allowed to login interactively
Tator's PATH environment variable
Location of Tator's password file
Tator's default shell
What date represents the *nix epoch start?
1980-07-07
2000-01-01
1970-01-01
1965-03-03
In the command below, what do the -m and -M do respectively?
sudo chage -m 90 -M 1 -W 7 -I 14 tator
sets the minimum password age to 1 and maximum to 90
sets the minimum password age to 90 and the maximum to 1
sets the minimum password length to 90 and only uppercase letters are viable
sets the maximum password length to 90 and enables the use of special characters
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?
Give them an invalid shell in the passwd file
Lock the account with usermod -L
Change their maximum password age to 0
All of these would work
What is the best text editor to learn for professional development?
pico
nano
emacs
vim
