File Permissions - Paiet/Tech-Journal-for-Everything GitHub Wiki
- chmod
- Assign/remove permissions
-
u - user
-
g - group
-
o - others
- Permissions
- Symbolic Notation:
-
- - None
-
r - read
-
w - write
-
x - execute
- Numeric Notation:
-
0 - None
-
1 - Execute
-
2 - Write
-
3 - Write and Execute
-
4 - Read
-
5 - Read and Execute
-
6 - Read and Write
-
7 - Read, Write and Execute
- Typical default:
chmod u+x <file>
chmod g-rx <file>
chmod 755 <file>
- chown
- Change the owner of a file
chown <user> <file>
chown <user>:<group> <file>
chown -R <directory>
- chgrp
- Change the group of a file
chgrp <group> <file>
chgrp -R <directory>
⚠️ **GitHub.com Fallback** ⚠️