autorize no PermitRoot option for Stretch because default is secure
This commit is contained in:
parent
03db1f93ba
commit
fee216b218
|
@ -588,7 +588,8 @@ if [ "$IS_USRSHARESCRIPTS" = 1 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$IS_SSHPERMITROOTNO" = 1 ]; then
|
if [ "$IS_SSHPERMITROOTNO" = 1 ]; then
|
||||||
egrep -qi "PermitRoot.*no" /etc/ssh/sshd_config || echo 'IS_SSHPERMITROOTNO FAILED!'
|
is_debianversion stretch || ( egrep -qi "PermitRoot.*no" /etc/ssh/sshd_config || echo 'IS_SSHPERMITROOTNO FAILED!' )
|
||||||
|
is_debianversion stretch && grep ^PermitRoot /etc/ssh/sshd_config && ( egrep -qi "PermitRoot.*no" /etc/ssh/sshd_config || echo 'IS_SSHPERMITROOTNO FAILED!' )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$IS_EVOMAINTENANCEUSERS" = 1 ]; then
|
if [ "$IS_EVOMAINTENANCEUSERS" = 1 ]; then
|
||||||
|
|
Loading…
Reference in a new issue