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
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.
Account expiration date
26
Users|Groups field reserved for future use
reserved field
27
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).
Group administrators
28
Users|Groups useradd option create user account with custom comments
useradd -c
29
Users|Groups useradd option create new user account with custom home directory
useradd -d
30
Users|Groups useradd option create new user account by setting specific date on which it will be disabled.
useradd -e
31
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
useradd -f
32
Users|Groups useradd option Create a new user account with a specific GID
useradd -g
33
Users|Groups useradd option create new user account by adding it to multiple secondary groups
useradd -G
34
Users|Groups useradd option Create a new user account with its home directory.
useradd -m
35
Users|Groups useradd option Create a new user account without its home directory.
useradd -M
36
Users|Groups useradd option Create a new user account with a specific login shell
useradd -s
37
Users|Groups useradd option create a new user account with a specific UID
useradd -u
38
Users|Groups passwd option delete password of a user account - thus setting an empty pw making it a passwordless ccount
passwd -d
39
Users|Groups passwd option force the user account to change the pw
passwd -e
40
Users|Groups passwd option lock the user account - encrypted pw is prefixed with an exclamation mark
passwd -l
41
Users|Groups passwd option unlock the user account and the exclamation mark is removed
passwd -u
42
Users|Groups passwd option output info about the pw status for a specific account
passwd -S