Chapter 7 - Administering the System Flashcards

1
Q

in linux, accounts are what?

7-344

A

data structures and procedures used to identify individual users of a computer

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

group membership is controlled through which file?

each user has a default or ____ group, which is set in the user’s configuration ____ record

7-345

A

/etc/group

primary, /etc/passwd

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

linux tracks users and groups by numers, not by names. what are these numbers?

7-346

A

user ID

group ID

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

how many user accounts can be made on a linux machine?

7-347

A

upper limit is beyond 4.2 billion

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

what utility do you use to add users?

7-348

A

useradd

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

are passwords in linux hashed or encrypted?

7-349

A

hashed

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

what’s the command for setting the password?

7-350

A

passwd

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

as the administrator, how do you enter a new password for a user?

7-351

A

passwd username

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

the usermod has some utilities to it. i will list them, you tell me what they do.

7-352,353

A

m - move the user’s file to a new location
d - changes the user’s home directory
l - changes the user’s login name to the specified field
L and U - lock and unlock the user’s password

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

what command allows you to modify an account’s expiration?

7-354

A

chage

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

how do you remove a user and all their stuff?

7-358

A

userdel -r username

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

how do you add a group?

7-359

A

groupadd

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

what command modifies an existing group’s settings?

7-360

A

groupmod

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

true/false: group passwords are common and not considered a security risk.

7-361

A

false

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

what does the grep command allow you to do?

7-362

A

to search through files for particular records

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

text mode user environments are controlled through what?

7-364

A

shell configuration files

17
Q

when you are adding users, useradd copies files from the ____ directory into a newly created home directory

7-365

A

skeleton

18
Q

how do you change the log file configuration?

7-365

A

by configuring the syslogd daemon

19
Q

what do you use to manually create a log entry (or have a script do so)?

7-369

A

logger

20
Q

what do log file rotation tools do?

7-370

A

they rename and optionally compress the current log files, delete old log files, and force the logging system to begin using new log files

21
Q

what command is used for rotating the log files?

7-370

A

logrotate

22
Q

what does the systemd-journald daemon do?

7-374

A

its a system service that brings together and stores logging data

23
Q

how does MaxFileSec determine the rotation schedule?

7-376

A

uses a time increment

24
Q

what is the basic journalctl syntax?

7-377

A

journalctl [options…] [matches…]

25
Q

there are 2 built-in clocks. tell me what they are.

7-379

A

the hardware clock

the software clock

26
Q

what happens if the NTP daemon is running when you issue the ntpd -gq command?

7-386

A

you will get no warning message or error message, just a prompt back with no time synchronization completed

27
Q

what is the cron tool responsible for?

7-389

A

used for scheduling tasks to run at specified times (cron jobs)

28
Q

tell me about the 2 types of cron jobs

7-389

A

system cron jobs - run as root and perform system-wide maintenance tasks
user cron jobs - run user programs on a regular basis

29
Q

true/false: cron jobs run unsupervised. therefore, if a program requires user input, it cannot be a cron job.

7-389

A

true

30
Q

what utility do you use to create a cron job?

7-391

A

crontab

31
Q

what is the default editor when you use the crontab -e command?

7-392

A

the vi editor

32
Q

the anacron utility is controlled through a config file called /etc/anacrontab. this file consists of 3 main line types. tell me what they are.

7-395

A

comment lines denoted by a leading hash mark
environment variable assignments
job definition records