2022-06-18 16:43:37 +00:00
|
|
|
#!/usr/bin/fish
|
|
|
|
|
2022-06-26 00:13:57 +00:00
|
|
|
# Compare /usr/lib/sysusers.d and getent passwd to find unneeded users
|
|
|
|
|
2022-06-18 16:43:37 +00:00
|
|
|
for i in (getent passwd | cut -d: -f1)
|
|
|
|
echo -n "$i "; grep -or $i /usr/lib/sysusers.d | wc -l
|
|
|
|
end
|