IS_SSHALLOWUSERS is looking for AllowUsers or AllowGroups

This commit is contained in:
Jérémy Lecour 2018-03-29 22:30:31 +02:00
parent c1866836aa
commit 80a07783c8

View file

@ -264,7 +264,7 @@ if [ -e /etc/debian_version ]; then
fi
if [ "$IS_SSHALLOWUSERS" = 1 ]; then
egrep -qi "AllowUsers" /etc/ssh/sshd_config || echo 'IS_SSHALLOWUSERS FAILED!'
egrep -qi "(AllowUsers|AllowGroups)" /etc/ssh/sshd_config || echo 'IS_SSHALLOWUSERS FAILED!'
fi
if [ "$IS_DISKPERF" = 1 ]; then