Just how do you create a customer without password?
In os X it's feasible to have users without passwords. If you evaluate them with
dscl their password turn up as
*. This is made use of for system users such as users for data sources like
pgsql and so on. What's wonderful concerning this is that these users does not turn up at the login screen and also you can not login as them without
sudo and so on
. After removing such a customer attempting some points out I intended to recreate it, yet could not. I can procure a customer with an empty password and also I can set the password to
*. Yet none had the very same result as above, as the customer turned up on my login screen.
Just how do you create such a customer?
A customer in/ etc/passwd with residence directory site of/ dev/null and also shell of/ sbin/nologin, can be made use of for sudo ing commands, yet can not in fact be logged right into, as an example ;
from my/ etc/passwd
tcpdump:x:104:441:added by portage for tcpdump:/dev/null:/sbin/nologin
I half remember this will certainly make it go away from the XDM login screen also, yet I do not make use of XDM any longer, to make sure that's a hunch : -)
I can not be particular concerning OSX, yet on FreeBSD you can make use of :
pw add user mymuser -g mygroup -s /nonexistent -h -
the value of
- passed to the
-h alternative informs
pw to set the password area in master.passwd to
*, hence developing a no - login account. Establishing the covering isn't purely essential, yet stays clear of a covering check from/ etc/pw. conf.
If you get on Ubuntu you can exchange in the password for the Ubuntu customer in/ etc/shadow check out this write-up :