{"id":316,"date":"2012-06-18T16:58:40","date_gmt":"2012-06-18T08:58:40","guid":{"rendered":"http:\/\/rmohan.com\/?p=316"},"modified":"2012-06-18T16:58:40","modified_gmt":"2012-06-18T08:58:40","slug":"file-folder-permissions","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=316","title":{"rendered":"File \/Folder Permissions"},"content":{"rendered":"<p><strong>File \/Folder Permissions<\/strong><\/p>\n<p>These are the numeric values and its related permissions in a linux system.<\/p>\n<p>4000 &#8211; Setuid on execution<br \/>\n2000 &#8211; setgid on execution<br \/>\n1000 &#8211; set sticky bit<br \/>\n0400 &#8211; read by owner<br \/>\n0200 &#8211; write by owner<br \/>\n0100 &#8211; execute by owner<br \/>\n0040 &#8211; read by group<br \/>\n0020 &#8211; wrrite by group<br \/>\n0010 &#8211; execute by group<br \/>\n0004 &#8211; read by others<br \/>\n0002 &#8211; write by others<br \/>\n0001 &#8211; execute by others<\/p>\n<p>The chmod numeric value varies from 0000 to 7777<\/p>\n<p>You can use these or combination of these numeric values with chmod command or you can specify it with strings. While specifying with strings use the following arguments..<br \/>\nu &#8211; user &#8211; to add\/remove permissions of user or owner of file.<br \/>\ng &#8211; group &#8211; to add\/remove permissions of group members of file.<br \/>\no &#8211; other &#8211; to add\/remove permissions of other group members or world wide permission of file.<\/p>\n<p>Eg:<br \/>\nThe following commands will enable the setuid on the file abc.pl<br \/>\nchmod 4755 abc.pl<br \/>\nchmod u+s abc.pl <\/p>\n","protected":false},"excerpt":{"rendered":"<p>File \/Folder Permissions<\/p>\n<p>These are the numeric values and its related permissions in a linux system.<\/p>\n<p>4000 &#8211; Setuid on execution 2000 &#8211; setgid on execution 1000 &#8211; set sticky bit 0400 &#8211; read by owner 0200 &#8211; write by owner 0100 &#8211; execute by owner 0040 &#8211; read by group 0020 &#8211; wrrite by [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/316"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=316"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/316\/revisions"}],"predecessor-version":[{"id":317,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/316\/revisions\/317"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}