NDG Linux Essentials 2.21 | Creating Users and Groups Module 16 | Chapter 16 Exam Answers Full 100% 2023

These are questions of Cisco NDG Linux Essentials 2.21 Creating Users and Groups Chapter 16 Exam Answers full 100% with the latest version and updated in 2023. All answers are verified by experts with explanations.

  1. UIDs 1-499 are usually reserved for what kind of users?

    • Are not used for user accounts, but for group accounts
    • Remote log-in accounts
    • System accounts, such as server processes
    • Log-in (human) users
  2. If a user is deleted, the files and directories that the user owned…

    • …will have no UID owner.
    • …will have no user owner.
    • …will show a UID as the owner, but not user name.
    • …are deleted as well.
  3. 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
  4. Which of the following options for the useradd command allows root to specify supplementary groups the user will be a member of?

    • -g
    • -U
    • -u
    • -G
  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 or False?

    • True
    • False
  6. 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 -ag bob extra
    • usermod -aG extra bob
    • usermod -G extra bob
    • usermod -a extra bob
  7. Which option for the usermod command can be used to specify a user’s group ID (either primary or secondary)?(choose two)

    • -S
    • -G
    • -g
    • -s
  8. 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
  9. The groupmod command can be used to change a group name. True or False?

    • True
    • False
  10. The groupmod command can be used to change a group GID. True or False?

    • True
    • False
  11. The groupmod command can be used to add users to a group. True or False?

    • True
    • False
  12. Which of the following commands can be used to modify a group?

    • addgroup
    • groupmod
    • groupadd
    • modgroup
  13. Which command can be used to determine a user’s most recent log in?

    • history
    • shell
    • login
    • last
  14. Which of the following files contains encrypted user password information?

    • /etc/usr
    • /etc/group
    • /etc/passwd
    • /etc/shadow
  15. Which of the following files contains user IDs?

    • /etc/passwd
    • /etc/usr
    • /etc/shadow
    • /etc/group
  16. Which of the following files does the groupadd command use to determine the new GID when a GID isn’t specified?

    • /etc/usr
    • /etc/group
    • /etc/shadow
    • /etc/passwd
  17. Which of the following commands, run as root, will prevent the user bob from logging in?

    • usermod -D bob
    • usermod -l bob
    • usermod -d bob
    • usermod -L bob
  18. What directory contains a user’s home directory?

    • /home
    • /
    • /rootfs
    • /user
  19. GIDs under 500 (or 1000) are usually reserved for what kind of groups?

    • Administrators
    • System use
    • User private groups (UPG)
    • Are not used for groups, but for user accounts
  20. If a user is deleted, the files and directories that the user owned…

    • …will have no UID owner.
    • …will have no user owner.
    • …are deleted as well.
    • …may be important for others in the organization
  21. Which of the following options for the useradd command allows you to use a different primary group then the default?

    • -g
    • -U
    • -u
    • -G
  22. On a system that uses UPG, the UID must not be the same as the GID.. True or False?

    • True
    • False
  23. The usermod command can be used to unlock a users account with the following option.

    • -s
    • -U
    • -u
    • -f
  24. Which of the following options for the useradd command allows you to use a different login shell than the default?

    • -s
    • -U
    • -g
    • -u
  25. Which of the following commands will add the group extra to the user jane’s secondary groups in addition to jane’s current secondary groups?

    • usermod -G extra jane
    • usermod -ag jane extra
    • usermod -a extra jane
    • usermod -aG extra jane
  26. Which option for the usermod command can be used to specify a user’s primary group ID?

    • -G
    • -s
    • -g
    • -S
  27. For root users, the passwd command can only be used to change the password of the user running the command. True or False?

    • True
    • False
  28. The userdel -r command will…

    • …delete the user account, but leave the user’s files by default.
    • …will prompt before deleting each file owned by a user.
    • …automatically delete a user and the user’s home directory and mail spool and their contents.
    • …automatically delete a user and all the files owned by that user.
  29. The groupmod command can be used to change a group name. True or False?

    • True
    • False
  30. The groupmod command cannot be used to change a group GID. True or False?

    • True
    • False
  31. The groupdel command can be used to delete primary groups. True or False?

    • True
    • False
  32. Which of the following commands can be used to modify a user?

    • usermod
    • adduser
    • useradd
    • moduser
  33. Which command can be used to determine a user’s most recent log in?

    • login
    • last
    • shell
    • history
  34. The /etc/passwd file contains encrypted user password information. True or False? True or False?

    • False
    • True
  35. Which of the following files contains group IDs?

    • /etc/group
    • /etc/shadow
    • /etc/passwd
    • /etc/usr
  36. Which command allows you to view or change some of the default values used by the useradd command?

    • useradd -D
    • modvalue
    • useradd -f
    • useradd -r
  37. Which of the following commands, run as root, will prevent the user jane from logging in?

    • usermod -d jane
    • usermod -D jane
    • usermod -L jane
    • usermod -l jane
4.5 8 votes
Article Rating
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments