Re: BUG #1970: Existing /etc/pam.d/postgresql clobbered by - Mailing list pgsql-bugs

From Devrim GUNDUZ
Subject Re: BUG #1970: Existing /etc/pam.d/postgresql clobbered by
Date
Msg-id Pine.LNX.4.63.0510181637130.9125@mail.kivi.com.tr
Whole thread Raw
In response to BUG #1970: Existing /etc/pam.d/postgresql clobbered by RPM install  ("Mark Gibson" <gibsonm@cromwell.co.uk>)
Responses Re: BUG #1970: Existing /etc/pam.d/postgresql clobbered by
List pgsql-bugs
Hi,

On Mon, 17 Oct 2005, Mark Gibson wrote:

> Bug reference:      1970
> Logged by:          Mark Gibson
> Email address:      gibsonm@cromwell.co.uk
> PostgreSQL version: 8.0.4
> Operating system:   Redhat Enterprise Linux 4
> Description:        Existing /etc/pam.d/postgresql clobbered by RPM install
> Details:
>
> Hello, I noticed that when installing the 8.0.4 RPM's
> it replaced our existing /etc/pam.d/postgresql - this caused our system to
> break temporarily, as it was missing the following line:
>
> account  required  pam_stack.so service=system-auth
>
> I don't know whether this is required for all systems or is just a
> peculiarity of our setup, but could the RPM be changed to not clobber this
> file in the future. I believe some RPM's install conflicting configs with
> the .rpmnew extension. Cheers.

AFAIK, RPMs look for RPM database for the existing files on the system. I
think your file was not generated by any RPM, so our RPM wanted to
replace it.

I can't see any problems with adding

account  required  pam_stack.so service=system-auth

to our postgresql.pam file. If noone objects, we may release a new
subversion of 8.0.4 with this fix (and elog patch of Tom).

Regards,
--
Devrim GUNDUZ
Kivi Biliþim Teknolojileri - http://www.kivi.com.tr
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
                       http://www.gunduz.org

pgsql-bugs by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: BUG #1969: Unable to Install
Next
From: Tom Lane
Date:
Subject: Re: BUG #1970: Existing /etc/pam.d/postgresql clobbered by