blob: eef7b110634be42eb3b349beee30fb9aafab61bd (
plain)
1
2
3
4
|
function sysusers
diff (awk -F: '$3 < 1000 {print $1}' /etc/passwd | sort | psub) (systemd-sysusers --tldr | awk '$1 == "u" {print $2}' | grep -v nobody | sort | psub)
diff (awk -F: '$3 < 1000 {print $1}' /etc/group | sort | psub) (systemd-sysusers --tldr | awk '$1 == "u" || $1 == "g" {print $2}' | grep -v nobody | sort | uniq | psub)
end
|