Created
March 13, 2012 03:10
-
-
Save shigeya/2026339 to your computer and use it in GitHub Desktop.
Creating postgres user on Snow Leopard,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Creating postgres user on Snow Leopard, same as Lion does. | |
| # hint gotten: http://zanshin.net/2009/09/07/installing-postgresql-on-mac-10-6-snow-leopard/ | |
| /usr/sbin/dseditgroup -o create -i 216 -r "PostgreSQL Users" postgres | |
| dscl . -create /Users/postgres | |
| dscl . -create /Users/postgres UniqueID 216 | |
| dscl . -create /Users/postgres UserShell /bin/bash | |
| dscl . -create /Users/postgres RealName "Postgres Administrator" | |
| dscl . -create /Users/postgres NFSHomeDirectory /opt/local/share/postgresql84 | |
| dscl . -create /Users/postgres PrimaryGroupID 216 | |
| dscl . -create /Users/postgres Password Password | |
| # Replace Password appropriately! | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment