Chapter 13 Flashcards
Each user can have an associated blank, ie user luke can have a blank called luke.
user group
You can create groups based on blank, blank, or blank, like sales for team member in the sales department.
work projects, departmental affiliations, other real-world groupings
Name 6 poor, but common password issues
1) Uses the name of family members, friends and pets
2) favorite books, movies, television shows, or characters
3) telephone numbers, street addresses, or social security numbers
4) Any other meaningful personal information
5) any single word found in a dictionary
6) any simple keyboard or alphanumeric combination
A reasonable way to build a complex password that’s easy to remember involves what two steps
1) Choosing a base that’s easy to remember but difficult to guess
2) Modify the base in ways that increase the difficulty of guessing the password
One approach in password creation is two pick two or more blank words
unrelated
Another approach in password creation is to use the first letters of a blank
easily remembered phrase
Name four ways to modify the password base to increase its security
1) Adding numbers or punctuations
2) Mixing Case
3) Reversing order
4) Growing the heystack
With any Linux distribution, the blank utility is used to create accounts through the command line
useradd
What two things must be in the useradd command
useradd and username
Name the useradd option(s) that specifies the comment field for the user
–comment comment or -c
Name the useradd option(s) that specifies the account’s home directory
–home homedir or -d
Name the useradd option(s) that sets the date on which the account will be disabled expressed in the form yyyy-mm-dd
–expiredate date -e
Name the useradd option(s) that sets the number of days after a password expires
–inactive inactive-days -f
Name the useradd option(s) that sets the name of the GID of the user’s default group
–gid default-group -g
Name the useradd option(s) that sets the names or GIDs to which the user belongs, using commas to separate more than one
–groups[,…] -G
Name the useradd option(s) that when included with useradd creates a homedirectory for the user
–create-home -m
Name the useradd option(s) to specify another template directory other than the default skeleton-directory
-skel skeleton-directory -k
Name the useradd option(s) that forces the system to not automatically create the home directory
-M
Name the useradd option(s) that sets the name of the user’s default login shell
–shell shell -s
Name the useradd option(s) that creates an account with the specified user id
–uid UID -u
Name the useradd option(s) that enables a single UID number to be reused
–non-unique -o
Name the useradd option(s) that specifies the creation of a system account
–system -r
Name the useradd option(s) that disables creation of a group for the user
–no-user-group -N
Behind the scenes, useradd modifies the contents of what 3 files
/etc/passwd
/etc/shadow
/etc/group
The blank command provides a list of recent login sessions, including their starting and ending times, or a notice the user is still logged in
last
One notable limitation of the last command is that it only shows users who logged in via blank
text-mode logins
One of the most frequent account modifications is to change a user’s password via the blank command
passwd
Other than password modification user changes can be handled in text-mode by the blank command
usermod
Name the usermod option(s) that used with –groups (-G) causes the specifed groups to be added rather than replaced to the list of groups the user belongs
–append -a
Name the usermod option(s) that specifies the comment field for the user
–comment comment -c
Name the usermod option(s) that specifies the user’s home directory
–home home-dir -d
Name the usermod option(s) that sets the date for user expiration
–expiredate expire-date -e
Name the usermod option(s) that sets the number of days after a password expires
–inactive inactive-days -f
Name the usermod option(s) that sets the name or GID for the user’s default group
–gid default-group -g
Name the usermod option(s) that sets the names or GIDs to which the user belongs
Name the usermod option(s) that changes the account’s username to the specified value
–login username -l
Name the usermod option(s) that locks the account’s password, preventing login
–lock or -L
Name the usermod option(s) that when this option is included with –home, moves the existing home directory to the new location
–move-home -m
Name the usermod option(s) that sets the name of the user’s default shell
–shell shell -s
Name the usermod option(s) that changes the account’s UID number to the specified value
–uid UID -u
Name the usermod option(s) that unlocks an account password
–unlock -U
The blank command deletes accounts from a text-mode shell
userdel
Name the userdel option(s) that removes the user’s home directory
–remove -r
Name the usermod option(s) that removes the user’s home directory even if it is currently in user
–force -f
You can create groups from the shell using the blank command
groupadd
Name the groupadd option(s) that provides a specific GID
–gid GID -g
Name the groupadd option(s) that instruct groupadd to create a system group
–system -r
Name the groupadd option(s) that suppresses the error messages that the group already exists
–force -f
Name the commands to modify and delete groups
groupmod
groupdel
What would a Linux system admin type to remove the nemo account and its home directory
userdel -r nemo
Of the following which is the best password?
A) LinusTorvalds
B) uB2op%4q++7K9A++
C) 123456
D) password
E) peanutbuttersandwich
B
Describe the effect of the following command assuming it completes successfully:
groupadd henry
A) it adds a new group called henry
B) it adds the user henry to the current default group
C) It imports group information for the file called henry
D) It changes the user’s default group to henry
E) It adds the group henry to the user’s list of groups
A
True or false: User accounts have higher UID numbers than system accounts
True
True or false: Command-line users normally use usermod to change their passwords
False
True or false: After deleting an account, files formerly owned by the deleted account may remain on the computer
True
You want to create an account for a new user, using the username thor and giving the UID of 2019. The command to do this is blank
useradd -u 2019 thor
You want to change a username from carol to marvel without altering anything else. To do so type blank
usermod -l marvel carol
To create a system group, you must pass the blank option to groupadd
-r
Information on various groups, such as group name, GID, group members, is stored in the blank file
/etc/group