diff --git a/root/etc/cont-init.d/50-config b/root/etc/cont-init.d/50-config index 2bdbc96..5058d81 100644 --- a/root/etc/cont-init.d/50-config +++ b/root/etc/cont-init.d/50-config @@ -42,13 +42,11 @@ fi if [ "$PASSWORD_ACCESS" == "true" ]; then sed -i '/^#PasswordAuthentication/c\PasswordAuthentication yes' /etc/ssh/sshd_config sed -i '/^PasswordAuthentication/c\PasswordAuthentication yes' /etc/ssh/sshd_config - sed -i '/UsePAM/c\UsePAM yes' /etc/ssh/sshd_config chown root:"${USER_NAME}" \ /etc/shadow echo "User/password ssh access is enabled." else sed -i '/^PasswordAuthentication/c\PasswordAuthentication no' /etc/ssh/sshd_config - sed -i '/UsePAM/c\#UsePAM no' /etc/ssh/sshd_config chown root:root \ /etc/shadow echo "User/password ssh access is disabled."