Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8C06D475ADD for ; Wed, 20 Nov 2002 07:49:26 -0500 (EST) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by postgresql.org (Postfix) with ESMTP id EEA884758FE for ; Wed, 20 Nov 2002 07:49:25 -0500 (EST) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 18EUIK-00071Y-0U; Wed, 20 Nov 2002 12:49:28 +0000 Received: from localhost ([127.0.0.1] helo=localhost.localdomain ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.36 #1 (Debian)) id 18EUIJ-0006CZ-00; Wed, 20 Nov 2002 12:49:27 +0000 Subject: Re: Problems invoking psql. Help please. From: Oliver Elphick To: Hugh Esco Cc: pgsql-sql@postgresql.org 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> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 20 Nov 2002 12:49:27 +0000 Message-Id: <1037796567.29676.107.camel@linda> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/305 X-Sequence-Number: 10447 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