{"id":263,"date":"2016-05-24T23:56:35","date_gmt":"2016-05-24T16:56:35","guid":{"rendered":"http:\/\/www.rickyadams.com\/wp\/?p=263"},"modified":"2017-03-10T05:57:01","modified_gmt":"2017-03-09T22:57:01","slug":"linux-chmod-file-permission-secret-coding-from-the-1970s","status":"publish","type":"post","link":"https:\/\/www.rickyadams.com\/wp\/linux-chmod-file-permission-secret-coding-from-the-1970s\/","title":{"rendered":"Linux CHMOD File Permission Secret Coding from the 1970s"},"content":{"rendered":"<p>CHEATER CALCULATOR &#8212; &gt; <a href=\"http:\/\/chmod-calculator.com\/\" target=\"_blank\">http:\/\/chmod-calculator.com\/<\/a><\/p>\n<p>chmod owner|group|world filename<\/p>\n<p>Numeric equivalents (octal) based on the table below:<\/p>\n<p>4 read (r)<br \/>\n2 write (w)<br \/>\n1 execute (x)<\/p>\n<p>Practical Examples:<br \/>\nchmod 400 mydoc.txt read by owner<br \/>\nchmod 040 mydoc.txt read by group<br \/>\nchmod 004 mydoc.txt read by everyone<br \/>\nchmod 200 mydoc.txt write by owner<br \/>\nchmod 020 mydoc.txt write by group<br \/>\nchmod 002 mydoc.txt write by everyone<br \/>\nchmod 100 mydoc.txt execute by owner<br \/>\nchmod 010 mydoc.txt execute by group<br \/>\nchmod 001 mydoc.txt execute by everyone<\/p>\n<p>Adding up the numbers to get other types of permissions:<br \/>\n7 = 4+2+1 (read\/write\/execute)<br \/>\n6 = 4+2 (read\/write)<br \/>\n5 = 4+1 (read\/execute)<br \/>\n4 = 4 (read)<br \/>\n3 = 2+1 (write\/execute)<br \/>\n2 = 2 (write)<br \/>\n1 = 1 (execute)<\/p>\n<p>chmod 666 mydoc.txt read\/write by everyone<br \/>\nchmod 755 mydoc.txt rwx for owner, rx for group and rx for the world<br \/>\nchmod 777 mydoc.txt read, write, execute for all<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CHEATER CALCULATOR &#8212; &gt; http:\/\/chmod-calculator.com\/ chmod owner|group|world filename Numeric equivalents (octal) based on the table below: 4 read (r) 2 write (w) 1 execute (x) Practical Examples: chmod 400 mydoc.txt read by owner chmod 040 mydoc.txt read by group chmod 004 mydoc.txt read by everyone chmod 200 mydoc.txt write by owner chmod 020 mydoc.txt write by group chmod 002 mydoc.txt write by everyone chmod 100 mydoc.txt execute by owner chmod 010 mydoc.txt execute by group chmod 001 mydoc.txt execute by&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.rickyadams.com\/wp\/linux-chmod-file-permission-secret-coding-from-the-1970s\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,1],"tags":[],"class_list":["post-263","post","type-post","status-publish","format-standard","hentry","category-linux","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/comments?post=263"}],"version-history":[{"count":5,"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/posts\/263\/revisions"}],"predecessor-version":[{"id":475,"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/posts\/263\/revisions\/475"}],"wp:attachment":[{"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/media?parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/categories?post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/tags?post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}