diff --git a/sysusers b/sysusers index 75864a2..d039ffc 100755 --- a/sysusers +++ b/sysusers @@ -1,7 +1,7 @@ #!/usr/bin/fish -# Compare /usr/lib/sysusers.d and getent passwd to find unneeded users +# Compare /etc/passwd and /usr/lib/sysusers.d to find unneeded users -for i in (getent passwd | cut -d: -f1) +for i in (cat /etc/passwd | cut -d: -f1) echo -n "$i "; grep -or $i /usr/lib/sysusers.d | wc -l end