We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8da59ef + 916d56f commit e883baaCopy full SHA for e883baa
updates/1.54.0.sh
@@ -5,7 +5,7 @@ set -e
5
echo "Update root login prevention method..."
6
if getent passwd "root" | grep -e '/usr/sbin/nologin'
7
then
8
- chsh -s /bin/bash root
+ sed -i '/^root/s|/usr/sbin/nologin|/bin/bash|' /etc/passwd
9
passwd -l root
10
if grep '^PermitRootLogin' /etc/ssh/sshd_config
11
0 commit comments