Chapter 6 Users & Groups
In the /etc/shadow file, which character in the password field indicates that a standard user account is locked
!
In the /etc/shadow file, which character in the password field indicates that the password is an encrypted entry?
$
when used with the usermod command, what switch modifies the account name
-l
what is the full path and filename of the file you should edit when using the useradd utility to create a user account
/etc/default/useradd
what is the full path to the directory that contains a set of configuration file templates that are copied into a new user's home directory when it is created
/etc/skel
what is the full path to the directory that contains a set of configuration file templates that are copied into a new user's home directory when it is created?
/etc/skel
what stores commands that execute when a user logs out
/etc/skel/.bash_logout
what is the full path and filename of the file that stores BASH preferences for the gshant user account?
/home/gshant/.bash_profile
During installation, what user account number does the root user account use?
0
what does the passwd command do
assign or change a password for a user
what does the useradd command do
creates a user account
what command changes a group password
gpasswd
What are the default values in the /etc/default/useradd
group ID Home directory Account expiration default shell secondary group membership skeleton directory
what command creates a new group
groupadd
what command deletes a group
groupdel
what command modifies a group definition
groupmod
what command will modify an existing group and change the name of a group?
groupmod -n [new name] [old name]
what command display all groups to which a user belongs to
groups [username]
what does the usermod command do
modify an existing user account; uses similar switches to useradd
What is the format for the /etc/passwd file
name:password:UID:GID:GECOS:homedirectory:shell
what command logs in to a new group with the group password
newgrp
what command displays the status of a user account
passwd -S
what option with the passwd command disables (locks) an account
passwd -l
what utility moves passwords from the less-secure /etc/passwd file to the more secure /etc/shadow file?
pwconv
what does the userdel command do
removes the user from the system
when using the useradd command, what switch sets the comment
user -c "comment" [username]
what command displays the default values specified in the /etc/default/useradd file
useradd -D
what command assigns the user a custom UID
useradd -u
what command deletes a user's account along with their home directory
userdel -r
what command is used to add a user to a group
usermod -G [groupname] [username]
what command will disable a user account
usermod -L
what command is used to add a user to a group, appending to the list of existing groups that the user belongs to
usermod -aG [groupname] [username]
what command changes a username
usermod -l [new username] [old username]
what command is used to change a user's shell
usermod -s /bin/bash [user]
During a Fedora distribution installation, you add a regular user account, in addition to a root user that was added to the system. What user ID is associated with the new user?
500