Apparently, the /usr/lib/tmpfiles.d/ directory is a "blessing" from systemd. 
Permanent changes should be done by creating the changed file in 
/etc/tmpfiles.d/

We live and learn!
 
-----Original message-----
> From:Bill Maidment <[email protected]>
> Sent: Thursday 11th February 2016 15:49
> To: Bill Maidment <[email protected]>; Nico Kadel-Garcia <[email protected]>
> Cc: [email protected] <[email protected]>
> Subject: RE: Problem with setting permissions in /etc/fstab [RESOLVED]
> 
> Oops copied wrong line, try
> z /var/spool/MD-Quarantine 0750 defang defang - -
> 
>  
> -----Original message-----
> > From:Bill Maidment <[email protected]>
> > Sent: Thursday 11th February 2016 15:46
> > To: Bill Maidment <[email protected]>; Nico Kadel-Garcia <[email protected]>
> > Cc: [email protected] <[email protected]>
> > Subject: RE: Problem with setting permissions in /etc/fstab [RESOLVED]
> > 
> > Nico
> > The issue has been resolved.
> > I discovered a file /usr/lib/tmpfiles.d/mimedefang.conf which contained the 
> > following line (among others):
> > z /var/spool/MD-Quarantine 0750 defang defang - -
> > 
> > This is obvious used in a chmod call.
> > Altering 0750 to 0770 got me back in business.
> > 
> > Cheers
> > Bill
> >  
> > -----Original message-----
> > > From:Bill Maidment <[email protected]>
> > > Sent: Tuesday 9th February 2016 15:21
> > > To: Nico Kadel-Garcia <[email protected]>
> > > Cc: [email protected] <[email protected]>
> > > Subject: RE: Problem with setting permissions in /etc/fstab
> > > 
> > > Nico
> > > Thanks for your suggestions.
> > > I know it is not a typo as I did copy and paste into the second machine 
> > > /etc/fstab and it worked.
> > > I note that /etc/mtab contains
> > > /dev/shm /var/spool/MIMEDefang tmpfs 
> > > rw,relatime,size=262144k,mode=770,uid=991,gid=990 0 0
> > > so it looks like the mount is working OK.
> > > 
> > > I believe your other suggestion might well be the cause and I am trying 
> > > to locate which service is causing the issue.
> > > /etc/passwd has
> > > defang:x:991:990:MIMEDefang User:/var/spool/MIMEDefang:/sbin/nologin
> > > May be this is causing something to go wrong.
> > > 
> > > Still searching.....
> > > 
> > > Cheers
> > > Bill
> > >  
> > > -----Original message-----
> > > > From:Nico Kadel-Garcia <[email protected]>
> > > > Sent: Monday 8th February 2016 23:41
> > > > To: Bill Maidment <[email protected]>
> > > > Cc: [email protected] <[email protected]>
> > > > Subject: Re: Problem with setting permissions in /etc/fstab
> > > > 
> > > > On Mon, Feb 8, 2016 at 1:26 AM, Bill Maidment <[email protected]> wrote:
> > > > > An update.
> > > > > I have put the same /etc/fstab entry in another SL7.2 machine and it 
> > > > > sets the permissions correctly on boot.
> > > > >
> > > > > On the problem machine I have tried setting the permissions on the 
> > > > > directory to 0770 before rebooting, but something is setting it to 
> > > > > 0750 on boot.
> > > > > A manual mount works fine with:
> > > > > mount -t tmpfs -o size=256m,mode=0770,uid=defang,gid=defang /dev/shm 
> > > > > /var/spool/MIMEDefang
> > > > >
> > > > > So what can be upsetting the /etc/fstab mount?
> > > > >
> > > > > I'm stumped!
> > > > >
> > > > > Cheers
> > > > > Bill
> > > > 
> > > > Do you have a typo in /etc/fstab, perhaps? Or some other management
> > > > process, such as chef, puppet, cfentine, etc. that make might be
> > > > resetting directory permissions.
> > > > 
> > > > 
> > > 
> > > 
> 
> 

Reply via email to