Closest I can come is:
useradd --home / -r --shell /sbin/nologin someuser
But this creates an entry into /etc/htpasswd that looks something like this:
someuser:x:100:100::/:/sbin/nologin
I want that '/' gone, so that it looks like this:
someuser:x:100:100:::/sbin/nologin
Which is achievable through usermod:
usermod -d '' someuser
But I think this is a bit backwards.
Any ideas?