From e285c472d655e0dd43fc86c67aaafc6b779a47c3 Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Tue, 1 Dec 2015 16:17:48 +0100 Subject: [PATCH] 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 --- tests/1_host_configuration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/1_host_configuration.sh b/tests/1_host_configuration.sh index 157c9a8..09b87d1 100644 --- a/tests/1_host_configuration.sh +++ b/tests/1_host_configuration.sh @@ -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"