Workbook 4 File Ownership and Permissions: Chapter 4 Directory Ownerships and Permissions Flashcards

1
Q

What are the three permission types for directory files and their symbols?

A

(r)ead
(w)rite
e(x)ecute

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

What does having the r permission for a directory allow a user to do?

A

list the content of the directory [23]

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

What does having the w permission for a directory allow a user to do?

A

add or remove files in the directory [23]

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

What does having the w permission for a directory allow a user to do?

A

“search” for a known file within the directory [23]

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

Give the command line that outputs the permissions for the directory /etc

A

ls -ld /etc [23]

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

What are the default permissions for directories newly created by a normal user?

A

rwxrwxr-x or 775 [23]

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

What are the default permissions for a user’s home directory in RHEL?

A

rwx—— or 700 [23]

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

Generally, in only which two directories can a normal user create new files?

A

Home and tmp directory

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

When are files removed from /tmp?

A

is not accessed for 10

days [24]

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

In Linux, what are sub directories named pub generally used for?

A

to create a permanent, publicly accessible location [24]

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

If you allow others access to your home directory (to access a pub sub directory, for example),
what should you do to protect your home directory’s sub directories and why?

A

Close of the sub directory chmod o-rx if not other can guess the path to the file [26]

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

How are directories identified in a long listing?

A

At the beginning of the permissions list with the letter d

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