{"id":112,"date":"2013-10-14T22:46:00","date_gmt":"2013-10-14T22:46:00","guid":{"rendered":"http:\/\/286@jodohost.com\/\/blog\/"},"modified":"2013-10-14T22:46:00","modified_gmt":"2013-10-14T22:46:00","slug":"restricting-a-file-or-directory-using-the-access-control-list","status":"publish","type":"post","link":"http:\/\/www.jodohost.com\/blog\/index.php\/2013\/10\/14\/restricting-a-file-or-directory-using-the-access-control-list\/","title":{"rendered":"Restricting a File or Directory using the Access Control List"},"content":{"rendered":"<p>ACL is the access control list for a specific file or directory. By default an ACL is associated with a directory and the files inside that directory inherit the ACL of the directory, if the files don&#8217;t have any ACL set explicitly. With the help of ACLs we can control the access to files and directories.<\/p>\n<p>To set the ACL, we can use the command below:-<\/p>\n<p>setfacl -m <rules> <files><\/p>\n<p>For example:-<\/p>\n<p>setfacl -m u:sachin:rw \/home\/somefile.txt<\/p>\n<p>To remove the ACL from a file or directory, we can use the command below:-<\/p>\n<p>setfacl -x u:sachin \/home\/somefile<\/p>\n<p> ]]><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ACL is the access control list for a specific file or directory. By default an ACL is associated with a directory and the files inside that directory inherit the ACL of the directory, if the files don&#8217;t have any ACL set explicitly. With the help of ACLs we can control the access to files and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/112"}],"collection":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":0,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}