You are on page 1of 2

Which option to useradd will add groups for a user?

A. -g
B. -x
C. -l
D. -G
Assume that passwords must be changed every 60 days. Which command will change the
date of the user’s last password change without the user actually changing the account
password?
A. chage -f
B. chage -W
C. chage -l
D. chage -d

Which command will list the cron entries for a given user as denoted by <username>?
A. crontab -l -u <username>
B. crontab -u <username>
C. cron -u <username>
D. cronent -u <username>
Which option to useradd creates a system user rather than a normal user?
A. -r
B. -s
C. -a
D. -S
Which file contains encrypted password information for groups?
A. /etc/group
B. /etc/gshadow
C. /etc/gsecure
D. /etc/group.conf
Which of the following best describes the use of the groupdel command?
A. You may force group deletion with the -f option.
B. If a user’s primary group is to be deleted, that user must be deleted first or have their
primary group changed.
C. Groupdel can be run at any time, regardless of group membership.
D. The -r option for groupdel will recursively change users’ GIDs after group
deletion.
Which of the following commands displays the UID, primary group, and supplemental
groups for a given user?
A. id
B. getid
C. passwd
D. chage
Which option to the usermod command is used to change a given user’s real name?
A. -R
B. -n
C. -d
D. -c

You might also like