Received: from www.wgcr.org (IDENT:root@www.wgcr.org [206.74.232.194]) by hub.org (8.9.3/8.9.3) with ESMTP id SAA49869 for ; Sat, 20 Nov 1999 18:38:55 -0500 (EST) (envelope-from lamar.owen@wgcr.org) Received: from lorc.wgcr.org (dial-59.r9.ncbrvr.Infoave.Net [206.74.37.187]) by www.wgcr.org (8.8.7/8.8.5) with SMTP id SAA25982; Sat, 20 Nov 1999 18:32:30 -0500 From: Lamar Owen Organization: Little to None To: Tom Lane Subject: Re: [INTERFACES] pg_pwd Date: Sat, 20 Nov 1999 18:29:44 -0500 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: "Sergio A. Kessler" , "pgsql-interfaces@postgreSQL.org" References: <28767.943138678@sss.pgh.pa.us> In-Reply-To: <28767.943138678@sss.pgh.pa.us> MIME-Version: 1.0 Message-Id: <99112018343902.00543@lorc.wgcr.org> Content-Transfer-Encoding: 8bit On Sat, 20 Nov 1999, Tom Lane wrote: > As I commented earlier in this thread, I think COPY ought not create > files with looser permissions than 644 (does anyone know why that's > not true already?). But that still wouldn't be good enough for pg_pwd. > Maybe it would be worthwhile to try to force pg_pwd in particular > to be written with just mode 600. In the standard configuration that > shouldn't make any difference ... Hmmm... Can a parameter be passed to COPY giving the file create mode? A one-time hack to make pg_pwd only do something special sounds inelegant. >but if people are going to use > hacked-up initdb code, as you evidently are doing, we probably should > not rely on the data directory to be locked up tightly... Just 'initdb --pglib=/usr/lib/pgsql --pgdata=/var/lib/pgsql' /var/lib/pgsql is created during the rpm installation of the server rpm -- and I can force that to create mode 0700. HOWEVER, that just fixes the symptom -- not the problem. -- Lamar Owen WGCR Internet Radio 1 Peter 4:11