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