{"id":15979,"date":"2024-10-28T13:24:37","date_gmt":"2024-10-28T13:24:37","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=15979"},"modified":"2024-10-29T09:19:08","modified_gmt":"2024-10-29T09:19:08","password":"","slug":"understanding-linux-file-permissions-what-every-administrator-should-know","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/","title":{"rendered":"Understanding Linux File Permissions: What Every Administrator Should Know"},"content":{"rendered":"\n<p>Linux file permissions are a core part of system security and management, controlling who can read, write, or execute files. Understanding and managing these permissions is essential for every Linux administrator to keep systems secure and well-organized. Here\u2019s a guide on Linux file permissions, the types of permissions, and how to configure them for optimal security.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Understanding the Basics of Linux File Permissions<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Every file and directory in Linux has an associated set of permissions and ownership. Permissions define <strong>who<\/strong> can access or modify a file and <strong>what<\/strong> they can do with it. There are three key concepts:\n<ul class=\"wp-block-list\">\n<li><strong>User (u)<\/strong>: The owner of the file.<\/li>\n\n\n\n<li><strong>Group (g)<\/strong>: A group of users that may share access rights.<\/li>\n\n\n\n<li><strong>Others (o)<\/strong>: All other users on the system.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Permissions are generally displayed as a combination of letters and numbers. For example:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>-rwxr-xr--<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"765\" height=\"100\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-580.png\" alt=\"\" class=\"wp-image-15996\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-580.png 765w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-580-300x39.png 300w\" sizes=\"auto, (max-width: 765px) 100vw, 765px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This example includes <strong>10 characters<\/strong>, where:<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The first character represents the <strong>file type<\/strong> (<code>-<\/code> for files, <code>d<\/code> for directories).<\/li>\n\n\n\n<li>The next <strong>9 characters<\/strong> are split into sets of three, representing permissions for the <strong>user<\/strong>, <strong>group<\/strong>, and <strong>others<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. The Three Types of Permissions<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Each permission set has three possible permissions:\n<ul class=\"wp-block-list\">\n<li><strong>Read (r)<\/strong>: Allows viewing the contents of a file or listing files in a directory.<\/li>\n\n\n\n<li><strong>Write (w)<\/strong>: Grants permission to modify the contents of a file or add\/remove files in a directory.<\/li>\n\n\n\n<li><strong>Execute (x)<\/strong>: Permits executing a file as a program or script, or accessing files within a directory.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Using the example <code>-rwxr-xr--<\/code>, here\u2019s how permissions apply:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Section<\/th><th>Permissions<\/th><th>Details<\/th><\/tr><\/thead><tbody><tr><td><strong>User<\/strong><\/td><td>rwx<\/td><td>Read, write, execute<\/td><\/tr><tr><td><strong>Group<\/strong><\/td><td>r-x<\/td><td>Read, execute<\/td><\/tr><tr><td><strong>Others<\/strong><\/td><td>r&#8211;<\/td><td>Read-only<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">File permissions<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. Using Numeric (Octal) Representation for Permissions<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Permissions can also be represented by numbers:\n<ul class=\"wp-block-list\">\n<li><strong>4<\/strong> for read (<code>r<\/code>)<\/li>\n\n\n\n<li><strong>2<\/strong> for write (<code>w<\/code>)<\/li>\n\n\n\n<li><strong>1<\/strong> for execute (<code>x<\/code>)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>By summing these values, each permission set can be represented by a single digit. For instance:\n<ul class=\"wp-block-list\">\n<li><code>7<\/code> (4+2+1) gives <strong>read, write, execute<\/strong>.<\/li>\n\n\n\n<li><code>5<\/code> (4+1) gives <strong>read, execute<\/strong>.<\/li>\n\n\n\n<li><code>4<\/code> gives <strong>read-only<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>The command <code>chmod 755 filename<\/code> applies <code>rwxr-xr-x<\/code> permissions. Here\u2019s the breakdown:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Permission Code<\/th><th>Result<\/th><th>Details<\/th><\/tr><\/thead><tbody><tr><td><strong>7<\/strong><\/td><td>rwx<\/td><td>User has full permissions<\/td><\/tr><tr><td><strong>5<\/strong><\/td><td>r-x<\/td><td>Group can read and execute<\/td><\/tr><tr><td><strong>5<\/strong><\/td><td>r-x<\/td><td>Others can read and execute<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Octal representation<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">4. Setting Permissions with <code>chmod<\/code><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>chmod<\/code> is the command used to change file permissions.<\/li>\n\n\n\n<li>Below is the sysntax of the command <\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>chmod &#91;permissions] &#91;filename]<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"834\" height=\"123\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-581.png\" alt=\"\" class=\"wp-image-15998\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-581.png 834w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-581-300x44.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-581-768x113.png 768w\" sizes=\"auto, (max-width: 834px) 100vw, 834px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This command gives <code>rw-r--r--<\/code> permissions: the owner can read and write, while others can only read.<\/li>\n\n\n\n<li>Alternatively, permissions can be specified symbolically:\n<ul class=\"wp-block-list\">\n<li><code>u<\/code>: User<\/li>\n\n\n\n<li><code>g<\/code>: Group<\/li>\n\n\n\n<li><code>o<\/code>: Others<\/li>\n\n\n\n<li><code>a<\/code>: All (user, group, others)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>To add or remove permissions, use <code>+<\/code> or <code>-<\/code>:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod u+x file.txt      # Adds execute for user\nchmod g-w file.txt      # Removes write for group\nchmod o+r file.txt      # Adds read for others<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"247\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-582-1024x247.png\" alt=\"\" class=\"wp-image-16000\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-582-1024x247.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-582-300x72.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-582-768x185.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-582.png 1185w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">5. Changing Ownership with <code>chown<\/code><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Each file and directory in Linux has an owner and group. <strong><code>chown<\/code><\/strong> changes file ownership.<\/li>\n\n\n\n<li>Below is the sysntac of chown command<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>chown &#91;owner]&#91;:group] &#91;filename]<\/strong><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>chown tke file.txt # Changes owner to alice\nchown tke:developers file.txt # Changes owner to alice and group to developers<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"199\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-583-1024x199.png\" alt=\"\" class=\"wp-image-16003\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-583-1024x199.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-583-300x58.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-583-768x149.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-583.png 1074w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">6. Special Permissions: Setuid, Setgid, and Sticky Bit<\/h3>\n\n\n\n<p>In addition to standard permissions, Linux offers <strong>special permissions<\/strong> for more control.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Setuid<\/strong><\/h4>\n\n\n\n<p>When applied to a file, Setuid (represented as an <code>s<\/code> in <code>rws<\/code>) allows users to run the file with the file owner\u2019s permissions.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod u+s \/path\/to\/file<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"123\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-586.png\" alt=\"\" class=\"wp-image-16008\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-586.png 956w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-586-300x39.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-586-768x99.png 768w\" sizes=\"auto, (max-width: 956px) 100vw, 956px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Setgid<\/strong><\/h4>\n\n\n\n<p>Setgid (represented as an <code>s<\/code> in <code>rwx<\/code>) allows files created within a directory to inherit the group ID of the directory.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod g+s \/path\/to\/directory<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"971\" height=\"82\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-587.png\" alt=\"\" class=\"wp-image-16009\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-587.png 971w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-587-300x25.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-587-768x65.png 768w\" sizes=\"auto, (max-width: 971px) 100vw, 971px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Sticky Bit<\/strong><\/h4>\n\n\n\n<p>The sticky bit (represented as a <code>t<\/code> in <code>rwx<\/code>) ensures only the file owner or root can delete or modify files in a directory.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +t \/path\/to\/directory<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"633\" height=\"104\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-588.png\" alt=\"\" class=\"wp-image-16010\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-588.png 633w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-588-300x49.png 300w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">7. Examples of Common Permissions Configurations<\/h3>\n\n\n\n<p>Here are a few real-world examples of permissions you might configure on your server:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Private Files (644)<\/strong>: For files like configuration files:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod 644 \/etc\/yourfile.conf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Executable Scripts (755)<\/strong>: To allow only the owner to modify, but others to execute:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod 755 \/usr\/local\/bin\/script.sh<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Secure Directories with Sticky Bit (1777)<\/strong>: For shared directories where users can add files but cannot delete others\u2019 files:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod 1777 \/shared_directory<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">8. Checking Permissions with <code>ls -l<\/code><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To view file permissions, use:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -l filename<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You\u2019ll see the full permission set and ownership:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>-rwsr-Sr-- 1 tke wheel 0 Oct 29 04:51 document.txt<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"133\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-589-1024x133.png\" alt=\"\" class=\"wp-image-16012\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-589-1024x133.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-589-300x39.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-589-768x99.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-589.png 1073w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the above output;\n<ul class=\"wp-block-list\">\n<li><code>-rwsr-Sr--<\/code> represents permissions.<\/li>\n\n\n\n<li><code>tke<\/code> is the user (owner).<\/li>\n\n\n\n<li><code>wheel<\/code> is the group.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">9. Security Tips<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Use Minimal Permissions<\/strong>: Only grant the permissions necessary for a file or directory to function.<\/li>\n\n\n\n<li><strong>Avoid Setting Full Permissions (777)<\/strong>: These allow unrestricted access, which can lead to security issues.<\/li>\n\n\n\n<li><strong>Monitor Sensitive Files<\/strong>: Regularly audit permissions on sensitive files (e.g., <code>\/etc\/passwd<\/code>, <code>\/etc\/shadow<\/code>).<\/li>\n<\/ul>\n\n\n\n<p>Linux file permissions are powerful tools for maintaining security and control. By understanding and carefully managing permissions, administrators can ensure only the necessary access is provided to files and directories, reducing the risk of unauthorized access.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux file permissions are a core part of system security and management, controlling who can read, write, or execute files. Understanding and managing these permissions is essential for every Linux administrator to keep systems secure and well-organized. Here\u2019s a guide on Linux file permissions, the types of permissions, and how to configure them for optimal [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1820,1824,1879,2128],"doc_tag":[],"class_list":["post-15979","docs","type-docs","status-publish","hentry","doc_category-cloud-servers-in-kenya","doc_category-dedicated-servers","doc_category-servers","doc_category-vps-servers"],"year_month":"2026-06","word_count":771,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Eugene","author_nicename":"eugene","author_url":"https:\/\/truehost.com\/support\/author\/eugene\/"},"doc_category_info":[{"term_name":"Cloud servers in Kenya","term_url":"https:\/\/truehost.com\/support\/docs-category\/cloud-servers-in-kenya\/"},{"term_name":"dedicated servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/dedicated-servers\/"},{"term_name":"Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/servers\/"},{"term_name":"VPS-Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/vps-servers\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Understanding Linux File Permissions: What Every Administrator Should Know -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding Linux File Permissions: What Every Administrator Should Know -\" \/>\n<meta property=\"og:description\" content=\"Linux file permissions are a core part of system security and management, controlling who can read, write, or execute files. Understanding and managing these permissions is essential for every Linux administrator to keep systems secure and well-organized. Here\u2019s a guide on Linux file permissions, the types of permissions, and how to configure them for optimal [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-29T09:19:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-580.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/understanding-linux-file-permissions-what-every-administrator-should-know\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/understanding-linux-file-permissions-what-every-administrator-should-know\\\/\",\"name\":\"Understanding Linux File Permissions: What Every Administrator Should Know -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/understanding-linux-file-permissions-what-every-administrator-should-know\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/understanding-linux-file-permissions-what-every-administrator-should-know\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-580.png\",\"datePublished\":\"2024-10-28T13:24:37+00:00\",\"dateModified\":\"2024-10-29T09:19:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/understanding-linux-file-permissions-what-every-administrator-should-know\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/understanding-linux-file-permissions-what-every-administrator-should-know\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/understanding-linux-file-permissions-what-every-administrator-should-know\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-580.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-580.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/understanding-linux-file-permissions-what-every-administrator-should-know\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding Linux File Permissions: What Every Administrator Should Know\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding Linux File Permissions: What Every Administrator Should Know -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/","og_locale":"en_US","og_type":"article","og_title":"Understanding Linux File Permissions: What Every Administrator Should Know -","og_description":"Linux file permissions are a core part of system security and management, controlling who can read, write, or execute files. Understanding and managing these permissions is essential for every Linux administrator to keep systems secure and well-organized. Here\u2019s a guide on Linux file permissions, the types of permissions, and how to configure them for optimal [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/","article_modified_time":"2024-10-29T09:19:08+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-580.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/","name":"Understanding Linux File Permissions: What Every Administrator Should Know -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-580.png","datePublished":"2024-10-28T13:24:37+00:00","dateModified":"2024-10-29T09:19:08+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-580.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-580.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/understanding-linux-file-permissions-what-every-administrator-should-know\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"Understanding Linux File Permissions: What Every Administrator Should Know"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/15979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=15979"}],"version-history":[{"count":13,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/15979\/revisions"}],"predecessor-version":[{"id":16013,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/15979\/revisions\/16013"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=15979"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=15979"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=15979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}