Thread: trouble with the postmaster

trouble with the postmaster

From
Benjamin Cochran
Date:
I'm having trouble starting the postmaster on ports other then the
default port with the -i option. It starts fine and everything runs well
if I type:
    postmaster -i
And if I type:
    postmaster -p 1234
it also works
but if I try:
    postmaster -i -p 42

I get the error:
FATAL: StreamServerPort: bind() failed: Permission denied
        Is another postmaster already running on that port?
    If not wait a few seconds and retry.
/usr/local/pgsql/bin/postmaster: cannot create INET stream port

Can anyone give me any insight into my problem?

Thanks,
Ben

Re: trouble with the postmaster

From
Cory Kempf
Date:
Benjamin Cochran <bdc33@imap3.asu.edu> writes:

> I'm having trouble starting the postmaster on ports other then the
> default port with the -i option. It starts fine and everything runs well
> And if I type:
>     postmaster -p 1234
> but if I try:
>     postmaster -i -p 42

Only root can assign sockets below 1k.  Postmaster doesn't
run as root.

+C

--
Have you signed up to be a bone marrow doner?  All it takes is a simple
blood test, and it can save a life.  <http://www.marrow.org>

Cory Kempf           Macintosh / Unix Consulting & Software Development
ckempf@enigami.com   <http://www.enigami.com/~ckempf/>