public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Changing to another user in cygwin -- login?
@ 2002-12-13  2:20 Andre Truter
  2002-12-13  5:27 ` Jason Tishler
  0 siblings, 1 reply; 2+ messages in thread
From: Andre Truter @ 2002-12-13  2:20 UTC (permalink / raw)
  To: Cygwin

Hi,

I have postgres installed and running as a service under user postgres.

Now I want to run the createdb, etc scritps as user postgres to create a 
new database.

I have tried 'login postgres' from a bash shell, but this is the result:
$ login postgres
Password:
Login incorrect
login:

I know the password is correct, as I logged into windows with user 
postgres to init the postgres system.

I also followed all the instructions in the postgres readme.

Do I need to make any special changes to the NT user account or something?
(I do not know the Windows environment too well - use it by force, not 
choice)  :-)

-- 
Andre Truter
Software Engineer
Registered Linux user #185282
ICQ #40935899  AIM: trusoftzaf
http://www.trusoft.za.net

<------------------------------------------------->
< The box said: Requires Windows 95 or better...  >
< So I installed Linux                            >
<------------------------------------------------->



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Changing to another user in cygwin -- login?
  2002-12-13  2:20 Changing to another user in cygwin -- login? Andre Truter
@ 2002-12-13  5:27 ` Jason Tishler
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Tishler @ 2002-12-13  5:27 UTC (permalink / raw)
  To: cygwin

Andre,

On Fri, Dec 13, 2002 at 08:57:27AM +0200, Andre Truter wrote:
> Now I want to run the createdb, etc scritps as user postgres to create
> a new database.

What about using the "--username" option?

    $ id
    uid=19695(jt) gid=10513(Domain Users)...
    $ psql -l
    psql: FATAL:  user "jt" does not exist
    $ psql -l --username postgres
            List of databases
    ...

> I have tried 'login postgres' from a bash shell, but this is the result:
> $ login postgres
> Password:
> Login incorrect
> login:

Search the archives to understand why the above does not work.
 
> I also followed all the instructions in the postgres readme.
                  ^^^

Really?  What about the following:

    [2] The "$" prompt indicates running as the "postgres" user.  Log in
        as "postgres" or use ssh to emulate Unix's "su" command.
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-13 12:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-13  2:20 Changing to another user in cygwin -- login? Andre Truter
2002-12-13  5:27 ` Jason Tishler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).