Chapter 7 Flashcards

1
Q

groups

A

means of organizing users. groups parallel users

345

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

GIDs

A

group IDs

number created to track groups

346

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

UIDs

A

User IDs

number created to track users

346

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

useradd parameter

-c

A

comment parameter passes the comment field for the user. may include contact info for the administrator

348

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

useradd parameter

-d or home-dir

A

used to specify a user’s account home directory

348

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

useradd parameter

-e expire-date

A

used to specify when an account will be disabled as expressed in YYYY-MM-DD format

348

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

useradd parameter

-f inactive-days

A

specifies the number of inactive days are acceptable before the password expires

348

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

useradd parameter

-g default-group

A

used to set the name or GID

348

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

useradd parameter

-G group[,…]

A

sets the names or GIDs of one or more groups to which the user belongs

349

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

useradd:

/etc/login.defs file

A

specifies whether or not to create a user’s home directory when the account is created via the CREATE_HOME setting

349

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

useradd parameter

-M

A

forces the system not to create a home directory, even if /etc/login.defs specifies that this action is the default

349

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

useradd parameter

-p password

A

passes the pre-hashed password for the user to the system.

349

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

useradd parameter

-s shell

A

sets the name of the user’s default login shell

defaults to /bin/bash

349

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

useradd parameter

-u UID

A

creates an account with the specified user ID value (UID). This must be a counting number

349

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

useradd parameter

-r

A

specifies the creation of a system account

350

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

useradd parameter

-N

A

This disables:
In Red Hat and similar distros, the system creates a group with the same name as the specified username.

350

17
Q

passwd parameter

-k

A

indicates that the system should update an expired account

351

18
Q

passwd parameter

-l

A

locks an account by prefixing the hashed password with an exclamation mark. The account can not be logged in, but the files are safe.

351

19
Q

passwd parameter

-u

A

unlocks an account by removing the exclamation mark.

351

20
Q

passwd parameter

-d

A

removes the password from an account rendering it passwordless.No warning messages.

351

21
Q

passwd parameter

-S

A

displays information about the password for an account. Info displayed includes what kind of algorithm was used to hash the password

351

22
Q

usermod

A

changes an existing account instead of creating a new one

352

23
Q

chage command

A

allows you to modify account settings relating to account expire if either of two conditions are true

The password hasn’t been changed in a specified time period

The system date is past a predetermined time

354

24
Q

chage parameter

-l

A

option causes chage to display accoount expiration and password aging information for a particular user

354

25
Q

chage parameter

-m mindays

A

sets the minimum number of days between password changes. 0 indicates that a user can change a password multiple times in a day

354

26
Q

chage parameter

-M maxdays

A

sets the maximum number of days that may pass without changing the password

354

27
Q

chage parameter

-d lastday

A

sets the last day a password was changed. Linux normally maintains this value automatically

354

28
Q

chage parameter

-I inactivedays

A

sets the number of days between password expiration and disablement

354

29
Q

chage parameter

-E expiredate

A

sets an absolute expiration date on a password

354

30
Q

chage parameter

-W warndays

A

sets the number of days before account expiration that the system will send impending expiration warnings to the user

354

31
Q

journalctl

A

shows you all of the systemd-journald collected data

376

32
Q

NTP

A

Network Time protocol

most common protocol for setting the time in linux. one of the most popular, flexible, and accurate network time tools.

380

33
Q

pool.ntp.org

A

subdomain dedicated to servers that have volunteered to function as public NTP servers

384

34
Q

What cannot be running when you issue the ntpd -gp command because if it is, you will get no warning message or error message, just a prompt back with no synchronization completed?

A

NTP daemon

386

35
Q

Function of groups in Linux

A

Linux groups enable security features to be applied to arbitrary groups of users. Each group holds an arbitrary collection of users, and group permissions can be set on files, giving all group members the same access rights to the files

389