![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
There is no need to give either the postgres user or root a password, much less a shell or a login directory, if you use sudo. (And I have no idea why Apple would suggest using the system preferences user pane to add the postgres user unless they are intentionally dumbing it down. It works, but then you have OS login enabled for the "postgres" user.) |
.
#12
| |||
| |||
|
|
I think the user is there in 10.3 by default. Apple is using PostgreSQL in one of their products. In order to use postgres (and to have postgres show up as a normal user available in the login menu) I deleted the user in NetInfo Manager. You also have to delete the postgres group. After doing this, I was able to create a postgres user in the accounts view of System Preferences. One thing is for sure: MacOS X, neither panther (10.3) nor jaguar |
#13
| |||
| |||
|
|
One thing is for sure: MacOS X, neither panther (10.3) nor jaguar (10.2) have a user named 'postgres' as default. And Apple Remote Desktop 2.x which uses internally a postgres 7.3.2 database to store statistic data does not use the postgres user afaik, it uses root... |
.
#14
| |||
| |||
|
|
On Oct 21, 2004, at 4:43 AM, David Teran wrote: One thing is for sure: MacOS X, neither panther (10.3) nor jaguar (10.2) have a user named 'postgres' as default. And Apple Remote Desktop 2.x which uses internally a postgres 7.3.2 database to store statistic data does not use the postgres user afaik, it uses root... I'll take your word for it. I just can't recall creating one, yet it was there. Maybe from something I did with fink. I see a mysql user also. I know I did not create or install that . |
#15
| |||
| |||
|
|
... I see a mysql user also. I know I did not create or install that .... |
#16
| |||
| |||
|
#17
| |||
| |||
|
|
I'm a little late to the party, but figured I could at least offer some info for the archives. If you don't know the user's password, and you have admin access, then it really doesn't matter. In fact, I set any special users (pgsql, mailman, etc.) up so that they *cannot* be logged into normally. Instead, do this: sudo su - pgsql |
|
and then all you need to know is your own password. You can use niutil to create and delete users and groups. |
|
Reading the man page and exploring a bit using the -list and -read options will be very informative. Here is a script I use to create a user. Execute it with sudo. niutil -create . /groups/pgsql niutil -createprop . /groups/pgsql gid 5001 niutil -create . /users/pgsql niutil -createprop . /users/pgsql uid 5001 niutil -createprop . /users/pgsql gid 5001 niutil -createprop . /users/pgsql passwd \* niutil -createprop . /users/pgsql home /Users/pgsql niutil -createprop . /users/pgsql shell /bin/tcsh gid and uid can be set to some non-conflicting number of your choice. I believe that numbers over 5000 do not show up in System Preferences or the login window. -- Jim Crate Deep Sky Technologies, Inc. |
![]() |
| Thread Tools | |
| Display Modes | |
| |