Check unused groups in sysusers script too

This commit is contained in:
Anthony Wang 2022-12-29 17:17:23 +00:00
parent ecf9c4d160
commit c2460134b0
Signed by: a
GPG Key ID: 42A5B952E6DD8D38

View File

@ -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