Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] mode of libs

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Vadim B(dot) Mikheev" <vadim(at)sable(dot)krasnoyarsk(dot)su>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] mode of libs
Date: 1998-02-26 04:05:01
Message-ID: 34F4E9ED.4BAC21B1@alumni.caltech.edu (view raw or flat)
Thread:
Lists: pgsql-hackers
> 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?

Well, the data directory itself is protected from anyone other than the postgres
account, so it may not matter as much if an individual file is not right. My (former)
Ingres installation had the directory protected, and then permissions of 777 on all the
directories and files within it as I recall...

We should fix it up to match the protections on other files though...

                                                      - Tom


In response to

Responses

pgsql-hackers by date

Next:From: Brett McCormickDate: 1998-02-26 04:07:38
Subject: transaction not valid ColID
Previous:From: Bruce MomjianDate: 1998-02-26 03:43:48
Subject: Re: [PORTS] alpha/64bit & mkoidname problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group