{"id":5551,"date":"2024-10-13T15:08:10","date_gmt":"2024-10-13T09:38:10","guid":{"rendered":"https:\/\/www.veeble.org\/kb\/?p=5551"},"modified":"2025-03-11T11:10:29","modified_gmt":"2025-03-11T05:40:29","slug":"what-do-chmod-755-644-and-others-mean","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/what-do-chmod-755-644-and-others-mean\/","title":{"rendered":"What do CHMOD 755, 644, and Others Mean?"},"content":{"rendered":"\n<p>While operating with file permissions in Linux, one can see that there exist numbers with chmod command: <a href=\"https:\/\/www.javatpoint.com\/what-is-chmod-755\" target=\"_blank\" rel=\"noopener\">chmod 755<\/a>, <a href=\"https:\/\/www.linode.com\/docs\/guides\/modify-file-permissions-with-chmod\/\" target=\"_blank\" rel=\"noopener\">chmod 644<\/a>, etc. The given number is expressed as some settings of permissions regarding files and directories. But that is exactly what? \ud83e\udd14<\/p>\n\n\n\n<p class=\"has-text-align-left\"><strong>Linux file permissions control who can read, write, or execute a file.<\/strong><br>There are three categories of users for each file:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/Analysing-Permissions.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1180\" height=\"276\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/Analysing-Permissions.gif\" alt=\"\" class=\"wp-image-5557\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Owner<\/strong><\/td><td>The person who owns the file.<\/td><\/tr><tr><td><strong>Group<\/strong><\/td><td>Other users who are part of the owner\u2019s group.<\/td><\/tr><tr><td><strong>Others<\/strong><\/td><td>Everyone else.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Permissions are set in three areas\u2014<strong>read<\/strong>, <strong>write<\/strong>, and <strong>execute<\/strong>. <br>Each permission is represented by a number:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\" style=\"border-width:3px\"><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Read (r)<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">4<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Write (w)<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">2<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Execute (x)<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The numbers in the <code>chmod<\/code> command combines these values to define permissions for the owner, group, and others.<\/p>\n\n\n\n<p><\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"breaking-down-755\">Breaking Down 755<\/h3>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/755-meaning-scaled.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"2560\" height=\"444\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/755-meaning-scaled.jpg\" alt=\"755 permission meaning in Linux\" class=\"wp-image-5552\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/755-meaning-scaled.jpg 2560w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/755-meaning-300x52.jpg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/755-meaning-1024x177.jpg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/755-meaning-768x133.jpg 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/755-meaning-1536x266.jpg 1536w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/755-meaning-2048x355.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/figure>\n\n\n\n<p>The number <strong>755<\/strong> in <code>chmod 755<\/code> is divided into three parts, representing permissions for the owner, group, and others:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The first number (7) is for the <strong>owner<\/strong>.<\/li>\n\n\n\n<li>The second number (5) is for the <strong>group<\/strong>.<\/li>\n\n\n\n<li>The third number (5) is for <strong>others<\/strong>.<\/li>\n<\/ul>\n\n\n\n<p>Each number is the sum of the read, write, and execute permissions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/rwx-meaning-in-permissions.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1180\" height=\"276\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/rwx-meaning-in-permissions.gif\" alt=\"\" class=\"wp-image-5555\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>7<\/strong> = 4 (read) + 2 (write) + 1 (execute) = <strong>rwx<\/strong> (full permissions for the owner)<\/li>\n\n\n\n<li><strong>5<\/strong> = 4 (read) + 1 (execute) = <strong>r-x<\/strong> (read and execute for group and others)<\/li>\n<\/ul>\n\n\n\n<p>So, <strong>chmod 755<\/strong> gives full permissions (read, write, execute) to the owner and read\/execute permissions to the group and others.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"other-common-permission-numbers\">Other Common Permission Numbers<\/h3>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>644<\/strong>: The owner can read and write, while the group and others can only read.\n<ul class=\"wp-block-list\">\n<li><strong>6<\/strong> = 4 (read) + 2 (write) = <strong>rw-<\/strong><\/li>\n\n\n\n<li><strong>4<\/strong> = 4 (read) = <strong>r&#8211;<\/strong><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>600<\/strong>: Only the owner can read and write; the group and others have no permissions.\n<ul class=\"wp-block-list\">\n<li><strong>6<\/strong> = 4 (read) + 2 (write) = <strong>rw-<\/strong><\/li>\n\n\n\n<li><strong>0<\/strong> = No permissions<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"how-to-use-chmod\">How to Use chmod<\/h3>\n\n\n<p>To apply these permissions, you use the <code>chmod<\/code> command followed by the number and the file or directory name:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod 755 filename<\/code><\/pre>\n\n\n\n<p>This command will apply the specified permissions to the file or directory.<\/p>\n\n\n\n<div class=\"wp-block-uagb-separator uagb-block-4700ec09\"><div class=\"wp-block-uagb-separator__inner\" style=\"--my-background-image:\"><\/div><\/div>\n\n\n\n<p>Understanding numeric file permissions in Linux helps you efficiently manage who can access or modify files. The numbers 755, 644, and others are simple ways to define permissions for the owner, group, and others based on read, write, and execute rights. By mastering this system, you can easily control file access on your system.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-veeble-hosting wp-block-embed-veeble-hosting\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.veeble.org\/kb\/change-permissions-with-chmod-in-linux-recursively\n<\/div><\/figure>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-97854e50 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Reliable Hosting Solutions<\/h3><p class=\"uagb-cta__desc\">Trust in our dependable cPanel hosting. We provide a stable and secure environment for your website, ensuring minimal downtime. Enjoy peace of mind with our expert support.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/cpanel-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Choose Your Plan<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Are you having doubts in setting permissions using numeric values using the chmod command? Understand with ease with this small tutorial.<\/p>\n","protected":false},"author":7,"featured_media":7992,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5],"tags":[],"class_list":["post-5551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/What-do-CHMOD-755-644-and-Others-Mean.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/What-do-CHMOD-755-644-and-Others-Mean-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/What-do-CHMOD-755-644-and-Others-Mean-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/What-do-CHMOD-755-644-and-Others-Mean-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/What-do-CHMOD-755-644-and-Others-Mean-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/What-do-CHMOD-755-644-and-Others-Mean.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/What-do-CHMOD-755-644-and-Others-Mean.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Adrian Antony","author_link":"https:\/\/www.veeble.com\/kb\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"Are you having doubts in setting permissions using numeric values using the chmod command? Understand with ease with this small tutorial.","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/5551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=5551"}],"version-history":[{"count":11,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/5551\/revisions"}],"predecessor-version":[{"id":7605,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/5551\/revisions\/7605"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/7992"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=5551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=5551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=5551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}