From: Jim Mercer <jim@reptiles.org>
To: Nghia Truong <nghiatruong.vn@gmail.com>
Cc: Johnny Tan <johnnydtan@gmail.com>
Cc: Ray Stell <stellr@vt.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem: pg_hba.conf is automatically rewritten every day
Date: Fri, 3 May 2013 12:08:08 -0400
Message-ID: <20130503160808.GA37995@reptiles.org> (raw)
In-Reply-To: <CAHD-CS3Qo+TDg5uHM6F8nBPU+ZG7BJm24HXR_47TPyrPiZVhAg@mail.gmail.com>
References: <CAHD-CS2ZJ2pTxV8TZ9ACBGxGGbN4=Eg2FopyfZ=Yp=bZP9cb=w@mail.gmail.com>
<DF565F16-FAE9-4C0E-84C2-CE70EF707381@vt.edu>
<CABMVzL2B358Va8WVeGmUKGg2HVMjFF2EUUf0mMSFZzoG7Ha-ig@mail.gmail.com>
<CAHD-CS3Qo+TDg5uHM6F8nBPU+ZG7BJm24HXR_47TPyrPiZVhAg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
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 <johnnydtan@gmail.com> wrote:
>
> > Chef/Puppet?
> >
> >
> > On Fri, May 3, 2013 at 10:28 AM, Ray Stell <stellr@vt.edu> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: jim@reptiles.org, nghiatruong.vn@gmail.com, johnnydtan@gmail.com, stellr@vt.edu
Subject: Re: Problem: pg_hba.conf is automatically rewritten every day
In-Reply-To: <20130503160808.GA37995@reptiles.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox