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