Re: Problem: pg_hba.conf is automatically rewritten every day

From: Jim Mercer <jim(at)reptiles(dot)org>
To: Nghia Truong <nghiatruong(dot)vn(at)gmail(dot)com>
Cc: Johnny Tan <johnnydtan(at)gmail(dot)com>, Ray Stell <stellr(at)vt(dot)edu>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Problem: pg_hba.conf is automatically rewritten every day
Date: 2013-05-03 16:08:08
Message-ID: 20130503160808.GA37995@reptiles.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(at)gmail(dot)com> wrote:
>
> > Chef/Puppet?
> >
> >
> > On Fri, May 3, 2013 at 10:28 AM, Ray Stell <stellr(at)vt(dot)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(at)reptiles(dot)org +1 416 410-5633
"He who dies with the most toys is nonetheless dead"

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Fred Parkinson 2013-05-03 16:13:14 Re: Problem: pg_hba.conf is automatically rewritten every day
Previous Message Nghia Truong 2013-05-03 15:59:09 Re: Problem: pg_hba.conf is automatically rewritten every day