1.11 – Ownership in Linux & Mac Flashcards

1
Q

Ownership

A

*Linux & Mac OS both share origins with OS known as Unix
—Have many similarities when it comes to controlling file access

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

chown

A

used to change the owner & group of a file

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

syntax

A

chwon user: groupfile

EX: chown juan: instructors class_presentation
—changes the owner to juan
—changes the group to instructor

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

chmod

A

used to change permissions of a file or folder

owner / group / everyone

owner permissions apply to the original file creator

group permissions apply to the group of accounts that have been given access

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

read / write / execute

A

are different permissions that can be granted to a user or group of users

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

read(r)

A

+4 permission

= allows someone to view the contents of a file

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

write(w)

A

+2 permission

= allows someone to save changes to a file

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

execute(x)

A

+1 permission

= allows someone to execute programs or scripts

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

Assign Full Permissions

A

assign read+ write+ execute or 4+2+1 = 7

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

read / write / execute

EXAMPLE

A

chmod 764 class_presentation

chmod u+rwx / g+rw / a+r

*sets owner to have full permissions [7]
*group has read & write [6]
everyone has just read [4]

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