<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi, you have specified an inherited (inherit only) ACE in the parent directory’s ACL, so that disables umask. New files will only get whatever ACEs they inherit. Since the only inherited ACE pertains to directories and not files, a new
 file inherits no ACEs, and hence ends up with zero permissions (which I suspect is no ACEs at all in its ACL).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So you need to specify some inherited ACEs for files as well as directories. Or else use FileInherit:DirInherit:InheritOnly<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If the parent directory has no inherited ACEs in its ACL then the permissions on new files/directories are controlled by umask.<o:p></o:p></p>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Steve Losen<o:p></o:p></p>
<p class="MsoNormal">Research Computing<o:p></o:p></p>
<p class="MsoNormal">University of Virginia<o:p></o:p></p>
<p class="MsoNormal"><a href="mailto:scl@virginia.edu"><span style="color:#0563C1">scl@virginia.edu</span></a>  434-924-0640<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> on behalf of Talamo Ivano Giuseppe <ivano.talamo@psi.ch><br>
<b>Reply-To: </b>gpfsug main discussion list <gpfsug-discuss@gpfsug.org><br>
<b>Date: </b>Thursday, September 14, 2023 at 3:19 PM<br>
<b>To: </b>"gpfsug-discuss@gpfsug.org" <gpfsug-discuss@gpfsug.org><br>
<b>Subject: </b>Re: [gpfsug-discuss] Unexpected permissions with ACLs<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> on behalf of Christof Schmitt <christof.schmitt@us.ibm.com><br>
<b>Sent:</b> 14 September 2023 18:02<br>
<b>To:</b> gpfsug-discuss@gpfsug.org <gpfsug-discuss@gpfsug.org><br>
<b>Subject:</b> Re: [gpfsug-discuss] Unexpected permissions with ACLs</span> <o:p>
</o:p></p>
<div>
<p class="MsoNormal"> > following:<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">> <br>
> special:group@:rwx-:allow:DirInherit:InheritOnly<br>
>  (X)READ/LIST (X)WRITE/CREATE (X)APPEND/MKDIR (X)SYNCHRONIZE<br>
> (X)READ_ACL  (X)READ_ATTR  (X)READ_NAMED<br>
>  (-)DELETE    (X)DELETE_CHILD (X)CHOWN        (X)EXEC/SEARCH<br>
> (X)WRITE_ACL (X)WRITE_ATTR (X)WRITE_NAMED<br>
> <br>
> According to the manual, the DirInherit:InheritOnly should guarantee<br>
> that the entry applies only to the new subdirectories but now it is<br>
> also affecting new files in the main dir.<br>
> Is this an expected behavior? <br>
<br>
From an ACL perspective, yes. "InheritOnly" indicates that this entry<br>
does not grant any permissions on the directory. It is only copied<br>
as an entry to new files or subdirectories created in this directory.<br>
So if this is the only ACL entry, there are indeed no permissions on<br>
this directory.<br>
<br>
You can remove the "InheritOnly" bit, then this would also grant<br>
permission on the directory. Or you can add another ACL entry that<br>
grants permissions on the directory.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I may have not been clear enough, but that ACE has only been added to the previous 3 ACEs, so the complete one for the directory is the following:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">#NFSv4 ACL <o:p></o:p></p>
<div>
<p class="MsoNormal">#owner:root<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#group:p15875<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">special:owner@:rwxc:allow<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> (X)READ/LIST (X)WRITE/CREATE (X)APPEND/MKDIR (X)SYNCHRONIZE (X)READ_ACL  (X)READ_ATTR  (X)READ_NAMED<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> (-)DELETE    (X)DELETE_CHILD (X)CHOWN        (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (X)WRITE_NAMED<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">special:group@:rwx-:allow<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> (X)READ/LIST (X)WRITE/CREATE (X)APPEND/MKDIR (X)SYNCHRONIZE (X)READ_ACL  (X)READ_ATTR  (X)READ_NAMED<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> (-)DELETE    (X)DELETE_CHILD (X)CHOWN        (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (X)WRITE_NAMED<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">special:everyone@:----:allow<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> (-)READ/LIST (-)WRITE/CREATE (-)APPEND/MKDIR (X)SYNCHRONIZE (X)READ_ACL  (X)READ_ATTR  (X)READ_NAMED<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> (-)DELETE    (-)DELETE_CHILD (-)CHOWN        (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">special:owner@:rwx-:allow:DirInherit:InheritOnly<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> (X)READ/LIST (X)WRITE/CREATE (X)APPEND/MKDIR (X)SYNCHRONIZE (X)READ_ACL  (X)READ_ATTR  (X)READ_NAMED<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> (-)DELETE    (X)DELETE_CHILD (X)CHOWN        (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (X)WRITE_NAMED<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">So I would expect that the first 3 would still produce a 644 mode on the file. Am I wrong?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Ivano<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>