<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux-Permissions on K-Life Hack | Systems Architecture &amp; DevOps</title><link>https://klifehack.com/en/tags/linux-permissions/</link><description>Recent content in Linux-Permissions on K-Life Hack | Systems Architecture &amp; DevOps</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Tue, 15 Sep 2026 10:09:25 +0900</lastBuildDate><atom:link href="https://klifehack.com/en/tags/linux-permissions/index.xml" rel="self" type="application/rss+xml"/><item><title>Operational Specifications for POSIX Access Control and Account Management in Linux Environments</title><link>https://klifehack.com/en/p/linux-posix-permission-chown-chmod-management/</link><pubDate>Tue, 15 Sep 2026 10:09:25 +0900</pubDate><guid>https://klifehack.com/en/p/linux-posix-permission-chown-chmod-management/</guid><description>&lt;p&gt;In Linux infrastructure operating multi-user environments and container platforms, designing appropriate Discretionary Access Control (DAC) for directories and system files is essential for establishing security boundaries. Incorrect permission settings or ownership definitions directly lead to incidents such as configuration tampering by unauthorized processes, exposure of confidential data to unprivileged users, and application downtime caused by permission denials. This document organizes and verifies the access permission architecture in Linux, privilege modifications using &lt;code&gt;chmod&lt;/code&gt; and &lt;code&gt;chown&lt;/code&gt;, account lifecycle management, and practical troubleshooting procedures.&lt;/p&gt;&#10;&lt;h2 id="configuration-file-manipulation-and-basic-editor-operations"&gt;Configuration File Manipulation and Basic Editor Operations&#10;&lt;/h2&gt;&lt;p&gt;The modeless terminal-based text editor &lt;code&gt;nano&lt;/code&gt; is frequently used to inspect and edit system configuration files (e.g., &lt;code&gt;/etc/passwd&lt;/code&gt;).&lt;/p&gt;&#10;&lt;h3 id="launching-and-operating-the-nano-editor"&gt;Launching and Operating the nano Editor&#10;&lt;/h3&gt;&lt;p&gt;Launch the editor by specifying the target file.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;nano passwd&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;💡 &lt;b&gt;Operation and Manual Reference Procedures&lt;/b&gt;&lt;/p&gt;&#10;&lt;p&gt;・&lt;b&gt;Exit Procedure&lt;/b&gt;: After completing edits, press &lt;code&gt;Ctrl + X&lt;/code&gt;. If unsaved changes exist, a confirmation prompt for saving will appear.&lt;/p&gt;&#10;&lt;p&gt;・&lt;b&gt;Help and Manual&lt;/b&gt;: Check command-line options and refer to the manual.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;nano --help&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;man nano&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#10;&lt;li&gt;To exit the &lt;code&gt;man&lt;/code&gt; page viewer, press the &lt;code&gt;q&lt;/code&gt; key.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="file-attributes-ownership-chown-and-access-permissions-chmod"&gt;File Attributes, Ownership (chown), and Access Permissions (chmod)&#10;&lt;/h2&gt;&lt;p&gt;Linux Discretionary Access Control (DAC) functions by assigning bitmasks for read (&lt;code&gt;r&lt;/code&gt;), write (&lt;code&gt;w&lt;/code&gt;), and execute (&lt;code&gt;x&lt;/code&gt;) to three target classes: &amp;ldquo;Owner/User&amp;rdquo;, &amp;ldquo;Group&amp;rdquo;, and &amp;ldquo;Others&amp;rdquo;.&lt;/p&gt;&#10;&lt;h3 id="primary-management-commands"&gt;Primary Management Commands&#10;&lt;/h3&gt;&lt;p&gt;・&lt;b&gt;&lt;code&gt;chmod&lt;/code&gt; (Change Mode)&lt;/b&gt;: Modifies the access permission bits (&lt;code&gt;r&lt;/code&gt;, &lt;code&gt;w&lt;/code&gt;, &lt;code&gt;x&lt;/code&gt;) of files and directories.&lt;/p&gt;&#10;&lt;p&gt;・&lt;b&gt;&lt;code&gt;chown&lt;/code&gt; (Change Owner)&lt;/b&gt;: Changes the owner user and owning group of files and directories.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;chown &lt;span style="color:#f92672"&gt;[&lt;/span&gt;OWNER&lt;span style="color:#f92672"&gt;]&lt;/span&gt;.&lt;span style="color:#f92672"&gt;[&lt;/span&gt;GROUP&lt;span style="color:#f92672"&gt;]&lt;/span&gt; FILENAME_OR_DIRECTORY&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Or use the following syntax&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;chown &lt;span style="color:#f92672"&gt;[&lt;/span&gt;OWNER&lt;span style="color:#f92672"&gt;]&lt;/span&gt;:&lt;span style="color:#f92672"&gt;[&lt;/span&gt;GROUP&lt;span style="color:#f92672"&gt;]&lt;/span&gt; FILENAME_OR_DIRECTORY&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;&#10;&lt;h2 id="practical-verification-scenarios"&gt;Practical Verification Scenarios&#10;&lt;/h2&gt;&lt;h3 id="scenario-a-restricting-directory-permissions-and-verifying-access-denial"&gt;Scenario A: Restricting Directory Permissions and Verifying Access Denial&#10;&lt;/h3&gt;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;b&gt;Directory Creation and Ownership Reassignment&lt;/b&gt;&#10;Create directory &lt;code&gt;dir1&lt;/code&gt; under the &lt;code&gt;master&lt;/code&gt; user. In an environment where the default &lt;code&gt;umask 022&lt;/code&gt; is applied, the directory is generated with &lt;code&gt;755&lt;/code&gt; (&lt;code&gt;rwxr-xr-x&lt;/code&gt;).&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mkdir dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo chown master:master dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;b&gt;Restricting Permissions&lt;/b&gt;&#10;Modify permissions on &lt;code&gt;dir1&lt;/code&gt; to completely revoke access rights for the &amp;ldquo;Others&amp;rdquo; class.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;chmod &lt;span style="color:#ae81ff"&gt;750&lt;/span&gt; dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;・&lt;b&gt;Octal Notation Breakdown (&lt;code&gt;750&lt;/code&gt;)&lt;/b&gt;:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Owner (&lt;code&gt;7&lt;/code&gt; -&amp;gt; &lt;code&gt;rwx&lt;/code&gt;): Full permissions for read, write, and directory traversal (enter).&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Group (&lt;code&gt;5&lt;/code&gt; -&amp;gt; &lt;code&gt;r-x&lt;/code&gt;): Read and directory traversal permissions.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Others (&lt;code&gt;0&lt;/code&gt; -&amp;gt; &lt;code&gt;---&lt;/code&gt;): All permissions revoked.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;ol start="3"&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;b&gt;Verifying Access Denial&lt;/b&gt;&#10;Switch context to the unprivileged user &lt;code&gt;user1&lt;/code&gt; (classified under &amp;ldquo;Others&amp;rdquo;) and attempt to navigate into the directory.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;su - user1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd /path/to/dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;&lt;b&gt;Result&lt;/b&gt;: Since traversal permission (&lt;code&gt;x&lt;/code&gt;) is absent, a &lt;code&gt;Permission denied&lt;/code&gt; error occurs, and entry is rejected.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h3 id="scenario-b-file-creation-constraints-and-dynamic-permission-modification"&gt;Scenario B: File Creation Constraints and Dynamic Permission Modification&#10;&lt;/h3&gt;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;b&gt;File Creation by Owner&lt;/b&gt;&#10;Create a file inside &lt;code&gt;dir1&lt;/code&gt; under the &lt;code&gt;master&lt;/code&gt; user context.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;touch dir1/test1.txt&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;Since &lt;code&gt;master&lt;/code&gt; holds &lt;code&gt;w&lt;/code&gt; and &lt;code&gt;x&lt;/code&gt; permissions on &lt;code&gt;dir1&lt;/code&gt;, creation succeeds. The default permissions of the generated file will be &lt;code&gt;664&lt;/code&gt; or &lt;code&gt;644&lt;/code&gt;.&lt;/p&gt;&#10;&lt;ol start="2"&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;b&gt;File Creation Failure by Unprivileged User&lt;/b&gt;&#10;Attempt to generate a file inside &lt;code&gt;dir1&lt;/code&gt; from the &lt;code&gt;user1&lt;/code&gt; account.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;touch dir1/test2.txt&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;&lt;b&gt;Result&lt;/b&gt;: Fails with &lt;code&gt;Permission denied&lt;/code&gt;. Creating a new entry within a directory requires both &lt;b&gt;write (&lt;code&gt;w&lt;/code&gt;)&lt;/b&gt; and &lt;b&gt;execute (&lt;code&gt;x&lt;/code&gt;)&lt;/b&gt; permissions on the parent directory.&lt;/p&gt;&#10;&lt;ol start="3"&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;b&gt;Expanding Permissions for the &amp;ldquo;Others&amp;rdquo; Class&lt;/b&gt;&#10;Return to the &lt;code&gt;master&lt;/code&gt; account and update permissions on &lt;code&gt;dir1&lt;/code&gt;.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;chmod &lt;span style="color:#ae81ff"&gt;757&lt;/span&gt; dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;・&lt;b&gt;Octal Notation Breakdown (&lt;code&gt;757&lt;/code&gt;)&lt;/b&gt;:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Owner (&lt;code&gt;7&lt;/code&gt; -&amp;gt; &lt;code&gt;rwx&lt;/code&gt;): Full permissions.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Group (&lt;code&gt;5&lt;/code&gt; -&amp;gt; &lt;code&gt;r-x&lt;/code&gt;): Read and traversal permissions.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Others (&lt;code&gt;7&lt;/code&gt; -&amp;gt; &lt;code&gt;rwx&lt;/code&gt;): All permissions granted.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;ol start="4"&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;b&gt;Re-verification&lt;/b&gt;&#10;Attempt file creation again from &lt;code&gt;user1&lt;/code&gt;.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;touch dir1/test2.txt&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;&lt;b&gt;Result&lt;/b&gt;: Creation completes successfully. The &lt;code&gt;7&lt;/code&gt; bit assigned to &amp;ldquo;Others&amp;rdquo; permits &lt;code&gt;user1&lt;/code&gt; to modify the directory structure.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="detailed-specification-via-symbolic-mode"&gt;Detailed Specification via Symbolic Mode&#10;&lt;/h2&gt;&lt;p&gt;In addition to octal notation, symbolic mode is widely used to add, remove, or set specific permission flags.&lt;/p&gt;&#10;&lt;h3 id="components-of-symbolic-notation"&gt;Components of Symbolic Notation&#10;&lt;/h3&gt;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th style="text-align: left"&gt;Category&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th style="text-align: center"&gt;Symbol&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th style="text-align: left"&gt;Description&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;b&gt;Target Class&lt;/b&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: center"&gt;&lt;code&gt;u&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;b&gt;User&lt;/b&gt;: File owner user&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: center"&gt;&lt;code&gt;g&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;b&gt;Group&lt;/b&gt;: File owner group&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: center"&gt;&lt;code&gt;o&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;b&gt;Others&lt;/b&gt;: Other users&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: center"&gt;&lt;code&gt;a&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;b&gt;All&lt;/b&gt;: All classes (combination of &lt;code&gt;u&lt;/code&gt;, &lt;code&gt;g&lt;/code&gt;, &lt;code&gt;o&lt;/code&gt;)&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;b&gt;Operator&lt;/b&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: center"&gt;&lt;code&gt;+&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;Add permission&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: center"&gt;&lt;code&gt;-&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;Revoke permission&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: center"&gt;&lt;code&gt;=&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;Explicitly set/overwrite permission&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;b&gt;Permission Flag&lt;/b&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: center"&gt;&lt;code&gt;r&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;Read&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: center"&gt;&lt;code&gt;w&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;Write&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: center"&gt;&lt;code&gt;x&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: left"&gt;Execute / Directory traversal (Execute)&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;h3 id="representative-command-examples"&gt;Representative Command Examples&#10;&lt;/h3&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Add write permission for the owner&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;chmod u+w filename&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Add write permission for group and others&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;chmod go+w filename&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Add execute permission for the owner, and write permission for group/others&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;chmod u+x,go+w filename&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Explicitly set permissions to rwx for all user classes&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;chmod a+rwx filename&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;&#10;&lt;h2 id="account-lifecycle-management-adduser--userdel"&gt;Account Lifecycle Management (&lt;code&gt;adduser&lt;/code&gt; / &lt;code&gt;userdel&lt;/code&gt;)&#10;&lt;/h2&gt;&lt;p&gt;Procedures for managing User Identifiers (UID), which form the foundation of access control.&lt;/p&gt;&#10;&lt;p&gt;・&lt;b&gt;Account Creation&lt;/b&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;adduser &amp;lt;username&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;・&lt;b&gt;Account Deletion (Basic)&lt;/b&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;userdel &amp;lt;username&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#10;&lt;li&gt;When executing this command, only registry entries in &lt;code&gt;/etc/passwd&lt;/code&gt; and &lt;code&gt;/etc/shadow&lt;/code&gt; are destroyed; the home directory and mail queue remain.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;・&lt;b&gt;Complete Deletion of Account and Associated Data (&lt;code&gt;-r&lt;/code&gt; option)&lt;/b&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;userdel -r &amp;lt;username&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;⚠️ &lt;b&gt;Internal Processing Flow with &lt;code&gt;-r&lt;/code&gt; Option&lt;/b&gt;&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Deletion of user account entry&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Recursive destruction of the home directory (&lt;code&gt;/home/&amp;lt;username&amp;gt;&lt;/code&gt;)&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Deletion of unprocessed mail in the spool (&lt;code&gt;/var/mail/&amp;lt;username&amp;gt;&lt;/code&gt;, etc.)&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="troubleshooting"&gt;Troubleshooting&#10;&lt;/h2&gt;&lt;h3 id="1-path-resolution-failure-due-to-missing-execute-x-permission-on-directory"&gt;1. Path Resolution Failure Due to Missing Execute (&lt;code&gt;x&lt;/code&gt;) Permission on Directory&#10;&lt;/h3&gt;&lt;p&gt;Even if a file&amp;rsquo;s own permissions are &lt;code&gt;644&lt;/code&gt; (&lt;code&gt;rw-r--r--&lt;/code&gt;), if &lt;code&gt;x&lt;/code&gt; permission (traversal permission) is not granted to an ancestor directory, the process cannot reach the file and returns &lt;code&gt;Permission denied&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;🛠️ &lt;b&gt;Resolution&lt;/b&gt;: Check permissions along the parent directory structure and grant the minimum required execute permissions.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;chmod o+x /path/to/parent_directory&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="2-lingering-process-error-during-userdel--r-execution"&gt;2. Lingering Process Error During &lt;code&gt;userdel -r&lt;/code&gt; Execution&#10;&lt;/h3&gt;&lt;p&gt;If the target user owns running background processes, the &lt;code&gt;userdel&lt;/code&gt; command will fail.&lt;/p&gt;&#10;&lt;p&gt;⚠️ &lt;b&gt;Symptom Example&lt;/b&gt;:&lt;/p&gt;&#10;&lt;p&gt;&lt;code&gt;userdel: user &amp;lt;username&amp;gt; is currently used by process &amp;lt;pid&amp;gt;&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;🛠️ &lt;b&gt;Resolution Procedure&lt;/b&gt;: Terminate the processes owned by the user before executing deletion.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;pkill -u &amp;lt;username&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;userdel -r &amp;lt;username&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;&#10;&lt;h2 id="operational-notes"&gt;Operational Notes&#10;&lt;/h2&gt;&lt;p&gt;Terminal log output showing directory configuration, user switching, permission modification, and result verification in this environment.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;master@edge-node:~$ mkdir dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;master@edge-node:~$ sudo chown master:master dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;master@edge-node:~$ chmod 750 dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;master@edge-node:~$ ls -ld dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;drwxr-x--- 2 master master 4096 Sep 15 10:00 dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;master@edge-node:~$ su - user1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Password: &#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;user1@edge-node:~$ cd /home/master/dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;-bash: cd: /home/master/dir1: Permission denied&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;user1@edge-node:~$ exit&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;logout&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;master@edge-node:~$ chmod 757 dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;master@edge-node:~$ ls -ld dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;drwxr-xr-w 2 master master 4096 Sep 15 10:02 dir1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;master@edge-node:~$ su - user1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Password: &#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;user1@edge-node:~$ touch /home/master/dir1/test2.txt&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;user1@edge-node:~$ ls -l /home/master/dir1/test2.txt&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;-rw-r--r-- 1 user1 user1 0 Sep 15 10:03 /home/master/dir1/test2.txt&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;```&amp;lt;/username&amp;gt;&amp;lt;/username&amp;gt;&amp;lt;/pid&amp;gt;&amp;lt;/username&amp;gt;&amp;lt;/username&amp;gt;&amp;lt;/username&amp;gt;&amp;lt;/username&amp;gt;&amp;lt;/username&amp;gt;&amp;lt;/username&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item></channel></rss>