From d132e33f6370926c3909557eb5afe2445f2130ed Mon Sep 17 00:00:00 2001 From: LeLawnGames Date: Wed, 11 Dec 2024 02:52:46 -0500 Subject: [PATCH] Added Synology & Permissions --- cli/permissions.md | 12 ++++++------ cli/syno.md | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cli/permissions.md b/cli/permissions.md index 01623db..8edcc42 100644 --- a/cli/permissions.md +++ b/cli/permissions.md @@ -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 -''' \ No newline at end of file +``` \ No newline at end of file diff --git a/cli/syno.md b/cli/syno.md index 6e1bc87..bbd793a 100644 --- a/cli/syno.md +++ b/cli/syno.md @@ -1,8 +1,8 @@ # Docker Permissions You've saved the permissions run as fix-docker-permissions, so you can call it via CLI like this: -'''bash +```bash sudo fix-docker-permissions -''' +``` It's also saved as a recurring task in Task Scheduler. \ No newline at end of file