Skip to content

Commit 8e4cd2e

Browse files
authored
Merge pull request #96 from linuxserver/more-perms
2 parents 0473778 + 41d7d43 commit 8e4cd2e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • root/etc/s6-overlay/s6-rc.d/init-openssh-server-config

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,11 @@ chmod 700 \
132132
/config/.ssh
133133
chmod 600 \
134134
/config/.ssh/authorized_keys
135-
chown root:root \
135+
136+
# ssh_host_keys permissions
137+
lsiown -R root:"${USER_NAME}" \
138+
/config/ssh_host_keys
139+
chmod 750 \
136140
/config/ssh_host_keys
141+
chmod 640 \
142+
/config/ssh_host_keys/*

0 commit comments

Comments
 (0)