Skip to content

Commit 41d7d43

Browse files
committed
Use slightly more restrictive permissions
1 parent cde9104 commit 41d7d43

1 file changed

Lines changed: 3 additions & 3 deletions

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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ chmod 600 \
134134
/config/.ssh/authorized_keys
135135

136136
# ssh_host_keys permissions
137-
lsiown -R root:root \
137+
lsiown -R root:"${USER_NAME}" \
138138
/config/ssh_host_keys
139-
chmod 755 \
139+
chmod 750 \
140140
/config/ssh_host_keys
141-
chmod 644 \
141+
chmod 640 \
142142
/config/ssh_host_keys/*

0 commit comments

Comments
 (0)