dbTalk Databases Forums  

OS X Install

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss OS X Install in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
John DeSoi
 
Posts: n/a

Default Re: OS X Install - 10-18-2004 , 06:58 AM







On Oct 18, 2004, at 1:09 AM, Joel wrote:

Quote:
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.)

Because some Mac users prefer to use the Finder to manipulate files
rather than the Terminal .

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
  #12  
Old   
David Teran
 
Posts: n/a

Default Re: OS X Install - 10-21-2004 , 03:43 AM






Quote:
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
(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...

regards David


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly



Reply With Quote
  #13  
Old   
John DeSoi
 
Posts: n/a

Default Re: OS X Install - 10-21-2004 , 08:20 AM




On Oct 21, 2004, at 4:43 AM, David Teran wrote:

Quote:
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 .

Best,

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly



Reply With Quote
  #14  
Old   
Dan Sugalski
 
Posts: n/a

Default Re: OS X Install - 10-21-2004 , 09:14 AM



At 9:20 AM -0400 10/21/04, John DeSoi wrote:
Quote:
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 .
Fink creates a postgres user, amongst others, as part of the base
install. (Well, it's one of the strongly suggested packages, but
close enough since pretty much everyone puts it in)
--
Dan

--------------------------------------it's like this-------------------
Dan Sugalski even samurai
dan (AT) sidhe (DOT) org have teddy bears and even
teddy bears get drunk

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
  #15  
Old   
Joel
 
Posts: n/a

Default Re: OS X Install - 10-21-2004 , 09:20 PM




Quote:
... I see a mysql user
also. I know I did not create or install that .
...
That has in there by default since sometime before Jaguar. It's not used
unless you install mysql, but mysql became part of the default install
in the server versions somewhere after 10.0 beta, which might have
something to do with it.

--
Joel <rees (AT) ddcom (DOT) co.jp>


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org



Reply With Quote
  #16  
Old   
Jim Crate
 
Posts: n/a

Default Re: OS X Install - 11-04-2004 , 09:11 AM



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.) upso
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.

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
  #17  
Old   
Joel
 
Posts: n/a

Default Re: OS X Install - 11-05-2004 , 04:20 AM



(A little back-seat driving from me below

On Thu, 4 Nov 2004 10:11:18 -0500
Jim Crate <jcrate (AT) deepskytech (DOT) com> favored us with

Quote:
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
This gives you a shell under the pgsql user, which can be convenient,
but anything you do after getting the shell is not logged. Logging is
convenient in a different way.

Also, if you tighten up the configuration a bit, su will refuse to log a
user with no default shell or home directory.

I prefer to sudo each command, for the logging:

sudo -u pgsql <command>

If you don't like all that extra typing, command line editing is on by
default in the Mac OS X shell window, so you can just hit the up arrow,
erase the previous command, and type the next one.

Quote:
and then all you need to know is your own password.

You can use niutil to create and delete users and groups.
And you can even use the netinfo GUI utility. (heh. I sudo each command,
but I use the GUI netinfo to save typing. I'm strange, I guess.)

Quote:
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.
--
Joel <rees (AT) ddcom (DOT) co.jp>


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.