1.54.0.sh: workaround PAM error with chsh

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
Tobias Knöppler 2024-05-02 08:47:18 +00:00 committed by Tobias K
parent 96b2c19823
commit 916d56f8ba
No known key found for this signature in database
GPG Key ID: 44FD368932E645C1

View File

@ -5,7 +5,7 @@ set -e
echo "Update root login prevention method..."
if getent passwd "root" | grep -e '/usr/sbin/nologin'
then
chsh -s /bin/bash root
sed -i '/^root/s|/usr/sbin/nologin|/bin/bash|' /etc/passwd
passwd -l root
if grep '^PermitRootLogin' /etc/ssh/sshd_config
then