There are users such as _mysql, _www. They seem to be aliased to
mysql and www. They do not show up in the list of users you can "fast
switch" between. They also do not show up in the list of accounts
shows by System Preferences => Accounts.
I'm trying to create a postgres user. I've managed to do it with the
script attached. But, I am not clear what the magic is that
determines if it will be shown in these two places. I've managed, at
one point, to create a user that did not show up in Accounts but did
show up in the list of users you can fast switch between.
Does anyone know for sure what is used to determine the list of users
displayed in Accounts and the list of users displayed in the fast user
switching menu?
Thank you,
pedz
#!/bin/bash
# We loop to find a numeric value which is not a users uniqueid or a
groups
# primary group id starting at 501
typeset -i uid=501
while [[ "$( dscl . search Users UniqueID $uid &&
dscl . search Groups PrimaryGroupID $uid )" ]] ; do
let ++uid
done
if [[ ! -d /Users/postgres ]] ; then
mkdir /Users/postgres
fi
chown -R postgres:postgres /Users/postgres
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden