System and User Security M15 Exam

  1. Which files contain user account information? (choose two)

    • /etc/passwords
    • /etc/passwd
    • /etc/shadow
    • /etc/group
  2. Which user can view the /etc/shadow file?

    • All users
    • No users
    • Any member of the password group
    • The root user
  3. Which command will display the UID, GID and groups your current user belongs to?

    • about
    • id
    • Who
    • whoami
  4. Each user belongs to at least one group.​ True or False?

    • True
    • False
  5. Which command will display the users that are currently logged in to the system?

    • whoami
    • id
    • about
    • who
  6. The sudo command allows regular users to…

    • …run any command as root, after providing the sudo password.
    • …execute commands as another user.
    • …execute any command as root, after providing the root password.
    • …run any commands as a system account without logging in.
  7. Which of the following commands will display the group(s) a user belongs to?

    • id
    • whoami
    • group
    • all
  8. Which of the following commands will display the groups that the user bob belongs to?

    • all bob
    • id bob
    • group bob
    • groups -a
  9. The /etc/group file follows what structure?

    • user:group
    • groups -a
    • group:GID:user_list
    • group_name:password_placehoder:GID:user_list
  10. A GID is associated with a group name. True or False?

    • True
    • False
  11. A user can belong to…

    • Only groups with a GID over 500
    • Only five groups
    • Only one group
    • At least 16 groups
  12. Sudo privileges can be used to specify which user can use the sudo command to execute commands as other users. True or False?

    • True
    • False
  13. In distributions that do not allow the root user to login directly or via the su command, the installation process automatically configures one user account to be able to use the sudo command to execute commands as if they were executed by the root user. True or False?

    • True
    • False
  14. Which of the following commands will display how long the system has been running since the last boot? (choose two)

    • who
    • uptime
    • id
    • w
  15. The /etc/shadow file contains plain-text passwords. True or False?

    • True
    • False
  16. Which command can be used to view the /etc/passwd file entries?

    • getent
    • uptime
    • uppasswd
    • getpasswd
  17. All Linux systems allow administrators to log in as root. True or False?

    • True
    • False
  18. What is the default user for the su command?

    • The most recently created user
    • The root user
    • All users
    • Any member of the password group
  19. Which command would allow a user to execute commands as root?

    • grep
    • sudo
    • who
    • whoami
    • about
  20. File permissions cannot be edited by the root user. True or False?

    • True
    • False
  21. Which command is used to display only the user’s primary group?

    • man
    • whoami
    • who
    • about
    • id -g
  22. Traditional UNIX systems allowed users to belong to how many groups?

    • 256
    • 10,000
    • 65,000
    • 16
    • 1
  23. What would an account with the UID 376 typically be used for?

    • Temporary employees.
    • System service access.
    • Root user access.
    • White hat hackers.
    • New users with full privileges.
  24. Usernames cannot be the same as group names. True or False?

    • True
    • False
  25. To display the group(s) a user belongs to, use this command:

    • whoami
    • group
    • all
    • grep
    • id
  26. Which command will display the groups that the root user belongs to?

    • groups -a
    • all
    • group -r
    • all -t
    • id root
  27. value of 0 in the “minimum” password aging field means the user cannot change their password. True or False?

    • True
    • False
  28. The “Epoch” began on January 1, 1970. True or False?

    • True
    • False
  29. The last command displays reboot records…

    • Only when issued by the root user
    • After restarting the system
    • When issued with the -p switch
    • By default
    • Never
  30. Sudo privileges allow users to execute commands as another user. True or False?

    • True
    • False
  31. When using the sudo command to execute a command as the root user, the command prompts for the user’s own password, not that of the root user. True or False?

    • True
    • False
  32. The first line of this command displays how long the system has been running since being rebooted.

    • su
    • w
    • id
    • getent
    • who
  33. The/etc/shadow file contains encrypted passwords. True or False?

    • True
    • False
  34. Which command can be used to view the /var/log/wtmp file entries?

    • uppasswd
    • last
    • uptime
    • getpasswd
    • getent