Re: Problem with setting permissions in /etc/fstab [RESOLVED]

2016-02-11 Thread Tom H
On Thu, Feb 11, 2016 at 5:46 AM, Bill Maidment  wrote:
>
> 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.

You should copy it to "/etc/tmpfiles.d/" and modify it there because
the next systemd update'll overwrite your "/usr/lib/tmpfiles.d/"
changes.


RE: Problem with setting permissions in /etc/fstab [RESOLVED]

2016-02-10 Thread Bill Maidment
Oops copied wrong line, try
z /var/spool/MD-Quarantine 0750 defang defang - -

 
-Original message-
> From:Bill Maidment <b...@maidment.me>
> Sent: Thursday 11th February 2016 15:46
> To: Bill Maidment <b...@maidment.me>; Nico Kadel-Garcia <nka...@gmail.com>
> Cc: scientific-linux-us...@fnal.gov <scientific-linux-us...@fnal.gov>
> 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 <b...@maidment.me>
> > Sent: Tuesday 9th February 2016 15:21
> > To: Nico Kadel-Garcia <nka...@gmail.com>
> > Cc: scientific-linux-us...@fnal.gov <scientific-linux-us...@fnal.gov>
> > 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 <nka...@gmail.com>
> > > Sent: Monday 8th February 2016 23:41
> > > To: Bill Maidment <b...@maidment.me>
> > > Cc: scientific-linux-us...@fnal.gov <scientific-linux-us...@fnal.gov>
> > > Subject: Re: Problem with setting permissions in /etc/fstab
> > > 
> > > On Mon, Feb 8, 2016 at 1:26 AM, Bill Maidment <b...@maidment.me> 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.
> > > 
> > > 
> > 
> > 


RE: Problem with setting permissions in /etc/fstab [RESOLVED]

2016-02-10 Thread Bill Maidment
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 
> Sent: Tuesday 9th February 2016 15:21
> To: Nico Kadel-Garcia 
> Cc: scientific-linux-us...@fnal.gov 
> 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 
> > Sent: Monday 8th February 2016 23:41
> > To: Bill Maidment 
> > Cc: scientific-linux-us...@fnal.gov 
> > Subject: Re: Problem with setting permissions in /etc/fstab
> > 
> > On Mon, Feb 8, 2016 at 1:26 AM, Bill Maidment  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.
> > 
> > 
> 
> 


RE: Problem with setting permissions in /etc/fstab [RESOLVED]

2016-02-10 Thread Bill Maidment
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 <b...@maidment.me>
> Sent: Thursday 11th February 2016 15:49
> To: Bill Maidment <b...@maidment.me>; Nico Kadel-Garcia <nka...@gmail.com>
> Cc: scientific-linux-us...@fnal.gov <scientific-linux-us...@fnal.gov>
> 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 <b...@maidment.me>
> > Sent: Thursday 11th February 2016 15:46
> > To: Bill Maidment <b...@maidment.me>; Nico Kadel-Garcia <nka...@gmail.com>
> > Cc: scientific-linux-us...@fnal.gov <scientific-linux-us...@fnal.gov>
> > 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 <b...@maidment.me>
> > > Sent: Tuesday 9th February 2016 15:21
> > > To: Nico Kadel-Garcia <nka...@gmail.com>
> > > Cc: scientific-linux-us...@fnal.gov <scientific-linux-us...@fnal.gov>
> > > 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 <nka...@gmail.com>
> > > > Sent: Monday 8th February 2016 23:41
> > > > To: Bill Maidment <b...@maidment.me>
> > > > Cc: scientific-linux-us...@fnal.gov <scientific-linux-us...@fnal.gov>
> > > > Subject: Re: Problem with setting permissions in /etc/fstab
> > > > 
> > > > On Mon, Feb 8, 2016 at 1:26 AM, Bill Maidment <b...@maidment.me> 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.
> > > > 
> > > > 
> > > 
> > > 
> 
>