Re: [HACKERS] mode of libs

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: vadim(at)sable(dot)krasnoyarsk(dot)su (Vadim B(dot) Mikheev)
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] mode of libs
Date: 1998-02-26 03:17:57
Message-ID: 199802260317.WAA10196@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> Bruce Momjian wrote:
> >
> > >
> > > Is this Ok ?
> > >
> > > /home/postgres/lib > ls -l
> > > total 711
> > > -r--r--r-- 1 postgres users 605 26 07:57 global1.bki.source
> > > -r--r--r-- 1 postgres users 0 26 07:57 global1.description
> > > -r--r--r-- 1 postgres users 8994 26 07:57 libecpg.a
> > > lrwxrwxrwx 1 postgres users 14 26 07:57 libecpg.so -> libecpg.so.1.0
> > > ^ ^
> >
> > Good eye. Fixed. Was in configure.in as 664 not 644. No reason to
> > give group write permission, right?
>
> Yes. And "others" too...

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?

--
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Brett McCormick 1998-02-26 03:34:12 alpha/64bit & mkoidname problem
Previous Message Thomas G. Lockhart 1998-02-26 03:12:40 Re: [HACKERS] Re: [QUESTIONS] Installation Postgresql95 on linux slackware