NDG Linux Essentials -Ch 14
System accounts, such as server processes
1. UIDs 1-500 are usually reserved for what kind of users?
delete the user account, but leave the user's files by default.
11. The userdel command will...
/etc/shadow
17. Which of the following files contains encrypted user password information?
will show a UID as the owner, but not user name
2. If a user is deleted, the files and directories that the user owned...
Usermod -L bob
20. Which of the following commands, run as root, will prevent the user bob from logging in?
/home
21. What directory contains user's home directories?
-u
3. Which of the following options for the useradd command allows root to specify the UID to be associated with the account?
-G
4. Which of the following options for the useradd allows root to specify supplementary groups the user will be a member of?
True
10. For non-root users, the passwd command can only be used to change the password of the user running the command.
True
12. The groupmod command can be used to change a group name.
True
13. The groupmod command can be used to change a group GID.
False
14. The groupmod command can be used to add users to a group.
Groupmod
15. Which of the following commands can be used to modify a group?
Last
16. Which command can be used to determine a user's most recent log in?
/etc/passwd
18. Which of the following files contains user IDs?
/etc/group
19. Which of the following files does the groupadd command use to determine the new GID when a GID isn't specified?
False
5. On a system that does not use UPG, the useradd command will also create a user group. For example, user bob, group bob.
True
6. The useradd command will create a home directory by default for a user.
change the user's MAX and MIN password settings.
7. The usermod command can be used to do all of the following except...
Usermod -aG extra bob
8. 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?
-g -G
9. Which option for the usermod command can be used to specify a user's group ID (either primary or secondary)? (choose two)