Received: from www.wgcr.org (IDENT:root@[206.74.232.194]) by hub.org (8.9.3/8.9.3) with ESMTP id RAA45100 for ; Sat, 20 Nov 1999 17:50:51 -0500 (EST) (envelope-from lamar.owen@wgcr.org) Received: from lorc.wgcr.org (dial-53.r9.ncbrvr.Infoave.Net [206.74.37.181]) by www.wgcr.org (8.8.7/8.8.5) with SMTP id RAA25932; Sat, 20 Nov 1999 17:47:52 -0500 From: Lamar Owen Organization: Little to None To: Tom Lane , "Sergio A. Kessler" Subject: Re: [INTERFACES] pg_pwd Date: Sat, 20 Nov 1999 17:41:34 -0500 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: "pgsql-interfaces@postgreSQL.org" References: <3766.943051402@sss.pgh.pa.us> In-Reply-To: <3766.943051402@sss.pgh.pa.us> MIME-Version: 1.0 Message-Id: <99112017500100.00543@lorc.wgcr.org> Content-Transfer-Encoding: 8bit On Fri, 19 Nov 1999, Tom Lane wrote: > > in rh6.1 /var/lib/pgsql is 755 (and no, I haven't changed anything) > > can you spell "2_KM_DIAMETER_HOLE" ? > > In a standard setup, pg_pwd is inside .../pgsql/data which is mode 700. > Have the RH guys really blown it this badly? (Lamar?) PGDATA is in fact 755 in the RPM installation. pg_pwd is the only file 666 under this directory. Since pg_pwd is not very well documented, it is kind of hard to figure out the permissions -- however, it is simple enough to issue a security advisory for people to chmod 0700 /var/lib/pgsql. The change to mode 0700 for PGDATA (which is moving in the future) will be made in future RPM's. Again, no other file under /var/lib/pgsql under RH6.1 has group or world permissions EXCEPT pg_pwd. And yes, this IS a glaring security hole, IF the user postgres has a postgres password. Just WHY is pg_pwd mode 666 in the first place?? -- Lamar Owen WGCR Internet Radio 1 Peter 4:11