DCOM 142 UPDATED EXAMS TEST PAPER
QUESTIONS AND ANSWERS SURE A+
✔✔True or false: The /etc/group file supports linking each user to a maximum of one
group. - ✔✔False
The question's limitation applies to the default group specified in /etc/passwd. In
/etc/group, each line can link one group to an arbitrary number of users.
✔✔When should you use the root account? - ✔✔E
The root account is extremely powerful, and therefore extremely dangerous. Thus, you
should use it only when you need that power to perform administrative tasks, as option
E specifies. You'll get little or no extra speed from the root account, so using it as option
A specifies will gain you nothing but expose your system to added risk, making option A
incorrect. Even if you're the sole user of the computer, using root unnecessarily can be
dangerous; and if you're the system administrator, you'll have to use the root account
even on a multi-user system. Thus, option B is incorrect. Although root power is
sometimes necessary for diagnostics, this isn't always the case, so option C is incorrect.
Running untrusted programs is always risky, and running them as root is doubly risky,
so option D is incorrect.
,✔✔You want to delete the oldproj group, so you type ______ oldproj. - ✔✔Answer:
groupdel
✔✔True or false: GUI account management tools provide more options than their text-
mode counterparts. - ✔✔False
Text-mode account management tools invariably provide as many or more options than
do GUI account management tools.
✔✔Which of the following pieces of information on user accounts is not normally stored
in the /etc/passwd file on modern Linux distributions? - ✔✔E
Although /etc/passwd includes a field for the password, that field normally contains an x
value, meaning that the encrypted password is stored in /etc/shadow. Thus, option E is
correct. The accounts default shell, default GID number, UID number, and username all
appear in /etc/passwd, so options A, B, C, and D are all incorrect.
✔✔True or false: All user accounts are necessarily defined in /etc/passwd and
/etc/shadow. - ✔✔False
Some computers use network account databases, which supplement local account
configuration files with those stored on a remote network server.
✔✔True or false: The lowest UID number used for user accounts on Linux systems
varies from one installation to another. - ✔✔True
Most distributions today use a minimum UID number of 1000; however, some use 500,
and administrators can change this value if they so desire.
✔✔The file that associates usernames with UID numbers in Linux is ___________.
(Provide the complete path to the file.) - ✔✔Answer: /etc/passwd
✔✔What type of information will you find in /etc/passwd for ordinary user accounts?
(Select all that apply) - ✔✔Answers A, C, E
....
✔✔You want to run the command cat /etc/shadow as root, but your logged in as an
ordinary user. Which of the following commands will do the job, assuming that the
system is configured to give you root access via the appropriate command? - ✔✔A
The command sudo cat /etc/shadow will give the ordinary user access for the command
to run as root.
, ✔✔True or False: whoami provides more information than id. - ✔✔False
The whoami command only responds with the current session user's name, id will give
more details including numeric user and group ID and all the groups the user belongs
to.
✔✔UIDs below 500 or 1000 (depending on the distribution) are reserved for use by
__________ accounts. - ✔✔Answer: system
✔✔A(n) _________ environment means that a person cannot deny actions, and the
sudo command helps establish this environment. - ✔✔Answer: nonrepudiation
✔✔True or False: Linux stores information on its groups in the /etc/groups file. -
✔✔False
The file it stores groups in is the /etc/group file not /etc/groups.
✔✔What is the purpose of the system account with a UID of 0? - ✔✔A
The UID 0 is reserved for the root user.
✔✔True or False: As a general rule, you should employ extra care when running
programs as root. - ✔✔True
The root account is very powerful and can be disastrous if something is done carelessly.
✔✔To learn who is currently logged into the computer and what programs they're
currently running, you can type _____. - ✔✔Answer: w
✔✔To run a GUI program in Linux, you must launch it from a desktop environment's
menus. - ✔✔False
You can launch GUI programs in several ways, including using a desktop environment's
menus or typing the program's filename in a terminal program
✔✔What can you use to search man pages for key words? (Which option) - ✔✔Answer:
-k
The -k is the option to search for keywords in man pages.
✔✔Which of the following redirection operators appends a program's standard output to
an existing file, without overwriting that file's original contents? - ✔✔E
QUESTIONS AND ANSWERS SURE A+
✔✔True or false: The /etc/group file supports linking each user to a maximum of one
group. - ✔✔False
The question's limitation applies to the default group specified in /etc/passwd. In
/etc/group, each line can link one group to an arbitrary number of users.
✔✔When should you use the root account? - ✔✔E
The root account is extremely powerful, and therefore extremely dangerous. Thus, you
should use it only when you need that power to perform administrative tasks, as option
E specifies. You'll get little or no extra speed from the root account, so using it as option
A specifies will gain you nothing but expose your system to added risk, making option A
incorrect. Even if you're the sole user of the computer, using root unnecessarily can be
dangerous; and if you're the system administrator, you'll have to use the root account
even on a multi-user system. Thus, option B is incorrect. Although root power is
sometimes necessary for diagnostics, this isn't always the case, so option C is incorrect.
Running untrusted programs is always risky, and running them as root is doubly risky,
so option D is incorrect.
,✔✔You want to delete the oldproj group, so you type ______ oldproj. - ✔✔Answer:
groupdel
✔✔True or false: GUI account management tools provide more options than their text-
mode counterparts. - ✔✔False
Text-mode account management tools invariably provide as many or more options than
do GUI account management tools.
✔✔Which of the following pieces of information on user accounts is not normally stored
in the /etc/passwd file on modern Linux distributions? - ✔✔E
Although /etc/passwd includes a field for the password, that field normally contains an x
value, meaning that the encrypted password is stored in /etc/shadow. Thus, option E is
correct. The accounts default shell, default GID number, UID number, and username all
appear in /etc/passwd, so options A, B, C, and D are all incorrect.
✔✔True or false: All user accounts are necessarily defined in /etc/passwd and
/etc/shadow. - ✔✔False
Some computers use network account databases, which supplement local account
configuration files with those stored on a remote network server.
✔✔True or false: The lowest UID number used for user accounts on Linux systems
varies from one installation to another. - ✔✔True
Most distributions today use a minimum UID number of 1000; however, some use 500,
and administrators can change this value if they so desire.
✔✔The file that associates usernames with UID numbers in Linux is ___________.
(Provide the complete path to the file.) - ✔✔Answer: /etc/passwd
✔✔What type of information will you find in /etc/passwd for ordinary user accounts?
(Select all that apply) - ✔✔Answers A, C, E
....
✔✔You want to run the command cat /etc/shadow as root, but your logged in as an
ordinary user. Which of the following commands will do the job, assuming that the
system is configured to give you root access via the appropriate command? - ✔✔A
The command sudo cat /etc/shadow will give the ordinary user access for the command
to run as root.
, ✔✔True or False: whoami provides more information than id. - ✔✔False
The whoami command only responds with the current session user's name, id will give
more details including numeric user and group ID and all the groups the user belongs
to.
✔✔UIDs below 500 or 1000 (depending on the distribution) are reserved for use by
__________ accounts. - ✔✔Answer: system
✔✔A(n) _________ environment means that a person cannot deny actions, and the
sudo command helps establish this environment. - ✔✔Answer: nonrepudiation
✔✔True or False: Linux stores information on its groups in the /etc/groups file. -
✔✔False
The file it stores groups in is the /etc/group file not /etc/groups.
✔✔What is the purpose of the system account with a UID of 0? - ✔✔A
The UID 0 is reserved for the root user.
✔✔True or False: As a general rule, you should employ extra care when running
programs as root. - ✔✔True
The root account is very powerful and can be disastrous if something is done carelessly.
✔✔To learn who is currently logged into the computer and what programs they're
currently running, you can type _____. - ✔✔Answer: w
✔✔To run a GUI program in Linux, you must launch it from a desktop environment's
menus. - ✔✔False
You can launch GUI programs in several ways, including using a desktop environment's
menus or typing the program's filename in a terminal program
✔✔What can you use to search man pages for key words? (Which option) - ✔✔Answer:
-k
The -k is the option to search for keywords in man pages.
✔✔Which of the following redirection operators appends a program's standard output to
an existing file, without overwriting that file's original contents? - ✔✔E