Skip to content

Commit dc4862c

Browse files
asdf1nitguysoft
authored andcommitted
Fix ssh permissions and Hostname script
1 parent 76bfc50 commit dc4862c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/modules/admin-toolkit/start_chroot_script

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ then
4242
mkdir -p /home/"${ADMIN_TOOLKIT_NAME}"/.ssh
4343
echo "${ADMIN_TOOLKIT_SSH}" > /home/"${ADMIN_TOOLKIT_NAME}"/.ssh/authorized_keys
4444
chown -R "${ADMIN_TOOLKIT_NAME}" /home/"${ADMIN_TOOLKIT_NAME}"/.ssh
45-
chmod 775 /home/"${ADMIN_TOOLKIT_NAME}"/.ssh
45+
chmod 700 /home/"${ADMIN_TOOLKIT_NAME}"/.ssh
4646
chmod 600 /home/"${ADMIN_TOOLKIT_NAME}"/.ssh/authorized_keys
4747

4848
# disable ssh password
@@ -78,6 +78,7 @@ then
7878
then
7979
unpack /filesystem/tools/HostNameScript /home/"${ADMIN_TOOLKIT_NAME}"/scripts ${ADMIN_TOOLKIT_NAME}
8080
chmod +x /home/"${ADMIN_TOOLKIT_NAME}"/scripts/hostname_change.sh
81+
chown -R "${ADMIN_TOOLKIT_NAME}:${ADMIN_TOOLKIT_NAME}" /home/"${ADMIN_TOOLKIT_NAME}"/scripts
8182
fi
8283

8384
fi

0 commit comments

Comments
 (0)