Re: Problems invoking psql. Help please. - Mailing list pgsql-sql

From Oliver Elphick
Subject Re: Problems invoking psql. Help please.
Date
Msg-id 1037796567.29676.107.camel@linda
Whole thread Raw
In response to Re: Problems invoking psql. Help please.  (Hugh Esco <hesco@greens.org>)
Responses Re: Problems invoking psql. Help please.  (Hugh Esco <hesco@greens.org>)
List pgsql-sql
On Wed, 2002-11-20 at 06:30, Hugh Esco wrote:
> I did this tonight
> 
> dpkg --purge postgresql
> apt-get install postgresql
> 
> and am now still getting the following:
> 
> >biko:/usr/bin# psql -U postgres
> >No database specified
> >biko:/usr/bin# psql -U postgres template1
> >Could not execv /usr/lib/postgresql/bin/psql

There is something wrong with permissions here.

You ought to be able, as _any_ user, to run /usr/lib/postgresql/bin/psql
Can you?  It seems clear that pg_wrapper can't.

If not, why not?

I assume the file must exist, since you have just reinstalled the
package.  Is the file itself executable by all users?  (Use "ls -l" to
check this.)

Has someone made an intermediate directory unsearchable?  Every
directory in its path should have search (i.e. execute) permission for
all users.  Check /usr, /usr/lib, /usr/lib/postgresql, and so on.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                            
http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
========================================   "If my people, which are called by my name, shall      humble themselves,
andpray, and seek my face, and      turn from their wicked ways; then will I hear from      heaven, and will forgive
theirsin, and will heal      their land."               II Chronicles 7:14 
 



pgsql-sql by date:

Previous
From: Thrasher
Date:
Subject: Re: Date trunc in UTC
Next
From: Richard Huxton
Date:
Subject: Re: Date trunc in UTC