Chapter 13 Flashcards

1
Q

Each user can have an associated blank, ie user luke can have a blank called luke.

A

user group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

You can create groups based on blank, blank, or blank, like sales for team member in the sales department.

A

work projects, departmental affiliations, other real-world groupings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Name 6 poor, but common password issues

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A reasonable way to build a complex password that’s easy to remember involves what two steps

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

One approach in password creation is two pick two or more blank words

A

unrelated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Another approach in password creation is to use the first letters of a blank

A

easily remembered phrase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Name four ways to modify the password base to increase its security

A

1) Adding numbers or punctuations
2) Mixing Case
3) Reversing order
4) Growing the heystack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

With any Linux distribution, the blank utility is used to create accounts through the command line

A

useradd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What two things must be in the useradd command

A

useradd and username

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Name the useradd option(s) that specifies the comment field for the user

A

–comment comment or -c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Name the useradd option(s) that specifies the account’s home directory

A

–home homedir or -d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Name the useradd option(s) that sets the date on which the account will be disabled expressed in the form yyyy-mm-dd

A

–expiredate date -e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Name the useradd option(s) that sets the number of days after a password expires

A

–inactive inactive-days -f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Name the useradd option(s) that sets the name of the GID of the user’s default group

A

–gid default-group -g

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Name the useradd option(s) that sets the names or GIDs to which the user belongs, using commas to separate more than one

A

–groups[,…] -G

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Name the useradd option(s) that when included with useradd creates a homedirectory for the user

A

–create-home -m

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Name the useradd option(s) to specify another template directory other than the default skeleton-directory

A

-skel skeleton-directory -k

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Name the useradd option(s) that forces the system to not automatically create the home directory

A

-M

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Name the useradd option(s) that sets the name of the user’s default login shell

A

–shell shell -s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Name the useradd option(s) that creates an account with the specified user id

A

–uid UID -u

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Name the useradd option(s) that enables a single UID number to be reused

A

–non-unique -o

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Name the useradd option(s) that specifies the creation of a system account

A

–system -r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Name the useradd option(s) that disables creation of a group for the user

A

–no-user-group -N

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Behind the scenes, useradd modifies the contents of what 3 files

A

/etc/passwd
/etc/shadow
/etc/group

25
Q

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

A

last

26
Q

One notable limitation of the last command is that it only shows users who logged in via blank

A

text-mode logins

27
Q

One of the most frequent account modifications is to change a user’s password via the blank command

A

passwd

28
Q

Other than password modification user changes can be handled in text-mode by the blank command

A

usermod

29
Q

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

A

–append -a

30
Q

Name the usermod option(s) that specifies the comment field for the user

A

–comment comment -c

31
Q

Name the usermod option(s) that specifies the user’s home directory

A

–home home-dir -d

32
Q

Name the usermod option(s) that sets the date for user expiration

A

–expiredate expire-date -e

33
Q

Name the usermod option(s) that sets the number of days after a password expires

A

–inactive inactive-days -f

34
Q

Name the usermod option(s) that sets the name or GID for the user’s default group

A

–gid default-group -g

35
Q

Name the usermod option(s) that sets the names or GIDs to which the user belongs

A
36
Q

Name the usermod option(s) that changes the account’s username to the specified value

A

–login username -l

37
Q

Name the usermod option(s) that locks the account’s password, preventing login

A

–lock or -L

38
Q

Name the usermod option(s) that when this option is included with –home, moves the existing home directory to the new location

A

–move-home -m

39
Q

Name the usermod option(s) that sets the name of the user’s default shell

A

–shell shell -s

40
Q

Name the usermod option(s) that changes the account’s UID number to the specified value

A

–uid UID -u

41
Q

Name the usermod option(s) that unlocks an account password

A

–unlock -U

42
Q

The blank command deletes accounts from a text-mode shell

A

userdel

43
Q

Name the userdel option(s) that removes the user’s home directory

A

–remove -r

44
Q

Name the usermod option(s) that removes the user’s home directory even if it is currently in user

A

–force -f

45
Q

You can create groups from the shell using the blank command

A

groupadd

46
Q

Name the groupadd option(s) that provides a specific GID

A

–gid GID -g

47
Q

Name the groupadd option(s) that instruct groupadd to create a system group

A

–system -r

48
Q

Name the groupadd option(s) that suppresses the error messages that the group already exists

A

–force -f

49
Q

Name the commands to modify and delete groups

A

groupmod
groupdel

50
Q

What would a Linux system admin type to remove the nemo account and its home directory

A

userdel -r nemo

51
Q

Of the following which is the best password?

A) LinusTorvalds
B) uB2op%4q++7K9A++
C) 123456
D) password
E) peanutbuttersandwich

A

B

52
Q

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

A

53
Q

True or false: User accounts have higher UID numbers than system accounts

A

True

54
Q

True or false: Command-line users normally use usermod to change their passwords

A

False

55
Q

True or false: After deleting an account, files formerly owned by the deleted account may remain on the computer

A

True

56
Q

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

A

useradd -u 2019 thor

57
Q

You want to change a username from carol to marvel without altering anything else. To do so type blank

A

usermod -l marvel carol

58
Q

To create a system group, you must pass the blank option to groupadd

A

-r

59
Q

Information on various groups, such as group name, GID, group members, is stored in the blank file

A

/etc/group