mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
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:
parent
96b2c19823
commit
916d56f8ba
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user