8.9 Flashcards

1
Q

letter abriviation r, octal value 4 , open and read file

A

Read

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

letter abricfiation w, octal value 2, edit the file and save the changes

A

write

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

x abbriviation, ocatal value 1, Execute the file, if it’s a program file or a shell script (must be used in conjunction with the read permission)

A

execute

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

-rwxrw-r–

-rwx equates to 4+2+1 user

A

7

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

-rwxrw-r–
rw-, 4+2, group, equates to

A

6

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

-rwxrw-r–

r–, 4 other

A

4

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

View a long listing of files and directories. A long listing displays the permissions assigned to files and directories (among other information)

A

ls -l

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

Change the permissions for the specified file.

entity+permission adds a permission for a user, group, or other to a file or directory.
entity-permission removes a permission for a user, group, or other from a file or directory.
entity=permission sets the permission equal to the permission specified for a user, group, or other for a file or directory.
decimal_value sets the permissions for the file according to the numbers represented for each mode entity.
-R sets permissions recursively.

A

chmod

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

For each file, getfacl displays the file name, owner, the group, and the Access Control List (ACL). If a directory has a default ACL, getfacl also displays the default ACL. Non-directories cannot have default ACLs.

A

getfacl file

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

This utility sets Access Control Lists (ACLs) of files and directories.

A

setfactfile

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

The value used to restrict the permissions for a file or directory.

A

umask

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

umask calculation
666 for files Binary
777 for directories binary
for files rw-rw-rw-
for directories rwxrwxrwx

A

default permission

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

022 files binary
022 files directories
—-w–w- file abreviation for files
—-w–w- file abreviation for direcotries

A

Umask (minus)

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