5.2 Creating Users and Groups Flashcards

1
Q

Users|Groups

a file of seven colon-delimited fields containing basic information about users

A

/etc/passwd

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

Users|Groups

a file of four colon-delimited fields containing basic information about groups

A

/etc/group

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

Users|Groups

a file of nine colon-delimited fields containing encrypted user pws

A

/etc/shadow

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

Users|Groups

a file of four colon-delimited fields file containing encrypted group passwords

A

/etc/gshadow

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

Users|Groups

world-readable file that contains a list of users, each on a separate line

A

/etc/passwd

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

Users|Groups

File: /etc/passwd
name used when user logs into system

A

Username

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

Users|Groups

File: /etc/passwd
encrypted pw or an x if shadow pw used

A

Password

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

Users|Groups

File: /etc/passwd
ID number assigned to the user in the system

A

User ID (UID)

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

Users|Groups

File: /etc/passwd
Primary group number of the user in the system

A

Group ID (GID)

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

Users|Groups

File: /etc/passwd
optional comment field used to add extra info about the user - such as full name - and can contain multiple comma-separated entries.

A

GECOS

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

Users|Groups

File: /etc/passwd
absolute path of the user’s home directory

A

Home Directory

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

Users|Groups

File: /etc/passwd
Absolute path of the program automatically launched when the user logs into the system -

A

Shell

usually an interactive one like /bin/bash

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

Users|Groups

world-readable file that contains list of groups - each on a separate line

A

/etc/group

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

Users|Groups

file /etc/passwd
name used when the user logs into the system

A

Username

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

Users|Groups

file /etc/passwd
encrypted password or an x if shadow pw used

A

Password

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

Users|Groups

file /etc/passwd
ID number assigned to the user in the system

A

User ID (UID)

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

Users|Groups

file /etc/passwd
Primary group number of the user in the system

A

Group ID (GID)

18
Q

Users|Groups

comma-delimited list of users belonging to the group, except those for whom this is the primary group

A

Member list

19
Q

Users|Groups

The encrypted password of the user (if the value is !, the account is locked).

A

Encrypted password

20
Q

Users|Groups

The date of the last password change, as number of days since 01/01/1970. A value of 0 means that the user must change the pw at the next access.

A

Date of last password change

21
Q

Users|Groups

The minimum number of days, after a password change, which must pass before the user will
be allowed to change the password again

A

Minimum password age

22
Q

Users|Groups

The maximum number of days that must pass before a password change is required.

A

Max pw age

23
Q

Users|Groups

The number of days, before the password expires, during which the user is warned that the
password must be changed

A

PW warning period

24
Q

Users|Groups

The number of days after a password expires during which the user should update the
password. After this period, if the user does not change the password, the account will be
disabled.

A

PW inactivity period

25
Q

Users|Groups

The date, as number of days since 01/01/1970, in which the user account will be disabled. An
empty field means that the user account will never expire.

A

Account expiration date

26
Q

Users|Groups

field reserved for future use

A

reserved field

27
Q

Users|Groups

A comma-delimited list of the administrators of the group (they can change the password of the
group and can add or remove group members with the gpasswd command).

A

Group administrators

28
Q

Users|Groups

useradd option

create user account with custom comments

A

useradd -c

29
Q

Users|Groups

useradd option

create new user account with custom home directory

A

useradd -d

30
Q

Users|Groups

useradd option

create new user account by setting specific date on which it will be disabled.

A

useradd -e

31
Q

Users|Groups

useradd option

Create a new user account by setting the number of days after the password expires during
which the user should update the password

A

useradd -f

32
Q

Users|Groups

useradd option

Create a new user account with a specific GID

A

useradd -g

33
Q

Users|Groups

useradd option

create new user account by adding it to multiple secondary groups

A

useradd -G

34
Q

Users|Groups

useradd option

Create a new user account with its home directory.

A

useradd -m

35
Q

Users|Groups

useradd option

Create a new user account without its home directory.

A

useradd -M

36
Q

Users|Groups

useradd option

Create a new user account with a specific login shell

A

useradd -s

37
Q

Users|Groups

useradd option

create a new user account with a specific UID

A

useradd -u

38
Q

Users|Groups

passwd option

delete password of a user account - thus setting an empty pw making it a passwordless ccount

A

passwd -d

39
Q

Users|Groups

passwd option

force the user account to change the pw

A

passwd -e

40
Q

Users|Groups

passwd option

lock the user account - encrypted pw is prefixed with an exclamation mark

A

passwd -l

41
Q

Users|Groups

passwd option

unlock the user account and the exclamation mark is removed

A

passwd -u

42
Q

Users|Groups

passwd option

output info about the pw status for a specific account

A

passwd -S