Re: [HACKERS] mode of libs

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: scrappy(at)hub(dot)org (The Hermit Hacker)
Cc: vadim(at)sable(dot)krasnoyarsk(dot)su, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] mode of libs
Date: 1998-02-26 22:01:38
Message-ID: 199802262201.RAA18317@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> On Wed, 25 Feb 1998, Bruce Momjian wrote:
>
> > Now there is a bigger problem. pg_pwd is mode rw-rw-rw- because a COPY
> > is used to create it. Any ideas how to fix this? Copy sets the
> > permissions to this before it creates the file. It temporarily changes
> > the umask to create the file. If pg_pwd ever has data in it and it is
> > world-readable, it is unsecure.
> >
> > Anyone have a brilliant idea on a fix?
>
> Why, again, is COPY creating files 666? 600, IMHO, sounds more
> appropriate, but I imagine there has to be a reason why it is 666...

Because the owner is postgres, not the user running the psql copy
command.

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim B. Mikheev 1998-02-27 03:05:12 Re: [HACKERS] MergeJoin and Mark/Restr scan positions (Re: [PORTS] Port Bug Report)
Previous Message Tom I Helbekkmo 1998-02-26 21:58:36 Re: [HACKERS] Solution to the pg_user passwd problem !?? (c)