7 lines
188 B
Fish
Executable file
7 lines
188 B
Fish
Executable file
#!/usr/bin/fish
|
|
|
|
# Compare /usr/lib/sysusers.d and getent passwd to find unneeded users
|
|
|
|
for i in (getent passwd | cut -d: -f1)
|
|
echo -n "$i "; grep -or $i /usr/lib/sysusers.d | wc -l
|
|
end
|