1.11 – Managing Linux Permissions Flashcards
1
Q
see permissions in terminal
A
ls -l
-rw -rw -r - -l andy[user] andy [group]
2
Q
Change ownership of data.txt
A
sudo chwon bob data.txt
3
Q
3 sets of permissions in Linux
A
- Owner = user
- Group = which group they belong to
- Everyone else
4
Q
Number Permissions
A
777 = 7 for owner, 7 for group, 7 for everyone else
All 3 get read/write/execute
First number = owner
Second number = group
Third number = everyone else
5
Q
Read / Write / Execute
A
1 = execute
2 = write
4 = read