Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UYIWt-0000YS-2b for pgsql-admin@arkaria.postgresql.org; Fri, 03 May 2013 16:08:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UYIWs-0003GM-HV for pgsql-admin@arkaria.postgresql.org; Fri, 03 May 2013 16:08:14 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UYIWr-0003FJ-7y for pgsql-admin@postgresql.org; Fri, 03 May 2013 16:08:13 +0000 Received: from mail2.reptiles.org ([198.96.210.226]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UYIWo-000613-JI for pgsql-admin@postgresql.org; Fri, 03 May 2013 16:08:12 +0000 Received: from localhost by mailbox.reptiles.org via sendmail with STDIO (2631 bytes) (sender: ) (ident using UNIX) id for ; Fri, 3 May 2013 12:08:08 -0400 (EDT) (Smail-3.2.0.121 2005-Nov-17 #10 built 2010-Jul-16) Date: Fri, 3 May 2013 12:08:08 -0400 From: Jim Mercer To: Nghia Truong Cc: Johnny Tan , Ray Stell , pgsql-admin@postgresql.org Subject: Re: Problem: pg_hba.conf is automatically rewritten every day Message-ID: <20130503160808.GA37995@reptiles.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -4.5 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Fri, May 03, 2013 at 10:59:09PM +0700, Nghia Truong wrote: > Hi all, > I am the root user (except that my dedicated server is under the control of > its company). I don't have any sysadmin script. The problem just suddenly > occurs. I don't know why? as best i know, with the standard postgresql installations, there is no component that modifies the pg_hba.conf file. from the systems perspective, it is a static config file, like postgresql.conf some external script/facility/action is updating your pg_hba.conf file, and that external script/facility/action is likely unique to your environment, os installation, server management facilities. if the timestamp of the file is being set to the same time every day, you might check the following files: (may or may not be on your system) /etc/crontab /etc/cron.d/* /var/cron/crontab/* /var/spool/cron/crontab/* grep for the timestamp in: /var/log/cron* /var/log/auth* (remote system automatically doing sysadmin via ssh?) --jim > > ---------------------------------------------------- > > Nghia T. Truong > > > > On Fri, May 3, 2013 at 10:52 PM, Johnny Tan wrote: > > > Chef/Puppet? > > > > > > On Fri, May 3, 2013 at 10:28 AM, Ray Stell wrote: > > > >> > >> On May 3, 2013, at 9:45 AM, Nghia Truong wrote: > >> > >> Hi everyone, > >> Every day, the file pg_hba.conf in my server is rewritten and postgresql received > >> a SIGHUP to reload configuration. > >> > >> > >> Sounds like some sysadmin scripted rsync gone wild. > >> > > > > -- Jim Mercer Reptilian Research jim@reptiles.org +1 416 410-5633 "He who dies with the most toys is nonetheless dead" -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin