Setting user password to invalid one?
I'd like to create a "system" user using command line and set its password to such that cannot be typed in.
I found multiple pointers about using "dscl" and manage to create a hidden user, but I'd like to make it impossible to login to the user no matter what.
I already set it as a "Hidden" user, but this only hides him from the login screen, not from ssh, is it?
The motivation is that this is a "System" account (specifically, I intend it solely to own the Homebrew command) which should never, ever be logged in to.
In Linux(/Unix) there is the option to simply set the password in the /etc/shadow file to something that's not a possible output of the password hash (e.g. the literal "*" or "!"), therefore making it impossible to type any string which will let the user in.
Is this possible through command line on OS X (El Capitan)?
OS X El Capitan (10.11)