Skip to content

Commit 1f80e77

Browse files
authored
Merge pull request #185 from markagonzales/ssh-perm-changes
2 parents 9e1a9d2 + e257643 commit 1f80e77

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ app_setup_block: |
4747
How to create the [hashed password](https://github.com/cdr/code-server/blob/master/docs/FAQ.md#can-i-store-my-password-hashed).
4848
# changelog
4949
changelogs:
50+
- {date: "09.10.24:", desc: "Manage permissions in /config/.ssh according to file type"}
5051
- {date: "19.08.24:", desc: "Rebase to Ubuntu Noble."}
5152
- {date: "01.07.23:", desc: "Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)"}
5253
- {date: "05.10.22:", desc: "Install recommended deps to maintain parity with the older images."}

root/etc/s6-overlay/s6-rc.d/init-code-server/run

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,7 @@ find /config -path /config/workspace -prune -o -exec chown abc:abc {} +
3131
chown abc:abc /config/workspace
3232
chmod 700 /config/.ssh
3333
if [[ -n "$(ls -A /config/.ssh)" ]]; then
34-
chmod 600 /config/.ssh/*
34+
find /config/.ssh/ -type d -exec chmod 700 '{}' \;
35+
find /config/.ssh/ -type f -exec chmod 600 '{}' \;
36+
find /config/.ssh/ -type f -iname '*.pub' -exec chmod 644 '{}' \;
3537
fi

0 commit comments

Comments
 (0)