From 7579ec248acc12b2ad4bb5084aa9731533794ad3 Mon Sep 17 00:00:00 2001 From: Mark Gonzales Date: Sat, 31 Aug 2024 21:50:18 -0500 Subject: [PATCH 1/3] changes perms in .ssh to file type --- root/etc/s6-overlay/s6-rc.d/init-code-server/run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-code-server/run b/root/etc/s6-overlay/s6-rc.d/init-code-server/run index 883024d..e0c1323 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-code-server/run +++ b/root/etc/s6-overlay/s6-rc.d/init-code-server/run @@ -31,5 +31,7 @@ find /config -path /config/workspace -prune -o -exec chown abc:abc {} + chown abc:abc /config/workspace chmod 700 /config/.ssh if [[ -n "$(ls -A /config/.ssh)" ]]; then - chmod 600 /config/.ssh/* + find /config/.ssh/ -type d -exec chmod 700 '{}' \; + find /config/.ssh/ -type f -exec chmod 600 '{}' \; + find /config/.ssh/ -type f -iname '*.pub' -exec chmod 644 '{}' \; fi From c0aa0f7fc4f823a51eedd6e89ed462aadf915066 Mon Sep 17 00:00:00 2001 From: Mark Gonzales Date: Sun, 1 Sep 2024 10:42:53 -0500 Subject: [PATCH 2/3] update readme-vars.yml --- readme-vars.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/readme-vars.yml b/readme-vars.yml index 1c49ea6..bcb5df7 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -47,6 +47,7 @@ app_setup_block: | How to create the [hashed password](https://github.com/cdr/code-server/blob/master/docs/FAQ.md#can-i-store-my-password-hashed). # changelog changelogs: + - {date: "01.09.24:", desc: "Manage permissions in /config/.ssh according to file type"} - {date: "19.08.24:", desc: "Rebase to Ubuntu Noble."} - {date: "01.07.23:", desc: "Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)"} - {date: "05.10.22:", desc: "Install recommended deps to maintain parity with the older images."} From e2576434598f22fa0ba4ea267f5f0436e28638cd Mon Sep 17 00:00:00 2001 From: Mark Gonzales Date: Thu, 10 Oct 2024 10:41:07 -0500 Subject: [PATCH 3/3] updates changelog date --- readme-vars.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme-vars.yml b/readme-vars.yml index bcb5df7..84ed2f2 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -47,7 +47,7 @@ app_setup_block: | How to create the [hashed password](https://github.com/cdr/code-server/blob/master/docs/FAQ.md#can-i-store-my-password-hashed). # changelog changelogs: - - {date: "01.09.24:", desc: "Manage permissions in /config/.ssh according to file type"} + - {date: "09.10.24:", desc: "Manage permissions in /config/.ssh according to file type"} - {date: "19.08.24:", desc: "Rebase to Ubuntu Noble."} - {date: "01.07.23:", desc: "Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)"} - {date: "05.10.22:", desc: "Install recommended deps to maintain parity with the older images."}