SOLUTIONS GRADED A+
✔✔The visudo command uses which text editor by default? - ✔✔vi
✔✔Which of the following commands will display the groups that the user bob belongs
to? (choose one) - ✔✔id bob
✔✔Which user can view the /etc/shadow file? - ✔✔The root user
✔✔Which of the following commands will display how long the system has been running
since the last boot? (choose two) - ✔✔w
uptime
✔✔Which files contain user account information? (choose two) - ✔✔/etc/passwd
/etc/shadow
✔✔Which of the following commands will allow you to switch to the user, branch?
(choose three) - ✔✔su -l branch
su - branch
.
su branch
✔✔Which command can be used to view the /etc/passwd file entries? - ✔✔getent
✔✔Which command will display the UID, GID and groups your current user belongs to?
- ✔✔id
✔✔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
✔✔The /etc/group file follows what structure? -
✔✔group_name:password_placeholder:GID:user_list
✔✔Which of the following commands will display the group(s) a user belongs to? - ✔✔id
✔✔The /etc/sudoers file should be edited directly by root using the visudo command. -
✔✔True
, ✔✔A GID is associated with a group name. - ✔✔True
✔✔The /etc/shadow file contains plain-text passwords. - ✔✔False
✔✔The sudo command allows regular users to. - ✔✔...run certain commands as the
root user.
✔✔Sudo privileges can be used to specify which user can use the sudo command to
execute commands as other users. - ✔✔True
✔✔Each user belongs to at least one group. - ✔✔True
✔✔A user can belong to. - ✔✔At least 16 groups
✔✔Which command will display the users that are currently logged in to the system? -
✔✔who
✔✔Which of the following files contains encrypted user password information? -
✔✔/etc/shadow
✔✔Which of the following files contains user IDs? - ✔✔/etc/passwd
✔✔For non-root users, the passwd command can only be used to change the password
of the user running the command. - ✔✔True
✔✔Which of the following options for the useradd command allows root to specify the
UID to be associated with the account? - ✔✔-u
✔✔UIDs 1-500 are usually reserved for what kind of users? - ✔✔System accounts,
such as server processes
✔✔Which of the following commands can be used to modify a group? - ✔✔groupmod
✔✔Which command can be used to determine a user's most recent log in? - ✔✔last
✔✔If a user is deleted, the files and directories that the user owned... - ✔✔...will show a
UID as the owner, but not user name.
✔✔Which of the following options for the useradd command allows root to specify
supplementary groups the user will be a member of? - ✔✔-G
✔✔On a system that does not use UPG, the useradd command will also create a user
group. For example, user bob, group bob. - ✔✔False