{"id":1326,"date":"2011-08-20T00:00:23","date_gmt":"2011-08-19T16:00:23","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=1326"},"modified":"2023-04-28T09:50:02","modified_gmt":"2023-04-28T09:50:02","slug":"how-to-use-chmod-command-to-change-linux-file-permissions","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-use-chmod-command-to-change-linux-file-permissions\/","title":{"rendered":"How to Use chmod Command to Change Linux File Permissions"},"content":{"rendered":"<p>In this post, i will share with you the basic chmod command usage to change linux file permission. This was tested on CentOS 5.5.<\/p>\n<p><strong>Who &#8211; ugoa controls :<\/strong><\/p>\n<pre class=\"code\">u = Owner\ng = Users in the Group\no = Other users not in the group\na = All users\/Everyone<\/pre>\n<p><strong>Permission :<\/strong><\/p>\n<pre class=\"code\">r = Read\nw = Write\nx = Execute<\/pre>\n<p><strong>Opcode :<\/strong><\/p>\n<pre class=\"code\">+ --&gt; Add permission.\n- --&gt; Remove permission.\n= --&gt; Assign permission<\/pre>\n<p><strong>Samples:<\/strong><\/p>\n<pre class=\"code\">Allow execute permission to everyone:\nchmod a+x samplesfiles.txt\n\nDeny execute permission to everyone:\nchmod a-x samplesfiles.txt\n\nAllow read permission to everyone:\nchmod a+r samplesfiles.txt\n\nDeny read permission to everyone:\nchmod a-r samplesfiles.txt\n\nAllow write and execute permission to everyone:\nchmod a+wx samplesfiles.txt\n\nDeny write and execute permission to everyone:\nchmod a-wx samplesfiles.txt\n\nMake a file readable and writable by the group and others:\nchmod go+rw samplesfiles.txt<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In this post, i will share with you the basic chmod command usage to change linux file permission. This was tested on CentOS 5.5. Who &#8211; ugoa controls : u&#8230;<\/p>\n","protected":false},"author":6,"featured_media":323,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[996],"tags":[1246,1279,1536,2070],"class_list":["post-1326","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-centos-5-5","tag-chmod-command","tag-linux","tag-permissions"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=1326"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1326\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/323"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=1326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=1326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=1326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}