{"id":1802,"date":"2010-12-13T21:17:48","date_gmt":"2010-12-13T12:17:48","guid":{"rendered":"http:\/\/oichinote.com\/plus\/2010\/12\/13\/ubuntu-10-04%e3%81%a7acl%e3%82%92%e6%9c%89%e5%8a%9f%e3%81%ab%e3%81%99%e3%82%8b\/"},"modified":"2012-06-06T00:43:47","modified_gmt":"2012-06-05T15:43:47","slug":"ubuntu-1004acl","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2010\/12\/ubuntu-1004acl.html","title":{"rendered":"Ubuntu 10.04\u3067ACL\u3092\u6709\u52b9\u306b\u3059\u308b"},"content":{"rendered":"<p>ACL\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u8abf\u3079\u307e\u3057\u305f\u3002\u7c21\u5358\u306b\u6709\u52b9\u5316\u3067\u304d\u308b\u69d8\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002Thank you.<\/p>\n<ul>\n<li><a href=\"http:\/\/axela5004.blog74.fc2.com\/blog-entry-404.html\" target=\"_blank\">\u30a2\u30af\u30bb\u30e9\u3068\uff0b\u03b1\u306a\u751f\u6d3b :\u00a0 Ubuntu 9.04 \u306b ACL \u3092\u8a2d\u5b9a\u3057\u3066\u307f\u308b\u3002<\/a><\/li>\n<li><a href=\"http:\/\/beginlinux.com\/server_training\/server-managment-topics\/1038-ubuntu-804-access-control-lists\" target=\"_blank\">Ubuntu Access Control Lists<\/a><\/li>\n<\/ul>\n<p>\u6b21\u306e\u624b\u9806\u3067\u3059\u3002<\/p>\n<ol>\n<li>ACL\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li>\/etc\/fstab\u7de8\u96c6<\/li>\n<li>remount\u307e\u305f\u306freboot<\/li>\n<\/ol>\n<p>\u5de5\u7a0b1\u3067\u3059\u3002ACL\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre>$ sudo apt-get install acl<\/pre>\n<p>\u5de5\u7a0b2\u3067\u3059\u3002\/etc\/fstab\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre>$ sudo vi \/etc\/fstab<\/pre>\n<p>\/home\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u3001ACL\u3092\u8a2d\u5b9a\u3059\u308b\u7269\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre>UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \/home ext4 defaults,user_xattr<span style=\"color: #33ff00;\">,acl<\/span> 0 2<\/pre>\n<p>user_xattr\u306f\u3001\u62e1\u5f35\u5c5e\u6027\u3067\u3059\u3002\u6b21\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u4e0b\u3055\u3044\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2010\/11\/ubuntu-1004-b71.html\" rel=\"_RAclick\">Ubuntu 10.04\u3067\u62e1\u5f35\u5c5e\u6027\u3092\u6709\u52b9\u306b\u3059\u308b: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a><\/li>\n<\/ul>\n<p>\u5de5\u7a0b3\u3067\u3059\u3002remount\u304breboot\u3092\u3057\u3066\u3001\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>$ sudo mount -o remount \/home<\/pre>\n<p>\u6b63\u3057\u304fmount\u3067\u304d\u3066\u3044\u308b\u304b\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u306a\u3057\u3067\u3001mount\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>$ mount\r\n(\u7701\u7565)\r\n\/dev\/hda16 on \/home type ext4 (rw,user_xattr,acl)\r\n(\u7701\u7565)<\/pre>\n<p>\u6b21\u306b\u3001ACL\u3092\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3059\u3002setfacl\u3067-m(modify)\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3044\u307e\u3059\u3002\u6b21\u306b\u793a\u3059\u306e\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u3067\u3059\u304c\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>$ setfacl -m u:john:rwx hello.sh<\/pre>\n<p>ls -l\u3067\u898b\u308b\u3068\u3001\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u5f8c\u308d\u306b\u3001&#8221;+&#8221;\u304c\u4ed8\u3044\u3066\u3044\u308b\u4e8b\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre>$ ls -l hello.sh\r\n-rwxrwx---<span style=\"color: #33ff00;\">+<\/span> 1 user group 31 2010-12-13 20:46 hello.sh<\/pre>\n<p>\u8a2d\u5b9a\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001getfacl\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>$ getfacl hello.sh\r\n# file: hello.sh\r\n# owner: user\r\n# group: group\r\nuser::rwx\r\nuser:john:rwx\r\ngroup::r-x\r\nmask::rwx\r\nother::---<\/pre>\n<p>john\u306b\u4e0e\u3048\u305f\u8a31\u53ef\u3092\u6d88\u3059\u306b\u306f\u3001-x\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>$ setfacl -x u:john hello.sh<\/pre>\n<p>ACL\u5c5e\u6027\u3092\u3059\u3079\u3066\u6d88\u3059\u306b\u306f\u3001-b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>$ setfacl -b hello.sh<\/pre>\n<p>\u4ed6\u306b\u3082\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308b\u306e\u3067\u3001man setfacl\u3067\u898b\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p>\u91cd\u8981\u306a\u60c5\u5831\u304c\u3042\u308a\u307e\u3059\u3002Ubuntu\u3060\u3068\u3001tar\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u3068\u304d\u3001ACL\u5c5e\u6027\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3067\u304d\u307e\u305b\u3093\u3002\u5143\u306e\u60c5\u5831(<a href=\"http:\/\/beginlinux.com\/server_training\/server-managment-topics\/1038-ubuntu-804-access-control-lists\" target=\"_blank\">Ubuntu Access Control Lists<\/a>)\u306f\u30018.10\u3067\u3057\u305f\u304c\u300110.04\u3067\u3082\u540c\u69d8\u3067\u3057\u305f\uff08\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff09\u3002<\/p>\n<p><a href=\"http:\/\/beginlinux.com\/server_training\/server-managment-topics\/1038-ubuntu-804-access-control-lists\" target=\"_blank\">Ubuntu Access Control Lists<\/a>\u306b\u3088\u308b\u3068\u3001Redhat\/Cent OS\u306f\u3001ACL\u60c5\u5831\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3067\u304d\u308b\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ACL\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u8abf\u3079\u307e\u3057\u305f\u3002\u7c21\u5358\u306b\u6709\u52b9\u5316\u3067\u304d\u308b\u69d8\u3067\u3059\u3002 \u6b21\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002Thank you. \u30a2\u30af\u30bb\u30e9\u3068\uff0b\u03b1\u306a\u751f\u6d3b :\u00a0 Ubuntu 9.04 \u306b ACL \u3092\u8a2d\u5b9a\u3057\u3066\u307f\u308b\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300eUbuntu 10.04\u3067ACL\u3092\u6709\u52b9\u306b\u3059\u308b\u300f\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[],"class_list":["post-1802","post","type-post","status-publish","format-standard","hentry","category-computer"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":1779,"url":"https:\/\/oichinote.com\/plus\/2010\/11\/ubuntu-1004-b71.html","url_meta":{"origin":1802,"position":0},"title":"Ubuntu 10.04\u3067\u62e1\u5f35\u5c5e\u6027\u3092\u6709\u52b9\u306b\u3059\u308b","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2010\u5e7411\u670820\u65e5","format":false,"excerpt":"Snow Leopard\u304b\u3089\u3001Ubuntu 10.04\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fNetatalk\u306e\u30c7\u30a3\u30b9\u30af\u306b\u2026","rel":"","context":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","block_context":{"text":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","link":"https:\/\/oichinote.com\/plus\/category\/computer"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1850,"url":"https:\/\/oichinote.com\/plus\/2011\/01\/ubuntu-1004neta.html","url_meta":{"origin":1802,"position":1},"title":"Ubuntu 10.04\u306bnetatalk 2.2beta1\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u30fb\u8a02\u6b63\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2011\u5e741\u670830\u65e5","format":false,"excerpt":"netatalk 2.2beta1\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u4e00\u5fdc\u3001ACL\u5bfe\u5fdc\u3067\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1884,"url":"https:\/\/oichinote.com\/plus\/2011\/03\/ubuntu-1004neta.html","url_meta":{"origin":1802,"position":2},"title":"Ubuntu 10.04\u306bnetatalk 2.2beta2\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2011\u5e743\u67085\u65e5","format":false,"excerpt":"netatalk 2.2beta2\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u3068\u3001HAT\u3055\u3093\u304b\u3089\u30b3\u30e1\u30f3\u30c8\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u30a4\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1894,"url":"https:\/\/oichinote.com\/plus\/2011\/03\/ubuntu-1004ne-1.html","url_meta":{"origin":1802,"position":3},"title":"Ubuntu 10.04\u306bnetatalk 2.2beta3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2011\u5e743\u670813\u65e5","format":false,"excerpt":"\u88ab\u707d\u3055\u308c\u305f\u5730\u57df\u306e\u65b9\u306b\u306f\u3001\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u666e\u6bb5\u901a\u308a\u306bMac\u304c\u4f7f\u3048\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3001\u96fb\u529b\u4f9b\u7d66\u304c\u5fc3\u914d\u306a\u306e\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1803,"url":"https:\/\/oichinote.com\/plus\/2010\/12\/ubuntu-1004ne-1-2.html","url_meta":{"origin":1802,"position":4},"title":"Ubuntu 10.04\u306bnetatalk 2.2alpha4\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(ACL\u5bfe\u5fdc\u3067\u30b3\u30f3\u30d1\u30a4\u30eb)","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2010\u5e7412\u670814\u65e5","format":false,"excerpt":"netatalk 2.2\u3067\u306f\u3001LDAP\u904b\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306fACL\u304c\u52d5\u4f5c\u3059\u308b\u3068\u306e\u4e8b\u306a\u306e\u3067\u3001ACL\u5bfe\u5fdc\u3092\u8a66\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1921,"url":"https:\/\/oichinote.com\/plus\/2011\/04\/ubuntu-1004neta.html","url_meta":{"origin":1802,"position":5},"title":"Ubuntu 10.04\u306bnetatalk 2.2beta4\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2011\u5e744\u67089\u65e5","format":false,"excerpt":"netatalk 2.2beta4\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002 \u72b6\u6cc1\u306f\u3001beta\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/1802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/comments?post=1802"}],"version-history":[{"count":2,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/1802\/revisions"}],"predecessor-version":[{"id":2773,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/1802\/revisions\/2773"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=1802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=1802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=1802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}