Chapter 7 - Administering the System Flashcards
in linux, accounts are what?
7-344
data structures and procedures used to identify individual users of a computer
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
/etc/group
primary, /etc/passwd
linux tracks users and groups by numers, not by names. what are these numbers?
7-346
user ID
group ID
how many user accounts can be made on a linux machine?
7-347
upper limit is beyond 4.2 billion
what utility do you use to add users?
7-348
useradd
are passwords in linux hashed or encrypted?
7-349
hashed
what’s the command for setting the password?
7-350
passwd
as the administrator, how do you enter a new password for a user?
7-351
passwd username
the usermod has some utilities to it. i will list them, you tell me what they do.
7-352,353
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
what command allows you to modify an account’s expiration?
7-354
chage
how do you remove a user and all their stuff?
7-358
userdel -r username
how do you add a group?
7-359
groupadd
what command modifies an existing group’s settings?
7-360
groupmod
true/false: group passwords are common and not considered a security risk.
7-361
false
what does the grep command allow you to do?
7-362
to search through files for particular records
text mode user environments are controlled through what?
7-364
shell configuration files
when you are adding users, useradd copies files from the ____ directory into a newly created home directory
7-365
skeleton
how do you change the log file configuration?
7-365
by configuring the syslogd daemon
what do you use to manually create a log entry (or have a script do so)?
7-369
logger
what do log file rotation tools do?
7-370
they rename and optionally compress the current log files, delete old log files, and force the logging system to begin using new log files
what command is used for rotating the log files?
7-370
logrotate
what does the systemd-journald daemon do?
7-374
its a system service that brings together and stores logging data
how does MaxFileSec determine the rotation schedule?
7-376
uses a time increment
what is the basic journalctl syntax?
7-377
journalctl [options…] [matches…]
there are 2 built-in clocks. tell me what they are.
7-379
the hardware clock
the software clock
what happens if the NTP daemon is running when you issue the ntpd -gq command?
7-386
you will get no warning message or error message, just a prompt back with no time synchronization completed
what is the cron tool responsible for?
7-389
used for scheduling tasks to run at specified times (cron jobs)
tell me about the 2 types of cron jobs
7-389
system cron jobs - run as root and perform system-wide maintenance tasks
user cron jobs - run user programs on a regular basis
true/false: cron jobs run unsupervised. therefore, if a program requires user input, it cannot be a cron job.
7-389
true
what utility do you use to create a cron job?
7-391
crontab
what is the default editor when you use the crontab -e command?
7-392
the vi editor
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
comment lines denoted by a leading hash mark
environment variable assignments
job definition records