pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: Hugh Esco <hesco@greens.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problems invoking psql. Help please.
Date: 20 Nov 2002 12:49:27 +0000
Message-ID: <1037796567.29676.107.camel@linda> (raw)
In-Reply-To: <5.1.0.14.0.20021120001957.04247c40@petra.cagreens.org>
References: <5.1.0.14.0.20021116140623.031cbec0@petra.cagreens.org>
	<5.1.0.14.0.20021116140623.031cbec0@petra.cagreens.org>
	<5.1.0.14.0.20021118232418.03868810@petra.cagreens.org>
	<18156.1037685401@sss.pgh.pa.us>
	<5.1.0.14.0.20021119105355.0297a630@petra.cagreens.org>
	<5.1.0.14.0.20021120001957.04247c40@petra.cagreens.org>

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, and pray, and seek my face, and 
      turn from their wicked ways; then will I hear from 
      heaven, and will forgive their sin, and will heal 
      their land."               II Chronicles 7:14 




view thread (31+ messages)  latest in thread

Message-ID: <1037796567.29676.107.camel@linda>
Permalink:  ../1037796567.29676.107.camel@linda/
Also on:    postgresql.org/message-id/1037796567.29676.107.camel@linda

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: olly@lfix.co.uk, hesco@greens.org
  Subject: Re: Problems invoking psql. Help please.
  In-Reply-To: <1037796567.29676.107.camel@linda>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox