Skip to content

Commit e883baa

Browse files
committed
Merge branch 'fix/1.54.0-pam-error'
2 parents 8da59ef + 916d56f commit e883baa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

updates/1.54.0.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
echo "Update root login prevention method..."
66
if getent passwd "root" | grep -e '/usr/sbin/nologin'
77
then
8-
chsh -s /bin/bash root
8+
sed -i '/^root/s|/usr/sbin/nologin|/bin/bash|' /etc/passwd
99
passwd -l root
1010
if grep '^PermitRootLogin' /etc/ssh/sshd_config
1111
then

0 commit comments

Comments
 (0)