Information Technology Reference
In-Depth Information
Question 4
Which of the following command-line arguments can be specified when using
the useradd or usermod commands? [Select all that apply.]
A.
-u uid
B.
-g gid
C.
-d home_directory
D.
-l account
The correct answers are A, B, and C. The UID, GID, and home directory
can be defined using the specified useradd command-line arguments and
modified using the same usermod command-line arguments. Answer D is
incorrect because the -l command-line argument is only used with the
usermod command to specify a new account name. The account name for the
useradd command does not use the -l command-line argument.
Question 5
Which command can be used to change the members (that is, the user
accounts) assigned to an existing group?
A.
usermod
B.
groupmod
C.
groupadd
D.
groupmem
The correct answer is A. The usermod command is used once for each user
account that is to be added or deleted from a group. Answer B, the groupmod
command, and answer C, the groupadd command, do not affect group mem-
bership. Answer D, the groupmem command, does not exist.
Question 6
Enter the full pathname of the system profile.
The correct answer is /etc/profile .
Search WWH ::




Custom Search