Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id CE31F1337B4F for ; Mon, 29 Nov 2010 10:59:49 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 06861-10 for ; Mon, 29 Nov 2010 14:59:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 903741335B36 for ; Mon, 29 Nov 2010 10:59:42 -0400 (AST) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 29 Nov 2010 08:59:42 -0600 Message-Id: <4CF36B760200002500037EF8@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Mon, 29 Nov 2010 08:59:34 -0600 From: "Kevin Grittner" To: , "Silvio Brandani" Subject: Re: data mount point lost permissions References: <4CF3B4ED.1000208@tech.sdb.it> In-Reply-To: <4CF3B4ED.1000208@tech.sdb.it> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/236 X-Sequence-Number: 36202 Silvio Brandani wrote: > During a server restart the mount point /var/lib/pgsql/data lost > the 0700 permission and the automatic restart of postgres failed. > > How can I set the permission of this mount point to be not lost > during restart of server ?? Have I to set specific option in > fstab?? Perhaps the mount failed, or did not occur before PostgreSQL tried to start? If so, the permission flags may be saving you from writing to entirely the wrong place? Does your service script for PostgreSQL (probably in /etc/init.d/) contain something like this in the BEGIN INIT INFO block?: # Required-Start: $local_fs $network $syslog # Should-Start: nthd Those settings have kept us out of trouble.... -Kevin