From 61337aa4c88362ba14f6c91df2e9f97af040c3f0 Mon Sep 17 00:00:00 2001 From: aptalca Date: Tue, 22 Oct 2019 13:32:31 -0400 Subject: [PATCH] UsePAM is unsupported --- root/etc/cont-init.d/50-config | 2 -- 1 file changed, 2 deletions(-) diff --git a/root/etc/cont-init.d/50-config b/root/etc/cont-init.d/50-config index 390c1bf..080738d 100644 --- a/root/etc/cont-init.d/50-config +++ b/root/etc/cont-init.d/50-config @@ -41,13 +41,11 @@ fi # password access if [ "$PASSWORD_ACCESS" == "true" ]; then 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."