<html 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=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<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:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
{font-family:"Times New Roman \(Body CS\)";
panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hello everyone,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I have a question with how permissions are handled within lustre for users that are not known to the lustre servers. We came across this while configuring a new web server (apache). For various reasons,
we decided to mount our lustre filesystem on the web server and use it to host the files we want to serve. During the initial setup of the web server, we were using a document root pointing to either local storage or an NFS filesystem and everything was working
fine. But when we tried to host files on the lustre filesystem, we’d get permission denied errors, even though the files and all directories in the path had permissions that should have made them readable to anyone (go+rX). After digging a little more, the
httpd processes were being run under the “apache” user, which had a numerical UID and GID on the web server that was neither in the local /etc/passwd on our lustre servers or our LDAP (UID=GID=48 if it makes a difference). We are aware that the files on the
weg server need to be readable by the service account running the httpd processes but they should have been with the 644/755 permissions. We were able to verify that manually becoming the “apache” user on the web server would indeed produce “permission denied”
errors when trying to manually list directory contents on the lustre filesystem. Getting more information has been a challenge since we are getting nothing in the logs at all – we’ve checked /var/log/messages and /var/log/secure on both the lustre client
(web server) and the lustre servers. In order to get lustre-hosted files working we had to add a service account to our LDAP and run the httpd processes with that account. Our web server is also joined to our LDAP so this way the service account is known
by both the web server and lustre servers, which are also joined to our LDAP. Our lustre servers are using mdt.*.identity_upcall=/usr/sbin/l_getidentity and we are running lustre servers and clients based on 2.14. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Is this really the expected behavior? Will lustre refuse access to files with 644/755 permissions if the user (i.e. UID/GID) is unknown to the servers?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Darby<o:p></o:p></span></p>
</div>
</body>
</html>