pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hugh Esco <hesco@greens.org>
To: pgsql-sql@postgresql.org
Subject: Re: Problems invoking psql. Help please.
Date: Wed, 20 Nov 2002 08:12:33 -0500
Message-ID: <5.1.0.14.0.20021120081056.042676b0@petra.cagreens.org> (raw)
In-Reply-To: <29178.1037776397@sss.pgh.pa.us>
References: <5.1.0.14.0.20021120015333.04220570@petra.cagreens.org>
	<5.1.0.14.0.20021120015333.04220570@petra.cagreens.org>

Mr. Lane:

pg_wrapper permits Others to Execute it.

>biko:/usr/bin$ ls -al | grep pg_wrapper
>lrwxrwxrwx    1 root     root           10 Oct 10 16:24 createdb -> pg_wrapper
>lrwxrwxrwx    1 root     root           10 Oct 10 16:24 createuser -> 
>pg_wrapper
>lrwxrwxrwx    1 root     root           10 Oct 10 16:24 dropdb -> pg_wrapper
>lrwxrwxrwx    1 root     root           10 Oct 10 16:24 dropuser -> pg_wrapper
>lrwxrwxrwx    1 root     root           10 Nov 19 20:04 pg_config -> 
>pg_wrapper
>lrwxrwxrwx    1 root     root           10 Oct 10 16:24 pg_dump -> pg_wrapper
>lrwxrwxrwx    1 root     root           10 Nov 19 20:04 pg_restore -> 
>pg_wrapper
>-rwxr-xr-x    1 root     root         6584 Sep 11 04:30 pg_wrapper
>lrwxrwxrwx    1 root     root           10 Oct 10 16:24 psql -> pg_wrapper
>biko:/usr/bin$


At 02:13 AM 11/20/02 -0500, Tom Lane wrote:
>Hugh Esco <hesco@greens.org> writes:
> >> biko:/usr/bin# ls -al | grep psql
> >> lrwxrwxrwx    1 root     root           10 Oct 10 16:24 psql -> pg_wrapper
>
> > This seems to say that Other users, like postgres, should be able to
> > execute it.  I'm confused, here.
>
>The permissions attached to a symbolic link are meaningless, in all Unix
>variants I've dealt with.  You need to look at the permissions of the
>linked-to object (here, pg_wrapper) instead...
>
>                         regards, tom lane





view thread (31+ messages)  latest in thread

Message-ID: <5.1.0.14.0.20021120081056.042676b0@petra.cagreens.org>
Permalink:  ../5.1.0.14.0.20021120081056.042676b0@petra.cagreens.org/
Also on:    postgresql.org/message-id/5.1.0.14.0.20021120081056.042676b0@petra.cagreens.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: hesco@greens.org
  Subject: Re: Problems invoking psql. Help please.
  In-Reply-To: <5.1.0.14.0.20021120081056.042676b0@petra.cagreens.org>
  References: <5.1.0.14.0.20021120015333.04220570@petra.cagreens.org> <5.1.0.14.0.20021120081056.042676b0@petra.cagreens.org>

* 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