Re: A couple XP Postgres Cygwin problems - Mailing list pgsql-cygwin

From Jason Tishler
Subject Re: A couple XP Postgres Cygwin problems
Date
Msg-id 20030428132050.GC1864@tishler.net
Whole thread Raw
In response to A couple XP Postgres Cygwin problems  ("Nachi Gupta" <ngupta2@seas.upenn.edu>)
List pgsql-cygwin
Nachi,

On Mon, Apr 21, 2003 at 10:13:04PM -0400, Nachi Gupta wrote:
> I have read the README and past posts among other things...

Did you read the following README?

    http://www.tishler.net/jason/software/postgresql/postgresql-7.3.2.README

> 1) when i try to start the cygwin ipc daemon, I get error 1058: the
> service did not respond to the start or control request in a timely
> fashion.

Note the following:

    $ fgrep 1058L /usr/include/w32api/winerror.h
    #define ERROR_SERVICE_DISABLED 1058L

> I made the log in as postgres for this service (And I set postgres to
> login as service, etc.)

The above is not necessary for ipc-daemon.

> 2) After creating postgres, I could not su to postgres with the passwd
> nor could I login to postgres.

Neither su (even when patched) or login will function correctly unless
they are run from a very privileged account (i.e., LocalSystem).

> First I had to create a home directory for postgres and copy my own
> .bash_profile there.  (This may helpo others with similar problem
> since this is not mentioned in README file).

The home directory is only necessary if one is using ssh to simulate su.
If switching users (to postgres) is causing you problems, then just log
in as postgres using the normal Windows log in procedure.

Note that creating .bash_profile is completely unnecessary.

> Now when I try to login, I get the following error (using login not su
> since cygwin recommends login not su)

The Cygwin list does *not* recommend login.

> [snip]
>
> This may be more of a cygwin question, but I'm sure that everyone
> trying to get through this installation had similar problems.

AFAICT, the above is an erroneous assumption.

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6


pgsql-cygwin by date:

Previous
From: Jason Tishler
Date:
Subject: Re: installation problems
Next
From: pgsql@mohawksoft.com
Date:
Subject: Re: installation problems