Yang, Tong 6182f91ba8 MRS component operation guide_normal 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2022-12-09 14:55:21 +00:00

38 lines
3.9 KiB
HTML

<a name="mrs_01_0807"></a><a name="mrs_01_0807"></a>
<h1 class="topictitle1">Setting Permissions on Files and Directories</h1>
<div id="body1590130535012"><div class="section" id="mrs_01_0807__sffe745e6f7f24a98bd09a580a06723c7"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0807__a0b32bdec6f604dc9a62c0cde7b141135">HDFS allows users to modify the default permissions of files and directories. The default mask provided by the HDFS for creating file and directory permissions is <span class="parmvalue" id="mrs_01_0807__p19054d59026f4a9ebca243934ff57a22"><b>022</b></span>. If you have special requirements for the default permissions, you can set configuration items to change the default permissions.</p>
</div>
<div class="section" id="mrs_01_0807__sbf67498b4b6f488db132d300a825948b"><h4 class="sectiontitle">Configuration Description</h4><p id="mrs_01_0807__a902e603d2a2d40569ef9958a06710f3a"><strong id="mrs_01_0807__b97121730201311">Parameter portal:</strong></p>
<p id="mrs_01_0807__p20478340125911">Go to the <strong id="mrs_01_0807__b4347202112114">All Configurations</strong> page of HDFS and enter a parameter name in the search box by referring to <a href="mrs_01_2125.html">Modifying Cluster Service Configuration Parameters</a>.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0807__t6d89da911f4944b6895df6a20100cb87" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="mrs_01_0807__r6fd2bb1421d146d98c4a82725f603986"><th align="left" class="cellrowborder" valign="top" width="28.13%" id="mcps1.3.2.4.2.4.1.1"><p id="mrs_01_0807__a55f91aa6d65e49e7a98a6cdd50db2793"><strong id="mrs_01_0807__b836716447133">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="56.14%" id="mcps1.3.2.4.2.4.1.2"><p id="mrs_01_0807__a6a564bed3a8e4e38acb4d7f8feca175c"><strong id="mrs_01_0807__b9320164511319">Description</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.73%" id="mcps1.3.2.4.2.4.1.3"><p id="mrs_01_0807__a18327cca14894a7dade7691a7a2dd321"><strong id="mrs_01_0807__b1347146141313">Default Value</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_0807__r26c45325e61c4ab5be9d7752c8e8a521"><td class="cellrowborder" valign="top" width="28.13%" headers="mcps1.3.2.4.2.4.1.1 "><p id="mrs_01_0807__a587789be90a34a5ea3eb0147175b1041">fs.permissions.umask-mode</p>
</td>
<td class="cellrowborder" valign="top" width="56.14%" headers="mcps1.3.2.4.2.4.1.2 "><p id="mrs_01_0807__a3312aa5044d74c6684b31a9ca3c0650f">This <strong id="mrs_01_0807__b386591101412">umask</strong> value (user mask) is used when the user creates files and directories in the HDFS on the clients. This parameter is similar to the file permission mask on Linux.</p>
<p id="mrs_01_0807__a28af51b138ed44d4aef0948dac02364d">The parameter value can be in octal or in symbolic, for example, <span class="parmvalue" id="mrs_01_0807__parmvalue3765142411611"><b>022</b></span> (octal, the same as <strong id="mrs_01_0807__b27721424111618">u=rwx,g=r-x,o=r-x</strong> in symbolic), or <span class="parmvalue" id="mrs_01_0807__parmvalue18772102491620"><b>u=rwx,g=rwx,o=</b></span> (symbolic, the same as <span class="parmvalue" id="mrs_01_0807__parmvalue577215246166"><b>007</b></span> in octal).</p>
<div class="note" id="mrs_01_0807__ndeb15adafb9842ee851dfba8c49be808"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_0807__aadf26a8a1b0d4391bad338c0d5c615d8">The octal mask is opposite to the actual permission value. You are advised to use the symbol notation to make the description clearer.</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" width="15.73%" headers="mcps1.3.2.4.2.4.1.3 "><p id="mrs_01_0807__a3bb648ffba664563afb748a9f1a5dfe6">022</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0790.html">Using HDFS</a></div>
</div>
</div>