Chapter 1 Flashcards

1
Q

How many fields are in each line of /etc/passwd?

A

7

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

Which command shows you the owner userid of a file as an integer?

A

ls -lan

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

Which characters can you use in usernames?

A

only lowercase letters, digits, and underscores

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

Red Hat recommends system users in what range?

A

1-499

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

What is the userid of the process with process id (PID) 1?

A

0

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

What is the problem with this line from /etc/passwd? root::0:0:root:/root:/bin/bash

A

the superuser account is unpassworded, so anyone can take over the computer

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

What happens if a user’s login shell is set to /sbin/nologin?

A

that user is not allowed to log in

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

In Red Hat Enterprise Linux, mail, news, and apache are examples of what?

A

system users

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

The command ps lax can be used to do what?

A

see userids of all processes on the system

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

The id command shows you what?

A

userid, username, and group information for the current user

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