Thread: A couple XP Postgres Cygwin problems

A couple XP Postgres Cygwin problems

From
"Nachi Gupta"
Date:
I have read the README and past posts among other things...

I will very much appreciate any help here and I hope that this post will
help other people in a similar situation

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.  I made
the log in as postgres for this service (And I set postgres to login as
service, etc.)

2) After creating postgres, I could not su to postgres with the passwd nor
could I login to postgres.  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).  Now when I try
to login, I get the following error (using login not su since cygwin
recommends login not su)

login: postgres
Password:
Fanfare!!!
You are successfully logged in to this server!!!
login: no shell: /bin/bash: Permission denied

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

Thanks for all your help,

Nachi



Re: A couple XP Postgres Cygwin problems

From
Jason Tishler
Date:
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