Chapter 16 Exam Flashcards
UIDs 1-499 are usually reserved for what kind of users?
Remote log-in accounts
Are not used for user accounts, but for group accounts
System accounts, such as server processes
Log-in (human) users
System accounts, such as server processes
If a user is deleted, the files and directories that the user owned…
…will have no user owner.
…will have no UID owner.
…will show a UID as the owner, but not user name.
…are deleted as well.
…will show a UID as the owner, but not user name.
Which of the following options for the useradd command allows root to specify the UID to be associated with the account?
- g
- G
- u
- M
-u
Which of the following options for the useradd command allows root to specify supplementary groups the user will be a member of?
- G
- u
- g
- U
-G
On a system that does not use UPG, the useradd command will also create a user group. For example, user bob, group bob.
True or False?
True
False
False
Which of the following commands will add the group extra to the user bob‘s secondary groups in addition to bob‘s current secondary groups?
usermod -G extra bob
usermod -ag bob extra
usermod -aG extra bob
usermod -a extra bob
usermod -aG extra bob
Which option for the usermod command can be used to specify a user’s group ID (either primary or secondary)?
(choose two)
- s
- g
- S
- G
- g
- G
For non-root users, the passwd command can only be used to change the password of the user running the command.
True or False?
True
False
True
The groupmod command can be used to change a group name.
True or False?
True
False
True
The groupmod command can be used to change a group GID.
True or False?
True
False
True
The groupmod command can be used to add users to a group.
True or False?
True
False
False
Which of the following commands can be used to modify a group?
groupmod
groupadd
modgroup
addgroup
groupmod
Which command can be used to determine a user’s most recent log in?
history
last
login
shell
last
Which of the following files contains encrypted user password information?
/etc/usr
/etc/group
/etc/passwd
/etc/shadow
/etc/shadow
Which of the following files contains user IDs?
/etc/group
/etc/passwd
/etc/usr
/etc/shadow
/etc/passwd