Support remote users and groups for group check. Fixes #104

Grepping /etc/group discards users and grous coming from NIS, LDAP, AD.
Use getent group which covers all.

Signed-off-by: Andreas Stieger <astieger@suse.com>
This commit is contained in:
Andreas Stieger 2015-12-01 16:17:48 +01:00
parent 93439abcd3
commit e285c472d6

View file

@ -52,7 +52,7 @@ fi
# 1.7
check_1_7="1.7 - Only allow trusted users to control Docker daemon"
docker_users=$(grep docker /etc/group)
docker_users=$(getent group docker)
info "$check_1_7"
for u in $docker_users; do
info " * $u"