blob: 81eb9b820ab1f1431b22da85bb87a1c03d3d170f (
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
|