Thread: User created under Win2K not found under CygWin

User created under Win2K not found under CygWin

From
Bernard NIZET
Date:
I'm new in OpenSource.

I try to use PostGreSQL under CygWin.


I followed Jason's instructions at
http://archives.postgresql.org/pgsql-cygwin/2001-08/msg00110.php

to install it like a Win2K Service.

But Cygwin does not recognise my postgres user created under Win2K.

I think the problem is may be the same for all users because all my
cygwin su <username> commands failed with a problem of invalid password
or user doesn't exist.

May be, do I have to reexecute a CygWin postinstall script to
re-generate /etc/passwd file ?

With mkpasswd -l, all my Win2K users have a unused-by-nt/2000/xp comment
                in place of a * for SYSTEM and Administrators.

Thanks for your help to a novice but motivate user.

Bernard






Re: User created under Win2K not found under CygWin

From
Jason Tishler
Date:
Bernard,

On Wed, Jun 25, 2003 at 10:18:55AM +0200, Bernard NIZET wrote:
> I followed Jason's instructions at
> http://archives.postgresql.org/pgsql-cygwin/2001-08/msg00110.php

Please use the current README:

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

> to install it like a Win2K Service.
>
> But Cygwin does not recognise my postgres user created under Win2K.

Did you do the following?

    # mkpasswd -l -u postgres >>/etc/passwd

> I think the problem is may be the same for all users because all my
> cygwin su <username> commands failed with a problem of invalid
> password or user doesn't exist.

No, su does *not* work under Cygwin.

> May be, do I have to reexecute a CygWin postinstall script to
> re-generate /etc/passwd file ?

No, the above mkpasswd command is sufficient.

> With mkpasswd -l, all my Win2K users have a unused-by-nt/2000/xp
> comment in place of a * for SYSTEM and Administrators.

The "unused-by-nt/2000/xp" comment is normal.

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