Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CE7C2475AE6 for ; Mon, 23 Dec 2002 14:46:02 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 3DF654758F1 for ; Mon, 23 Dec 2002 14:46:02 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id gBNJjxd0007298; Mon, 23 Dec 2002 14:45:59 -0500 (EST) To: Radoslaw Stachowiak Cc: postgresql Subject: Re: SSL Mode In-reply-to: <20021223185911.GE3728@blue.alter.pl> References: <20021223133733.P72978-100000@m20.unixathome.org> <200212231842.gBNIgRo02712@candle.pha.pa.us> <20021223185911.GE3728@blue.alter.pl> Comments: In-reply-to Radoslaw Stachowiak message dated "Mon, 23 Dec 2002 19:59:11 +0100" Date: Mon, 23 Dec 2002 14:45:59 -0500 Message-ID: <7297.1040672759@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/282 X-Sequence-Number: 6777 Radoslaw Stachowiak writes: > and one more suggestion, as this feature is a little bit to strong IMHO. > Common practice for such files (private keys) is to make them owned by > root user and postgres group with 640 mode. I don't think that's either common practice or a good idea. For one thing, it presumes that there *is* a postgres group; which is not a requirement we ever had before. For another, root can read or write the file if she chooses regardless of ownership or permissions, so it's not like doing it that way gains anything. As a counterexample, on a setup like mine (HP-UX), all normal users are members of group "users" and so group readability is not much safer than world readability. If Postgres neglected to complain about mode 640 then there'd be little point in having a file-security check at all, on this system. IMHO the existing check is just fine, although the complaint message could be a lot more specific (it looks to me like three distinctly different sanity checks are being folded into one error message :-(). regards, tom lane