[GRASSLIST:8170] Re: db.login : ERROR: Cannot set user/password (cygwin)

Radim Blazek radim.blazek at gmail.com
Mon Sep 5 04:17:51 EDT 2005


On 9/2/05, Morten Sickel <Morten.Sickel at nrpa.no> wrote:
> Our new shiny windows logins are set with capitalized names, eg, my
> login could be MSickel, which is also reflected in various environment
> variables under cygwin. When I am trying to connect to my postgres
> server (on a hpux workstation) my username is only lowercase letters, so
> of cource the default name from grass is not recogniced, but if I try to
> set another login name, using db.login, I only get the error message
> cited in the header:
> 
> GRASS 6.0.0 (Arktis):~ > db.login user=pg
> ERROR: Cannot set user/password
>
> (the user pg is defined)
> 
> I am stuck with a quite old version of postgres due to some problems
> with the workstation, but using psql, I have no problems connecting to
> the server from the same client.
> 
> Any clues?
> 
> (Yes, I know I can define the user MSickel in pg, but I would prefer not
> to do that)

Maybe GRASS cannot write login to file

sprintf ( file, "%s/.grasslogin6", G_home() );

fd = fopen (file, "w");


Radim




More information about the grass-user mailing list