[ClusterLabs] Antw: Re: Q: umask of RAs?

Dejan Muhamedagic dejanmm at fastmail.fm
Tue Jun 16 11:00:53 UTC 2015


Hi,

On Tue, Jun 16, 2015 at 08:03:45AM +0200, Ulrich Windl wrote:
> >>> Ken Gaillot <kgaillot at redhat.com> schrieb am 15.06.2015 um 16:38 in Nachricht
> <557EE35F.4020302 at redhat.com>:
> > On 06/15/2015 01:55 AM, Ulrich Windl wrote:
> >> Hi!
> >> 
> >> I have a rather simple question: When RAs are run, what is the effective 
> > umask? I.e.: Is it different from the default, and are RAs expected to change 
> > the umask before creating any files?
> >> 
> >> (Using SLES11 SP3)
> >> 
> >> Regards,
> >> Ulrich
> > 
> > Hi Ulrich,
> > 
> > Pacemaker components (including lrmd) set umask when initializing
> > logging, using 0026 (S_IWGRP | S_IWOTH | S_IROTH).
> > 
> > I don't think resource agents that create files should rely on that;
> > it's a good idea for them to set umask according to their needs.
> > Pacemaker's umask might change in the future, and resource agents might
> > be called by some means other than Pacemaker.
> 
> Actually I had a problem with CTDB creating smb.conf in a way non-root users couln't read it, making smbclient rather unhappy. I had inspected the RA, but could nither find an umask commant, nor a chmod. Thus the question.

When creating a system/configuration file, as in this case, a
chmod call would be good.

Thanks,

Dejan

> > 
> > _______________________________________________
> > Users mailing list: Users at clusterlabs.org 
> > http://clusterlabs.org/mailman/listinfo/users 
> > 
> > Project Home: http://www.clusterlabs.org 
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf 
> > Bugs: http://bugs.clusterlabs.org 
> 
> 
> 
> 
> 
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org




More information about the Users mailing list