7. File Perminsions and Ownership Flashcards

1
Q

What do read permissions grant you?

A

Reading or viewing the content of a file or directory

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

What do write permissions grant you?

A

modifying or deleting a file or directory and its contents

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

What does the execute permission grant you?

A

Executing a file or accessing the contents of a directory for directories

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

What command is used to change the permission of a file or directory?

A

chmod

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

Explain how permission modification is done symbolically.

A

person(s)_involved +/- rwx(this could be any one or more of these characters) filename.txt

Persons_involved:
* u, for the owner
* g, for the group
* o, for others

+ to add permission(s)
- to remove permission(s)

rwx, permission(s) to be added or removed (granted or revoked)

There for example:
chmod u+rwx filename.ext => will grant read, write, and execute permission to the owner of the file

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