Re: Help

From: Jason Tishler <Jason(dot)Tishler(at)dothill(dot)com>
To: Ilan Fait <ilan(at)iweb(dot)com>
Cc: Pgsql-Cygwin <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: Help
Date: 2001-06-13 12:30:56
Message-ID: 20010613083056.B660@dothill.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Ilan,

In the future, please post to pgsql-cygwin(at)postgresql(dot)org instead of
sending private email so others can benefit too.

On Wed, Jun 13, 2001 at 10:19:37AM +0300, Ilan Fait wrote:
> $ createdb iweb
> psql: FATAL: PQsetdbLogin(): Unable to determine a Postgres username!
> createdb: database creation failed
>
> So I try to create a user I get:
>
> $ createuser iweb
> Shall the new user be allowed to create databases? (y/n) y
> Shall the new user be allowed to create more new users? (y/n) y
> psql: FATAL: PQsetdbLogin(): Unable to determine a Postgres username!
> createuser: creation of user "iweb" failed

The above indicates that your Cygwin setup is not correct. Did you
create a /etc/passwd or /etc/group file via mkpasswd -l >/etc/passwd and
mkgroup -l >/etc/group, respectively? What happens when you execute id
or pg_id?

A temporary workaround to your Cygwin setup problem is to use the
PGUSER environment variable or the -U option to createdb (and other
PostgreSQL commands). However, you really need to rectify your Cygwin
setup problem(s).

>  If I try to logon I get:
>
>  $ su administrator
> Password:
> LogonUser error! (rc=1722)
> The RPC server is unavailable

Cygwin support for su is very recent and requires some effort to setup;
otherwise, su will *not* work as under UNIX. Nevertheless, proper su
operation is not necessary to get PostgreSQL to run under Cygwin.

Jason

--
Jason Tishler
Director, Software Engineering Phone: 732.264.8770 x235
Dot Hill Systems Corp. Fax: 732.264.8798
82 Bethany Road, Suite 7 Email: Jason(dot)Tishler(at)dothill(dot)com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com

Browse pgsql-cygwin by date

  From Date Subject
Next Message Ilan Fait 2001-06-13 14:29:49 RE: Help
Previous Message Jason Tishler 2001-06-12 21:35:06 Re: Help