Re: postconf changes file ownership in 2.7 and later

2011-02-08 Thread Wietse Venema
Quanah Gibson-Mount: > Unlike previous postfix releases, postconf changes the ownership of the > "main.cf" file when it is executed. This breaks things that specifically > set the ownership on main.cf prior to executing postconf. Postfix main.cf and master.cf MUST BE OWNED BY ROOT. Wie

Re: postconf changes file ownership in 2.7 and later

2011-02-07 Thread Victor Duchovni
On Mon, Feb 07, 2011 at 10:33:13PM -0800, Quanah Gibson-Mount wrote: >> Sorry, the mode is is not preserved either, it is always set to 0644, and >> always has been set to 0644 (as far back as Postfix 1.0). > > Yeah, you're right. Something else has been changing the ownership > back,and is no l

Re: postconf changes file ownership in 2.7 and later

2011-02-07 Thread Quanah Gibson-Mount
--On February 8, 2011 12:54:41 AM -0500 Victor Duchovni wrote: On Tue, Feb 08, 2011 at 12:48:26AM -0500, Victor Duchovni wrote: The code that implemenents "postconf -e" main.cf updates has not changed since Postfix 2.6. The main.cf file is given the original permissions, but no attempt is

Re: postconf changes file ownership in 2.7 and later

2011-02-07 Thread Victor Duchovni
On Tue, Feb 08, 2011 at 12:48:26AM -0500, Victor Duchovni wrote: > The code that implemenents "postconf -e" main.cf updates has not changed > since Postfix 2.6. The main.cf file is given the original permissions, but > no attempt is made to explicitly assign an owner. Sorry, the mode is is not pr

Re: postconf changes file ownership in 2.7 and later

2011-02-07 Thread Victor Duchovni
On Mon, Feb 07, 2011 at 09:17:10PM -0800, Quanah Gibson-Mount wrote: > Unlike previous postfix releases, postconf changes the ownership of the > "main.cf" file when it is executed. This breaks things that specifically > set the ownership on main.cf prior to executing postconf. The main.cf file

postconf changes file ownership in 2.7 and later

2011-02-07 Thread Quanah Gibson-Mount
Unlike previous postfix releases, postconf changes the ownership of the "main.cf" file when it is executed. This breaks things that specifically set the ownership on main.cf prior to executing postconf. I can reproduce this quite easily by touching a file as the user ID I want to own it, and