{"id":4408,"date":"2014-09-09T17:40:03","date_gmt":"2014-09-09T14:40:03","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=4408"},"modified":"2014-09-09T17:40:03","modified_gmt":"2014-09-09T14:40:03","slug":"%d0%bd%d0%b0%d1%81%d0%bb%d0%b5%d0%b4%d0%be%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5-acl-%d0%b2-ext4","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=4408","title":{"rendered":"\u041d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 acl \u0432 ext4"},"content":{"rendered":"<p>\u0418 \u0442\u0430\u043a, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e <strong>ACL<\/strong>\u00a0\u0432\u044b \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438. \u041d\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0417\u0434\u0435\u0441\u044c \u043a\u0440\u043e\u0435\u0442\u0441\u044f 2 \u043c\u043e\u043c\u0435\u043d\u0442\u0430: \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u00a0\u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0424\u0421 \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b <strong>ACL<\/strong>.<\/p>\n<p>\u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u0430, \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0424\u0421 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c <strong>bsdgroups<\/strong>:<\/p>\n<p><code># mount -o remount,bsdgroups \/opt<\/code><\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0435\u0441\u0442\u0438 \u043f\u0440\u0430\u0432\u043a\u0438 \u0432 <strong>\/etc\/fstab<\/strong>:<\/p>\n<p><code>\/dev\/sda7\u00a0ext4 errors=remount-ro,acl,bsdgroups 0 1<\/code><\/p>\n<p><!--more--><\/p>\n<p>\u0412\u043e\u0442 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435:<\/p>\n<pre>grpid|bsdgroups and nogrpid|sysvgroups\r\n              These options define what group id a newly  created  file  gets.\r\n              When  grpid  is  set,  it takes the group id of the directory in\r\n              which it is created; otherwise (the default) it takes the  fsgid\r\n              of  the current process, unless the directory has the setgid bit\r\n              set, in which case it takes the gid from the  parent  directory,\r\n              and also gets the setgid bit set if it is a directory itself.<\/pre>\n<p>\u0410 \u0432\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 &#8211; \u044d\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0435 <strong>ACL&#8217;\u044b<\/strong> \u0434\u043b \u0432\u043d\u043e\u0432\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432\/\u043f\u0430\u043f\u043e\u043a:<\/p>\n<p><code># setfacl -Rm d:u::rwx,d:g::rwx,d:o::rx \/opt\/FolderName<\/code><\/p>\n<p>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>-d<\/strong> \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <strong>775<\/strong> \u0434\u043b\u044f \u043f\u0430\u043f\u043e\u043a \u0438 <strong>664<\/strong> \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<p>\u041f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0434\u0435\u043b\u043e, \u0447\u0442\u043e \u043e\u043d\u043e \u043d\u0435 \u0442\u0430\u043a \u0433\u0438\u0431\u043a\u043e, \u043a\u0430\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 <strong>Solaris<\/strong>, \u043d\u043e \u0445\u043e\u0442\u044c \u0447\u0442\u043e-\u0442\u043e.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0418 \u0442\u0430\u043a, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e ACL\u00a0\u0432\u044b \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438. \u041d\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0417\u0434\u0435\u0441\u044c \u043a\u0440\u043e\u0435\u0442\u0441\u044f 2 \u043c\u043e\u043c\u0435\u043d\u0442\u0430: \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u00a0\u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0424\u0421 \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b ACL. \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u0430, \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0424\u0421 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c bsdgroups: # mount -o remount,bsdgroups \/opt \u0422\u0430\u043a \u0436\u0435 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0435\u0441\u0442\u0438 \u043f\u0440\u0430\u0432\u043a\u0438 \u0432 \/etc\/fstab: \/dev\/sda7\u00a0ext4 errors=remount-ro,acl,bsdgroups 0 1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-4408","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4408"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4408\/revisions"}],"predecessor-version":[{"id":4409,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4408\/revisions\/4409"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}