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

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Tue Jun 16 02:03:45 EDT 2015

>>> 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.

> _______________________________________________
> 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