I wish to programmatically produce a system user (and group) for a brand-new system service I’m dealing with. I have actually followed the tips to utilize
dscl apparently develops the user however
group commands report that the user does not exist.
/ etc/passwd and
/ etc/groups likewise do not reveal the recently produced user.
I’m essentially searching for the practical equivalent of:
useradd -r -s/ bin/false USERNAME
And I anticipate
group commands to work later.
Likewise, I see most system users noted in
/ etc/passwd have a highlight prefixed to their name (e.g.
_ dovecot). Unsure why that holds true or if it is very important however it’ll be frustrating if I need to utilize various user account names throughout platforms.