Added Synology & Permissions
This commit is contained in:
+6
-6
@@ -2,20 +2,20 @@
|
||||
|
||||
## Symbolic Notation
|
||||
|
||||
'''bash
|
||||
```bash
|
||||
chmod u+rwx foldername # Give owner read, write, execute
|
||||
chmod g+rx foldername # Give group read and execute
|
||||
chmod o-rwx foldername # Remove all permissions for others
|
||||
chmod -R u+rw foldername # Recursively give read/write to owner
|
||||
'''
|
||||
```
|
||||
|
||||
## Numeric Notation
|
||||
|
||||
'''bash
|
||||
```bash
|
||||
chmod 755 foldername # rwxr-xr-x (owner: all, group: read+execute, others: read+execute)
|
||||
chmod 700 foldername # rwx------ (owner: all, no permissions for group or others)
|
||||
chmod 777 foldername # rwxrwxrwx (all permissions for everyone - use cautiously)
|
||||
'''
|
||||
```
|
||||
|
||||
The -R flag makes it recursive within every subfolder beneath the folder referenced.
|
||||
|
||||
@@ -30,7 +30,7 @@ Common permission numbers:
|
||||
|
||||
Use chown to set permissions to a specific user. (You'll almost always need to run with sudo)
|
||||
|
||||
'''bash
|
||||
```bash
|
||||
# Change owner of a file/folder
|
||||
chown username foldername
|
||||
|
||||
@@ -42,4 +42,4 @@ chown -R username foldername
|
||||
|
||||
# Change owner and group recursively
|
||||
chown -R username:groupname foldername
|
||||
'''
|
||||
```
|
||||
Reference in New Issue
Block a user