From c2460134b01ac38073cc5ba602d57a2e9ef9746f Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 29 Dec 2022 17:17:23 +0000 Subject: [PATCH] Check unused groups in sysusers script too --- sysusers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysusers b/sysusers index d039ffc..befb7d7 100755 --- a/sysusers +++ b/sysusers @@ -2,6 +2,6 @@ # Compare /etc/passwd and /usr/lib/sysusers.d to find unneeded users -for i in (cat /etc/passwd | cut -d: -f1) +for i in (cat /etc/passwd /etc/group | cut -d: -f1) echo -n "$i "; grep -or $i /usr/lib/sysusers.d | wc -l end