Chapter 12 Flashcards

1
Q

Linux is a blank, meaning that it provides features to help multiple individuals use the computer.

A

multiuser OS

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

Blanks enable multiple users to share the same computer without causing one another too much trouble

A

Accounts

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

Most account features are defined in the blank file, which consists of colon-delimited lines, with each line defining a single account.

A

/etc/password

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

The blank field in the /etc/password record is the most relevant feature that usually consists of lowercase letters and numbers. It’s the first field.

A

username

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

The blank field in the /etc/password record is the code that is required at login, and is the second field.

A

password

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

The blank field in the /etc/password record is a number that tracks accounts and is the third field in a record (usually greater than 1000 for regular users)

A

user identification number (UID)

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

The blank field in the /etc/password record tracks account to one or more collection of accounts with predefined permissions. It’s the fourth field in a record.

A

group identification number (GID)

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

The blank field in the /etc/password record normally hods the user’s full name, although it can hold other information, and it comes after the GID.

A

Comment

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

The blank field in the /etc/password record is a file directory listing for an account’s home base. It comes as the 6th field in the record.

A

Home directory

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

The blank field in the /etc/password record is associated with every account and is normally Bash.

A

Default shell

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

True or False: The password field in most modern /etc/password files is salted and hashed since the file is available to all users.

A

False

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

Where is the salted and hashed password actually stored?

A

the /etc/shadow file

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

Name the first field in the record of the /etc/shadow file.

A

Username

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

Name the second field in the record of the /etc/shadow file.

A

password

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

Name the third field in the record of the /etc/shadow file.

A

Last password change

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

In the /etc/shadow file, how is the last password change displayed?

A

As the number of days since Jan 1, 1970

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

Name the fourth field in the record of the /etc/shadow file.

A

Days until a change is allowed

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

Name the fifth field in the record of the /etc/shadow file.

A

days before a change is required

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

Name the sixth field in the record of the /etc/shadow file.

A

Days of warning before password expiration

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

Name the seventh field in the record of the /etc/shadow file.

A

Days between expiration and deacitvation

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

Name the eighth field in the record of the /etc/shadow file.

A

Expiration date

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

in the /etc/shadow file, how is the expiration date for the account displayed.

A

number of days since Jan 1, 1970

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

Name the ninth field in the record of the /etc/shadow file that is normally blank

A

Special flag

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

The blank file is used to define groups

A

/etc/group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Name the first field in the record of the /etc/group file.
group name
26
Name the second field in the record of the /etc/group file.
password
27
Name the third field in the record of the /etc/group file.
GID
28
Name the fourth field in the record of the /etc/group file.
User list
29
If you want to create that are associated with another group to which you belong (other than your primary group) use the blank command
newgrp
30
What command displays your current user ID?
whoami
31
If you need more information about your user ID, what command would you use?
id
32
The id utility shows what three areas of identification?
1) Your userID and userName 2) Your current groups with GID 3) All your group memberships
33
Name the option(s) for id that displays the effective group id
--group -g
34
Name the option(s) for id that displays all groups to which you belong
--groups -G
35
Name the option(s) for id that displays only the user data
--user -u
36
Name the option(s) for id that when used in conjunction with -g, -G or -u lists only the name and not the ids
--name -n
37
Name the option(s) for id that when used in conjunction with -g, -G or -u lists only the ids and not the name
--real -r
38
To learn who is online, use the blank command
who
39
When using the who command what fields are returned for each record?
Username, Terminal identifier, Login date and time, Remote host
40
Which command with who provides as a summary the total number of users online
--count or -q
41
What command is similar to whoami but displays more information
who am i
42
As an alternative to who, the blank command provides even more verbose results
w
43
In addition to the fields found in the results of a who command, what additional fields are added in w?
session's idle time JCPU (total amount of CPU time for session) PCPU (total amount of CPU time for current process) What column (program they are running)
44
The blank user account has superuser privilege to manage the features of the computer as a whole
root
45
Activities like browsing the web, writing letters, managing a music collection are known as blank
user tasks
46
The root user exists to complete blank tasks like installing software, preparing a new disk, and managing ordinary user accounts
administrative tasks
47
The root account has the ability to blank and blank every file on the computer
read write
48
Name three ways you can acquire root privileges
login as root use su use sudo
49
The blank command allows you to change your identity within a shell
su
50
If you type su without a username after the command, you are switched to what account?
root
51
When your are done with commands after using su, what do you type to relinquish the root user?
exit
52
If you use a blank with the su command or a blank with a blank, you will switch users and open a login session that runs the target user's login scripts, which usually sets up their environment variables
- - username
53
The blank command is similar to su, but it only allows you to run one command at a time
sudo
54
Of the ways to get root user privileges, only the blank command tracks and logs a user's activity to prevent a repudiation environment
sudo
55
What two changes in the shell prompt let you know that you are using the root account
username is changed to root the last character of the prompt is # instead of $
56
What is the purpose of the system account with a UID of 0?
It's the system administrator's account
57
What type of information will you find in the /etc/password for ordinary account users? (select all that apply) A. A UID number b. A complete listing of every group the user belongs C. The path to the user accounts home directory D. The path to the user account's default GUI environment E. The path to the user account's default text-mode shell
A, C, E
58
You want to run the cat /etc/shadow command as root, but you aren't logged in. Which of the following commands will get the job done? A. sudo cat /etc/shadow B. root cat /etc/shadow C. passwd cat /etc/shadow D. su cat /etc/shadow E. admin cat /etc/shadow
A
59
True or False: whoami provides more information than id
False
60
True or False: Linux stores information on its groups in the /etc/groups file
False
61
True or False: As a general rule, you should provide extra care when running programs as root
True
62
The file that associates usernames with UID numbers in Linux is blank
/etc/passwd
63
To learn who is currently logged into the computer and what programs they are running, you can type blank
w
64
UID above 0 and below 500 or 1000 are reserved for use by blank accounts
system
65
A blank environment means that a person cannot deny actions, and the sudo command helps establish this environment
nonrepudiation