Added Synology & Permissions

This commit is contained in:
LeLawnGames
2024-12-11 02:50:50 -05:00
parent b25d87448f
commit d2d40f3d73
3 changed files with 56 additions and 1 deletions
+45
View File
@@ -0,0 +1,45 @@
# Setting Folder Permissions
## Symbolic Notation
'''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
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.
Common permission numbers:
755: Owner can do anything, others can read and execute
644: Owner can read/write, others can read
700: Only owner has access
777: Everyone has full access (generally avoid this)
## Setting Permissions to a Specific User
Use chown to set permissions to a specific user. (You'll almost always need to run with sudo)
'''bash
# Change owner of a file/folder
chown username foldername
# Change both owner and group
chown username:groupname foldername
# Recursively change ownership (include all files and subfolders)
chown -R username foldername
# Change owner and group recursively
chown -R username:groupname foldername
'''
+8
View File
@@ -0,0 +1,8 @@
# Docker Permissions
You've saved the permissions run as fix-docker-permissions, so you can call it via CLI like this:
'''bash
sudo fix-docker-permissions
'''
It's also saved as a recurring task in Task Scheduler.
+2
View File
@@ -2,3 +2,5 @@
## Command Line Tools ## Command Line Tools
- [ZIP Commands](cli/zip.md) - [ZIP Commands](cli/zip.md)
- [Misc. Synology Commands](cli/syno.md)
- [Setting Permissions](cli/permissions.md)