{"id":42549,"date":"2025-06-24T12:59:41","date_gmt":"2025-06-24T03:59:41","guid":{"rendered":"https:\/\/jouhou.main.jp\/?p=42549"},"modified":"2026-01-21T12:11:04","modified_gmt":"2026-01-21T03:11:04","slug":"ubuntu-eacces-13-%e5%af%be%e7%ad%96%ef%bc%9a%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e6%8b%92%e5%90%a6%e3%82%a8%e3%83%a9%e3%83%bc%e3%80%8cpermission-denied%e3%80%8d%e7%99%ba%e7%94%9f%e6%99%82%e3%81%ae","status":"publish","type":"post","link":"https:\/\/jouhou.main.jp\/?p=42549","title":{"rendered":"Ubuntu EACCES (13) \u5bfe\u7b56\uff1a\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u30a8\u30e9\u30fc\u300cPermission denied\u300d\u767a\u751f\u6642\u306e\u6a29\u9650\u8a2d\u5b9a\u3068\u5bfe\u7b56\u7de8"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"42549\" class=\"elementor elementor-42549\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4d22ede elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4d22ede\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f5e4b0d\" data-id=\"f5e4b0d\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1034f95 elementor-widget elementor-widget-html\" data-id=\"1034f95\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<!-- \u25bc\u25bc\u25bc \u30d5\u30a1\u30fc\u30b9\u30c8\u30d3\u30e5\u30fc\uff1a\u6700\u77ed\u30c1\u30a7\u30c3\u30af\u67a0\uff08\u72ed\u3044\u5e45\u3067\u3082\u53f3\u304c\u5207\u308c\u306a\u3044\uff0b\u5931\u6557\u30ea\u30b9\u30af\u6b04\u3042\u308a\uff09 \u25bc\u25bc\u25bc -->\r\n<section aria-label=\"Permission denied \u6700\u77ed\u30c1\u30a7\u30c3\u30af\" style=\"margin:16px 0;max-width:100%;\">\r\n  <div style=\"\r\n    box-sizing:border-box;\r\n    max-width:100%;\r\n    border:1px solid #e5e7eb;\r\n    border-radius:18px;\r\n    background:#ffffff;\r\n    box-shadow:0 8px 22px rgba(0,0,0,0.06);\r\n    overflow:visible;\r\n  \">\r\n    <div style=\"padding:16px 18px 12px;border-bottom:1px solid #eef2f7;background:#f9fafb;box-sizing:border-box;\">\r\n      <div style=\"display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;\">\r\n        <span style=\"\r\n          display:inline-block;\r\n          padding:6px 10px;\r\n          border-radius:999px;\r\n          background:#111827;\r\n          color:#ffffff;\r\n          font-size:12px;\r\n          line-height:1;\r\n          letter-spacing:0.03em;\r\n          max-width:100%;\r\n          overflow-wrap:anywhere;\r\n        \">\u6700\u77ed\u30c1\u30a7\u30c3\u30af<\/span>\r\n        <h2 style=\"margin:0;font-size:18px;line-height:1.35;color:#111827;max-width:100%;overflow-wrap:anywhere;\">\r\n          Ubuntu\u300cPermission denied\u300d\u307e\u305a\u3053\u3053\u3060\u3051\uff0830\u79d2\u3067\u5207\u308a\u5206\u3051\uff09\r\n        <\/h2>\r\n      <\/div>\r\n      <p style=\"margin:8px 0 0;font-size:14px;line-height:1.7;color:#374151;max-width:100%;overflow-wrap:anywhere;\">\r\n        \u3044\u307e\u306e\u62d2\u5426\u304c<strong style=\"color:#111827;\">\u300c\u8ab0\u306e\u6a29\u9650\u300d<\/strong>\u3067\r\n        <strong style=\"color:#111827;\">\u300c\u3069\u3053\u3067\u300d<\/strong>\u6b62\u307e\u3063\u3066\u3044\u308b\u304b\u3092\u5148\u306b\u7279\u5b9a\u3057\u307e\u3059\u3002\r\n        \u76f4\u3059\u524d\u306b\u539f\u56e0\u3092\u7d5e\u308b\u3068\u3001\u4f59\u8a08\u306a\u6a29\u9650\u62e1\u5927\u3092\u907f\u3051\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\r\n      <\/p>\r\n    <\/div>\r\n\r\n    <div style=\"padding:14px 14px 6px;box-sizing:border-box;max-width:100%;\">\r\n      <div style=\"display:grid;grid-template-columns:1fr;gap:12px;max-width:100%;\">\r\n\r\n        <!-- \u2460 30\u79d2\u3067\u539f\u56e0\u3092\u7d5e\u308b -->\r\n        <div style=\"border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#ffffff;box-sizing:border-box;max-width:100%;\">\r\n          <div style=\"display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;min-width:0;max-width:100%;\">\r\n            <div style=\"\r\n              width:34px;height:34px;flex:0 0 34px;\r\n              border-radius:10px;background:#111827;color:#ffffff;\r\n              display:flex;align-items:center;justify-content:center;\r\n              font-weight:700;font-size:14px;\r\n            \">\u2460<\/div>\r\n            <div style=\"min-width:0;max-width:100%;overflow-wrap:anywhere;\">\r\n              <h3 style=\"margin:0 0 6px;font-size:15px;line-height:1.4;color:#111827;overflow-wrap:anywhere;\">\r\n                30\u79d2\u3067\u539f\u56e0\u3092\u7d5e\u308b\uff08\u8aad\u3080\u3060\u3051\u3067OK\uff09\r\n              <\/h3>\r\n              <p style=\"margin:0 0 10px;font-size:13px;line-height:1.7;color:#374151;overflow-wrap:anywhere;\">\r\n                \u300c\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u300d\u3068\u300c\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u63a2\u7d22\uff08x\uff09\u300d\u3092\u5148\u306b\u898b\u307e\u3059\u3002\r\n              <\/p>\r\n              <pre style=\"\r\n                margin:0;\r\n                padding:10px 12px;\r\n                border-radius:12px;\r\n                background:#0b1020;\r\n                color:#e5e7eb;\r\n                max-width:100%;\r\n                box-sizing:border-box;\r\n                white-space:pre-wrap;\r\n                overflow-wrap:anywhere;\r\n                word-break:break-word;\r\n                overflow:auto;\r\n                font-size:12.5px;\r\n                line-height:1.6;\r\n              \">id\r\nnamei -l \/path\/to\/target\r\nls -ld \/path \/path\/to \/path\/to\/target 2>\/dev\/null<\/pre>\r\n              <p style=\"margin:10px 0 0;font-size:12.5px;line-height:1.7;color:#6b7280;overflow-wrap:anywhere;\">\r\n                \u898b\u308b\u30dd\u30a4\u30f3\u30c8\uff1a<strong style=\"color:#111827;\">\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u300cx\u300d<\/strong>\u3068\u3001<strong style=\"color:#111827;\">\u5b9f\u884cUID\/GID<\/strong>\r\n              <\/p>\r\n            <\/div>\r\n          <\/div>\r\n        <\/div>\r\n\r\n        <!-- \u2461 \u75c7\u72b6\u5225\u306e\u6700\u77ed\u30b3\u30de\u30f3\u30c9 -->\r\n        <div style=\"border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#ffffff;box-sizing:border-box;max-width:100%;\">\r\n          <div style=\"display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;min-width:0;max-width:100%;\">\r\n            <div style=\"\r\n              width:34px;height:34px;flex:0 0 34px;\r\n              border-radius:10px;background:#2563eb;color:#ffffff;\r\n              display:flex;align-items:center;justify-content:center;\r\n              font-weight:700;font-size:14px;\r\n            \">\u2461<\/div>\r\n            <div style=\"min-width:0;max-width:100%;overflow-wrap:anywhere;\">\r\n              <h3 style=\"margin:0 0 6px;font-size:15px;line-height:1.4;color:#111827;overflow-wrap:anywhere;\">\r\n                \u75c7\u72b6\u5225\uff1a\u3044\u307e\u306e\u5931\u6557\u306b\u5408\u3046\u6700\u77ed\u30b3\u30de\u30f3\u30c9\r\n              <\/h3>\r\n\r\n              <div style=\"display:grid;grid-template-columns:1fr;gap:10px;margin-top:10px;max-width:100%;\">\r\n                <div style=\"border:1px solid #eef2f7;border-radius:14px;padding:10px;background:#f9fafb;box-sizing:border-box;max-width:100%;\">\r\n                  <p style=\"margin:0 0 6px;font-size:13px;line-height:1.6;color:#111827;overflow-wrap:anywhere;\">\r\n                    <strong>\u8aad\u3080\u6a29\u9650\u3067\u5931\u6557<\/strong>\uff08cat\/grep\/cp \u304c\u62d2\u5426\uff09\r\n                  <\/p>\r\n                  <pre style=\"margin:0;padding:8px 10px;border-radius:10px;background:#111827;color:#f9fafb;max-width:100%;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;overflow:auto;font-size:12.5px;line-height:1.6;\">stat \/path\/to\/target\r\ngetfacl \/path\/to\/target 2>\/dev\/null<\/pre>\r\n                <\/div>\r\n\r\n                <div style=\"border:1px solid #eef2f7;border-radius:14px;padding:10px;background:#f9fafb;box-sizing:border-box;max-width:100%;\">\r\n                  <p style=\"margin:0 0 6px;font-size:13px;line-height:1.6;color:#111827;overflow-wrap:anywhere;\">\r\n                    <strong>\u66f8\u304f\u6a29\u9650\u3067\u5931\u6557<\/strong>\uff08\u30ed\u30b0\/touch\/\u30ea\u30cd\u30fc\u30e0\u304c\u62d2\u5426\uff09\r\n                  <\/p>\r\n                  <pre style=\"margin:0;padding:8px 10px;border-radius:10px;background:#111827;color:#f9fafb;max-width:100%;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;overflow:auto;font-size:12.5px;line-height:1.6;\">ls -ld \/path\/to\/dir\r\ntouch \/path\/to\/dir\/.perm_test 2>&1 | tail -n 1<\/pre>\r\n                <\/div>\r\n\r\n                <div style=\"border:1px solid #eef2f7;border-radius:14px;padding:10px;background:#f9fafb;box-sizing:border-box;max-width:100%;\">\r\n                  <p style=\"margin:0 0 6px;font-size:13px;line-height:1.6;color:#111827;overflow-wrap:anywhere;\">\r\n                    <strong>\u5b9f\u884c\u3067\u5931\u6557<\/strong>\uff08.\/app \u304c\u62d2\u5426\uff09\r\n                  <\/p>\r\n                  <pre style=\"margin:0;padding:8px 10px;border-radius:10px;background:#111827;color:#f9fafb;max-width:100%;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;overflow:auto;font-size:12.5px;line-height:1.6;\">ls -l .\/app\r\nmount | grep -E \"noexec|ro\" | head<\/pre>\r\n                <\/div>\r\n\r\n                <div style=\"border:1px solid #eef2f7;border-radius:14px;padding:10px;background:#f9fafb;box-sizing:border-box;max-width:100%;\">\r\n                  <p style=\"margin:0 0 6px;font-size:13px;line-height:1.6;color:#111827;overflow-wrap:anywhere;\">\r\n                    <strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u63a2\u7d22\u3067\u5931\u6557<\/strong>\uff08cd\u4e0d\u53ef\uff0f\u9014\u4e2d\u3067\u6b62\u307e\u308b\uff09\r\n                  <\/p>\r\n                  <pre style=\"margin:0;padding:8px 10px;border-radius:10px;background:#111827;color:#f9fafb;max-width:100%;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;overflow:auto;font-size:12.5px;line-height:1.6;\">namei -l \/path\/to\/target\r\nls -ld \/ \/path \/path\/to<\/pre>\r\n                <\/div>\r\n              <\/div>\r\n\r\n              <p style=\"margin:10px 0 0;font-size:12.5px;line-height:1.7;color:#6b7280;overflow-wrap:anywhere;\">\r\n                \u307e\u305a\u300c\u3069\u306e\u75c7\u72b6\u304b\u300d\u3092\u9078\u3073\u3001<strong style=\"color:#111827;\">\u5f53\u3066\u306f\u307e\u308b\u67a0\u3060\u3051<\/strong>\u8a66\u3059\u306e\u304c\u6700\u77ed\u3067\u3059\u3002\r\n              <\/p>\r\n            <\/div>\r\n          <\/div>\r\n        <\/div>\r\n\r\n        <!-- \u2462 \u76f4\u3059\u524d\u306e\u5b89\u5168\u78ba\u8a8d\uff08\u5f71\u97ff\u7bc4\u56f2\uff09 -->\r\n        <div style=\"border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#ffffff;box-sizing:border-box;max-width:100%;\">\r\n          <div style=\"display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;min-width:0;max-width:100%;\">\r\n            <div style=\"\r\n              width:34px;height:34px;flex:0 0 34px;\r\n              border-radius:10px;background:#10b981;color:#ffffff;\r\n              display:flex;align-items:center;justify-content:center;\r\n              font-weight:700;font-size:14px;\r\n            \">\u2462<\/div>\r\n            <div style=\"min-width:0;max-width:100%;overflow-wrap:anywhere;\">\r\n              <h3 style=\"margin:0 0 6px;font-size:15px;line-height:1.4;color:#111827;overflow-wrap:anywhere;\">\r\n                \u76f4\u3059\u524d\u306b\uff1a\u5f71\u97ff\u7bc4\u56f2\u30921\u5206\u3067\u78ba\u8a8d\uff08\u3084\u308a\u904e\u304e\u9632\u6b62\uff09\r\n              <\/h3>\r\n              <p style=\"margin:0 0 10px;font-size:13px;line-height:1.7;color:#374151;overflow-wrap:anywhere;\">\r\n                \u3044\u304d\u306a\u308a\u6a29\u9650\u3092\u5e83\u3052\u308b\u3068\u3001\u5225\u30b5\u30fc\u30d3\u30b9\u505c\u6b62\u3084\u76e3\u67fb\u30fb\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u554f\u984c\u306b\u7e4b\u304c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\r\n                \u5909\u66f4\u524d\u306b\u300c\u3069\u3053\u307e\u3067\u52b9\u304f\u304b\u300d\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u6700\u5c0f\u5909\u66f4\u3078\u3002\r\n              <\/p>\r\n              <pre style=\"\r\n                margin:0;\r\n                padding:10px 12px;\r\n                border-radius:12px;\r\n                background:#0b1020;\r\n                color:#e5e7eb;\r\n                max-width:100%;\r\n                box-sizing:border-box;\r\n                white-space:pre-wrap;\r\n                overflow-wrap:anywhere;\r\n                word-break:break-word;\r\n                overflow:auto;\r\n                font-size:12.5px;\r\n                line-height:1.6;\r\n              \">lsof | grep \"\/path\/to\" | head\r\nsystemctl show &lt;service&gt; -p User -p Group -p UMask -p ProtectSystem -p ProtectHome 2&gt;\/dev\/null<\/pre>\r\n            <\/div>\r\n          <\/div>\r\n        <\/div>\r\n\r\n        <!-- \u2605 \u5931\u6557\u30ea\u30b9\u30af\uff08\u5fa9\u6d3b\uff09 -->\r\n        <div style=\"\r\n          box-sizing:border-box;\r\n          max-width:100%;\r\n          border:1px solid #fed7aa;\r\n          border-radius:16px;\r\n          padding:14px;\r\n          background:#fff7ed;\r\n        \">\r\n          <h3 style=\"margin:0 0 8px;font-size:15px;line-height:1.4;color:#7c2d12;overflow-wrap:anywhere;\">\r\n            \u5931\u6557\u3059\u308b\u3068\u3069\u3046\u306a\u308b\uff1f\uff08\u3084\u308a\u304c\u3061\u306a\u30df\u30b9\u3068\u8d77\u3053\u308a\u5f97\u308b\u7d50\u679c\uff09\r\n          <\/h3>\r\n          <ul style=\"margin:0;padding:0 0 0 18px;font-size:13px;line-height:1.8;color:#7c2d12;max-width:100%;overflow-wrap:anywhere;\">\r\n            <li style=\"margin:6px 0;\">\r\n              <strong>\u6a29\u9650\u3092\u5e83\u3052\u3059\u304e\u308b<\/strong>\uff08\u4f8b\uff1a\u518d\u5e30\u7684\u306achmod\uff09\u2192 \u4e88\u671f\u3057\u306a\u3044\u30e6\u30fc\u30b6\u30fc\/\u30d7\u30ed\u30bb\u30b9\u304c\u89e6\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u3001<strong>\u60c5\u5831\u6f0f\u3048\u3044<\/strong>\u3084<strong>\u6539\u3056\u3093<\/strong>\u30ea\u30b9\u30af\u304c\u5897\u3048\u307e\u3059\u3002\r\n            <\/li>\r\n            <li style=\"margin:6px 0;\">\r\n              <strong>\u6240\u6709\u8005\u3092\u5909\u3048\u3059\u304e\u308b<\/strong>\uff08\u4f8b\uff1achown -R\uff09\u2192 \u5225\u30b5\u30fc\u30d3\u30b9\u304c\u8aad\u3081\u306a\u304f\u306a\u308a\u3001<strong>\u4e8c\u6b21\u969c\u5bb3\uff08\u505c\u6b62\u30fb\u30a8\u30e9\u30fc\u9023\u9396\uff09<\/strong>\u304c\u8d77\u304d\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\r\n            <\/li>\r\n            <li style=\"margin:6px 0;\">\r\n              <strong>ACL\/\u4fdd\u8b77\u8a2d\u5b9a\u3092\u7121\u9020\u4f5c\u306b\u5916\u3059<\/strong> \u2192 \u4e00\u6642\u7684\u306b\u52d5\u3044\u3066\u3082\u3001\u5f8c\u304b\u3089<strong>\u76e3\u67fb\u6307\u6458<\/strong>\u3084<strong>\u518d\u767a<\/strong>\u3001\u539f\u56e0\u8ffd\u8de1\u4e0d\u80fd\u306b\u306a\u308a\u3084\u3059\u3044\u3067\u3059\u3002\r\n            <\/li>\r\n            <li style=\"margin:6px 0;\">\r\n              <strong>\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\/NFS\/\u30b3\u30f3\u30c6\u30ca\u5883\u754c\u3092\u898b\u843d\u3068\u3059<\/strong> \u2192 \u8a66\u884c\u932f\u8aa4\u304c\u5897\u3048\u3001<strong>\u5fa9\u65e7\u304c\u9577\u671f\u5316<\/strong>\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\r\n            <\/li>\r\n          <\/ul>\r\n        <\/div>\r\n\r\n        <!-- \u76f8\u8ac7\u5c0e\u7dda\uff08CTA\uff09 -->\r\n        <div style=\"border:1px solid #e5e7eb;border-radius:18px;padding:16px;background:#ffffff;box-sizing:border-box;max-width:100%;\">\r\n          <h3 style=\"margin:0 0 8px;font-size:16px;line-height:1.4;color:#111827;overflow-wrap:anywhere;\">\r\n            \u8ff7\u3063\u305f\u3089\uff1a\u7121\u6599\u3067\u76f8\u8ac7\u3067\u304d\u307e\u3059\r\n          <\/h3>\r\n          <p style=\"margin:0 0 12px;font-size:13px;line-height:1.7;color:#374151;max-width:100%;overflow-wrap:anywhere;\">\r\n            \u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30b3\u30f3\u30c6\u30ca\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u76e3\u67fb\u8981\u4ef6\u304c\u7d61\u3080\u5834\u5408\u306f\u3001\u7121\u7406\u306b\u6a29\u9650\u3092\u89e6\u308b\u524d\u306b\u76f8\u8ac7\u3059\u308b\u3068\u65e9\u304f\u53ce\u675f\u3057\u3084\u3059\u3044\u3067\u3059\u3002\r\n          <\/p>\r\n\r\n          <div style=\"display:flex;gap:10px;flex-wrap:wrap;max-width:100%;\">\r\n            <a href=\"https:\/\/jouhou.main.jp\/?page_id=26983\" style=\"\r\n              display:inline-block;\r\n              padding:12px 14px;\r\n              border-radius:999px;\r\n              background:#111827;\r\n              color:#ffffff;\r\n              text-decoration:none;\r\n              font-size:13px;\r\n              font-weight:700;\r\n              max-width:100%;\r\n              overflow-wrap:anywhere;\r\n            \">\u7121\u6599\u76f8\u8ac7\u30d5\u30a9\u30fc\u30e0<\/a>\r\n\r\n            <a href=\"tel:0120838831\" style=\"\r\n              display:inline-block;\r\n              padding:12px 14px;\r\n              border-radius:999px;\r\n              background:#2563eb;\r\n              color:#ffffff;\r\n              text-decoration:none;\r\n              font-size:13px;\r\n              font-weight:700;\r\n              max-width:100%;\r\n              overflow-wrap:anywhere;\r\n            \">\u96fb\u8a71\u3067\u76f8\u8ac7\uff080120-838-831\uff09<\/a>\r\n\r\n            <a href=\"tel:0434224240\" style=\"\r\n              display:inline-block;\r\n              padding:12px 14px;\r\n              border-radius:999px;\r\n              background:#10b981;\r\n              color:#ffffff;\r\n              text-decoration:none;\r\n              font-size:13px;\r\n              font-weight:700;\r\n              max-width:100%;\r\n              overflow-wrap:anywhere;\r\n            \">\u6280\u8853\u8005\u76f4\u901a\uff08043-422-4240\uff09<\/a>\r\n          <\/div>\r\n        <\/div>\r\n\r\n      <\/div>\r\n\r\n      <div style=\"padding:12px 4px 16px;max-width:100%;box-sizing:border-box;\">\r\n        <p style=\"margin:0;font-size:13px;line-height:1.7;color:#374151;overflow-wrap:anywhere;\">\r\n          \u6700\u77ed\u30c1\u30a7\u30c3\u30af\u3067\u65b9\u5411\u6027\u304c\u898b\u3048\u305f\u3089\u3001\u672c\u6587\u306e\u5404\u7ae0\u3067\u300c\u539f\u56e0\u306e\u78ba\u5b9a \u2192 \u6052\u4e45\u5bfe\u7b56\uff08\u518d\u767a\u9632\u6b62\uff09\u300d\u3078\u9032\u3081\u307e\u3059\u3002\r\n        <\/p>\r\n      <\/div>\r\n    <\/div>\r\n  <\/div>\r\n<\/section>\r\n<!-- \u25b2\u25b2\u25b2 \u30d5\u30a1\u30fc\u30b9\u30c8\u30d3\u30e5\u30fc\uff1a\u6700\u77ed\u30c1\u30a7\u30c3\u30af\u67a0\uff08\u72ed\u3044\u5e45\u3067\u3082\u53f3\u304c\u5207\u308c\u306a\u3044\uff0b\u5931\u6557\u30ea\u30b9\u30af\u6b04\u3042\u308a\uff09 \u25b2\u25b2\u25b2 -->\r\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f28cbe1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f28cbe1\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d44796b\" data-id=\"d44796b\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4ac2b4d elementor-widget elementor-widget-image\" data-id=\"4ac2b4d\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"603\" src=\"https:\/\/jouhou.main.jp\/wp-content\/uploads\/2025\/06\/mermaid-diagram-2026-01-21-072505-1024x603.png\" class=\"attachment-large size-large\" alt=\"\" srcset=\"https:\/\/jouhou.main.jp\/wp-content\/uploads\/2025\/06\/mermaid-diagram-2026-01-21-072505-1024x603.png 1024w, https:\/\/jouhou.main.jp\/wp-content\/uploads\/2025\/06\/mermaid-diagram-2026-01-21-072505-300x177.png 300w, https:\/\/jouhou.main.jp\/wp-content\/uploads\/2025\/06\/mermaid-diagram-2026-01-21-072505-768x452.png 768w, https:\/\/jouhou.main.jp\/wp-content\/uploads\/2025\/06\/mermaid-diagram-2026-01-21-072505-1536x904.png 1536w, https:\/\/jouhou.main.jp\/wp-content\/uploads\/2025\/06\/mermaid-diagram-2026-01-21-072505-2048x1205.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e69076d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e69076d\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6767bb6\" data-id=\"6767bb6\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c8d36c9 elementor-widget elementor-widget-html\" data-id=\"c8d36c9\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\r\n\r\n<div style=\"margin:0; padding:30pt; background-color:#EEEEEE;\"> <p style=\"margin:0 0 8px 0; font-size:1.2em;\"><strong>\u3082\u304f\u3058<\/strong><\/p> <ul style=\"list-style-type:none; padding-left:0; margin:0;\"> <li style=\"margin:40px 0;\"><a href=\"#sec01\">\u7b2c1\u7ae0\uff1a\u307e\u305f\u300cPermission denied\u300d\u304b\u2026\u6df1\u591c\u306eSRE\u304c\u305f\u3081\u606f\u3092\u3064\u304f\u77ac\u9593\u304b\u3089<\/a><\/li> <li style=\"margin:40px 0;\"><a href=\"#sec02\">\u7b2c2\u7ae0\uff1aEACCES(13)\u306e\u6b63\u4f53\u2015\u2015\u300c\u8ab0\u304c\u300d\u300c\u3069\u3053\u3067\u300d\u62d2\u5426\u3057\u305f\u304b\u3092\u5206\u89e3\u3059\u308b<\/a><\/li> <li style=\"margin:40px 0;\"><a href=\"#sec03\">\u7b2c3\u7ae0\uff1a\u6700\u521d\u306b\u6f70\u3059\u601d\u3044\u8fbc\u307f\u2015\u2015\u30d1\u30b9\u30fb\u5b9f\u4f53\u30fb\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u306e3\u70b9\u78ba\u8a8d<\/a><\/li> <li style=\"margin:40px 0;\"><a href=\"#sec04\">\u7b2c4\u7ae0\uff1achmod\/chown\/chgrp\u306e\u57fa\u672c\u3068\u7f60\u2015\u2015\u201c\u898b\u3048\u3066\u308b\u6a29\u9650\u201d\u304c\u771f\u5b9f\u3068\u306f\u9650\u3089\u306a\u3044<\/a><\/li> <li style=\"margin:40px 0;\"><a href=\"#sec05\">\u7b2c5\u7ae0\uff1aACL\u3067\u8d77\u304d\u308b\u300c\u4f8b\u5916\u30eb\u30fc\u30eb\u300d\u2015\u2015getfacl\/setfacl\u3067\u53ef\u8996\u5316\u3057\u3066\u8179\u843d\u3061\u3055\u305b\u308b<\/a><\/li> <li style=\"margin:40px 0;\"><a href=\"#sec06\">\u7b2c6\u7ae0\uff1aumask\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u6a29\u9650\u2015\u2015\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u304c\u6bce\u56de\u30ba\u30ec\u308b\u6839\u672c\u539f\u56e0<\/a><\/li> <li style=\"margin:40px 0;\"><a href=\"#sec07\">\u7b2c7\u7ae0\uff1asudo\u3067\u3082\u901a\u3089\u306a\u3044\u7406\u7531\u2015\u2015sudoers \/ setuid \/ capabilities \u306e\u4f7f\u3044\u5206\u3051<\/a><\/li> <li style=\"margin:40px 0;\"><a href=\"#sec08\">\u7b2c8\u7ae0\uff1asystemd\u306e\u9632\u5fa1\u8a2d\u5b9a\u304c\u7de0\u3081\u51fa\u3059\u2015\u2015User\/Group\/Protect*\u3068\u5b9f\u884c\u6a29\u9650\u306e\u95a2\u4fc2<\/a><\/li> <li style=\"margin:40px 0;\"><a href=\"#sec09\">\u7b2c9\u7ae0\uff1a\u30b3\u30f3\u30c6\u30ca\u30fbNFS\u30fb\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u843d\u3068\u3057\u7a74\u2015\u2015UID\/GID\u30ba\u30ec\u3068root_squash<\/a><\/li> <li style=\"margin:40px 0;\"><a href=\"#sec10\">\u7b2c10\u7ae0\uff1a\u4ed5\u7d44\u307f\u3067\u518d\u767a\u3092\u6b62\u3081\u308b\u2015\u2015\u6a29\u9650\u8a2d\u8a08\u306e\u578b\u3068\u5207\u308a\u5206\u3051\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\uff08\u76f8\u8ac7\u306e\u76ee\u5b89\uff09<\/a><\/li> <\/ul> <\/div> \r\n\r\n\r\n\r\n<p><strong>\u3010\u6ce8\u610f\u3011\u672c\u8a18\u4e8b\u306f\u3001Ubuntu\u3067\u767a\u751f\u3059\u308bEACCES(13)\uff0f\u300cPermission denied\uff08\u30a2\u30af\u30bb\u30b9\u62d2\u5426\uff09\u300d\u306e\u4e00\u822c\u7684\u306a\u539f\u56e0\u3068\u5bfe\u7b56\u3092\u6574\u7406\u3057\u305f\u60c5\u5831\u63d0\u4f9b\u3067\u3059\u3002\u5b9f\u74b0\u5883\u3067\u306f\u904b\u7528\u8981\u4ef6\u30fb\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u30fb\u4eee\u60f3\u5316\/\u30b3\u30f3\u30c6\u30ca\u30fb\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u69cb\uff08AppArmor\u7b49\uff09\u30fb\u7d44\u7e54\u306e\u6a29\u9650\u8a2d\u8a08\u306b\u3088\u308a\u6700\u9069\u89e3\u304c\u5909\u308f\u308a\u307e\u3059\u3002\u91cd\u8981\u30c7\u30fc\u30bf\u3084\u696d\u52d9\u5f71\u97ff\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u5224\u65ad\u3092\u8aa4\u308b\u3068\u5fa9\u65e7\u96e3\u6613\u5ea6\u3084\u505c\u6b62\u6642\u9593\u304c\u5897\u3048\u308b\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240\u306e\u3088\u3046\u306a\u5c02\u9580\u4e8b\u696d\u8005\u306b\u76f8\u8ac7\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/strong><\/p> \r\n\r\n\r\n\r\n<p>\u3000<\/p> <a id=\"sec01\"><\/a> <h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c1\u7ae0\uff1a\u307e\u305f\u300cPermission denied\u300d\u304b\u2026\u6df1\u591c\u306eSRE\u304c\u305f\u3081\u606f\u3092\u3064\u304f\u77ac\u9593\u304b\u3089<\/h2> <p>\u300c\u30ed\u30b0\u3092\u898b\u308b\u9650\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u306f\u5b58\u5728\u3059\u308b\u3002\u30d1\u30b9\u3082\u5408\u3063\u3066\u308b\u3002\u306a\u306e\u306bPermission denied\u3002\u3048\u3001\u306a\u3093\u3067\uff1f\u300d\u2015\u2015\u3053\u306e\u77ac\u9593\u306e\u30e2\u30e4\u30e2\u30e4\u3001\u73fe\u5834\u306e\u4eba\u307b\u3069\u5206\u304b\u308a\u307e\u3059\u3002\u30a8\u30e9\u30fc\u6587\u306f\u77ed\u3044\u306e\u306b\u3001\u539f\u56e0\u306e\u5019\u88dc\u304c\u591a\u3059\u304e\u3066\u3001\u5207\u308a\u5206\u3051\u306e\u5165\u53e3\u304c\u898b\u3048\u306a\u3044\u3002\u3057\u304b\u3082\u672c\u756a\u3060\u3068\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u6b62\u3081\u3066\u691c\u8a3c\u3059\u308b\u4f59\u88d5\u306f\u306a\u3044\u3002\u3060\u304b\u3089\u3053\u305d\u3001\u307e\u305a\u306f\u201c\u7a7a\u6c17\u3092\u843d\u3061\u7740\u304b\u305b\u308b\u201d\u305f\u3081\u306e\u578b\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p> <p>\u3053\u3053\u3067\u5927\u4e8b\u306a\u306e\u306f\u3001\u6a29\u9650\u554f\u984c\u3092\u300cchmod\u3059\u308c\u3070\u76f4\u308b\u8a71\u300d\u3068\u96d1\u306b\u6271\u308f\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u6a29\u9650\u306fLinux\u306e\u57fa\u672c\u6a5f\u80fd\u3067\u3059\u304c\u3001\u5b9f\u904b\u7528\u3067\u306fACL\u3001sudo\u3001systemd\u3001NFS\u3001\u30b3\u30f3\u30c6\u30ca\u3001AppArmor\u306a\u3069\u304c\u91cd\u306a\u308a\u3001\u62d2\u5426\u306e\u7406\u7531\u304c\u4e00\u6bb5\u6df1\u3044\u5834\u6240\u306b\u96a0\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u73cd\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p> <hr> <p>\u8aad\u8005\u306e\u982d\u306e\u4e2d\u306e\u4f1a\u8a71\u3001\u305f\u3076\u3093\u3053\u3046\u3067\u3059\u3002<\/p> <ul> <li><p>\u300c\u81ea\u5206\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u8aad\u3080\u5206\u306b\u306fOK\u306a\u306e\u306b\u3001\u30a2\u30d7\u30ea\u304b\u3089\u3060\u3068\u62d2\u5426\u3055\u308c\u308b\u2026\u201c\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u201d\u304c\u9055\u3046\u3084\u3064\u304b\uff1f\u300d<\/p><\/li> <li><p>\u300csudo\u4ed8\u3051\u3066\u3082\u30c0\u30e1\uff1f \u3048\u3001root\u3067\u3082\u30c0\u30e1\u3063\u3066\u4f55\u304c\u62d2\u5426\u3057\u3066\u308b\u306e\uff1f\u300d<\/p><\/li> <li><p>\u300c\u6a29\u9650\u3044\u3058\u3063\u3066\u76f4\u3057\u305f\u3089\u3001\u4eca\u5ea6\u306f\u76e3\u67fb\u306b\u6012\u3089\u308c\u305d\u3046\u3002\u6700\u5c0f\u5909\u66f4\u3067\u53ce\u675f\u3055\u305b\u305f\u3044\u2026\u300d<\/p><\/li> <\/ul> <p>\u305d\u3046\u611f\u3058\u308b\u306e\u306f\u81ea\u7136\u3067\u3059\u3057\u3001\u3080\u3057\u308d\u5065\u5168\u306a\u7591\u3044\u3067\u3059\u3002\u6a29\u9650\u306f\u201c\u5e83\u3052\u308c\u3070\u52d5\u304f\u201d\u3051\u308c\u3069\u3001\u5e83\u3052\u305f\u5206\u3060\u3051\u4e8b\u6545\u306e\u82bd\u3082\u5897\u3048\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u307e\u305a\u88ab\u5bb3\u6700\u5c0f\u5316\uff08\u30c0\u30e1\u30fc\u30b8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\uff09\u3068\u3057\u3066\u300c\u3069\u3053\u3067\u62d2\u5426\u3055\u308c\u305f\u304b\u300d\u3092\u77ed\u6642\u9593\u3067\u7279\u5b9a\u3057\u3001\u305d\u306e\u3046\u3048\u3067\u6052\u4e45\u5bfe\u7b56\uff08\u6a29\u9650\u8a2d\u8a08\u306e\u578b\uff09\u306b\u843d\u3068\u3057\u8fbc\u3080\u6d41\u308c\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p> <hr> <p>\u6700\u521d\u306b\u3001\u4eca\u65e5\u306e\u30b4\u30fc\u30eb\u3092\u6c7a\u3081\u307e\u3059\u3002EACCES\u306b\u906d\u9047\u3057\u305f\u3089\u3001\u6b21\u306e3\u3064\u3092\u9806\u306b\u78ba\u5b9f\u5316\u3057\u307e\u3059\u3002<\/p> <ol> <li><p>\u62d2\u5426\u3057\u305f\u4e3b\u4f53\uff08\u30ab\u30fc\u30cd\u30eb\u306e\u901a\u5e38\u6a29\u9650\u304b\u3001AppArmor\u7b49\u306e\u8ffd\u52a0\u5236\u5fa1\u304b\uff09\u3092\u5206\u3051\u308b<\/p><\/li> <li><p>\u62d2\u5426\u3055\u308c\u305f\u5bfe\u8c61\uff08\u30d5\u30a1\u30a4\u30eb\u305d\u306e\u3082\u306e\u304b\u3001\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u63a2\u7d22\u6a29\u9650\u304b\uff09\u3092\u7279\u5b9a\u3059\u308b<\/p><\/li> <li><p>\u6052\u4e45\u5bfe\u7b56\u3068\u3057\u3066\u300c\u8ab0\u306b\u30fb\u3069\u3053\u307e\u3067\u30fb\u3044\u3064\u300d\u6a29\u9650\u3092\u4e0e\u3048\u308b\u3079\u304d\u304b\u8a2d\u8a08\u306b\u623b\u3059<\/p><\/li> <\/ol> <p>\u3053\u306e\u9806\u756a\u3092\u5b88\u308b\u3068\u3001\u5834\u3092\u6574\u3048\u308b\u3088\u3046\u306b\u5207\u308a\u5206\u3051\u304c\u9032\u307f\u307e\u3059\u3002\u9006\u306b\u3001\u3044\u304d\u306a\u308achmod 777\u306e\u3088\u3046\u306a\u64cd\u4f5c\u3092\u3059\u308b\u3068\u3001\u4e00\u6642\u7684\u306b\u52d5\u3044\u3066\u3082\u539f\u56e0\u304c\u6d88\u3048\u3066\u3057\u307e\u3044\u3001\u540c\u3058\u969c\u5bb3\u304c\u5f62\u3092\u5909\u3048\u3066\u518d\u767a\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p> \r\n\r\n\r\n\r\n<p>\u3000<\/p> <a id=\"sec02\"><\/a> <h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c2\u7ae0\uff1aEACCES(13)\u306e\u6b63\u4f53\u2015\u2015\u300c\u8ab0\u304c\u300d\u300c\u3069\u3053\u3067\u300d\u62d2\u5426\u3057\u305f\u304b\u3092\u5206\u89e3\u3059\u308b<\/h2> <p>Ubuntu\u3067\u3088\u304f\u898b\u308b\u300cPermission denied\u300d\u306f\u3001\u591a\u304f\u306e\u5834\u5408\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u306e\u5931\u6557\u3068\u3057\u3066\u73fe\u308c\u307e\u3059\u3002\u4ee3\u8868\u4f8b\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u305f\u3069\u308b\u3001\u5b9f\u884c\u3059\u308b\u3001\u30bd\u30b1\u30c3\u30c8\u306b\u30d0\u30a4\u30f3\u30c9\u3059\u308b\u3001\u306a\u3069\u3067\u3059\u3002\u30a2\u30d7\u30ea\u306e\u30ed\u30b0\u306b\u306f\u6587\u5b57\u5217\u3068\u3057\u3066\u51fa\u307e\u3059\u304c\u3001\u5b9f\u4f53\u306f\u300c\u4f55\u3092\u3057\u3088\u3046\u3068\u3057\u3066\u3001\u3069\u306e\u6a29\u9650\u30c1\u30a7\u30c3\u30af\u3067\u843d\u3061\u305f\u304b\u300d\u306e\u8a71\u3067\u3059\u3002<\/p> <p>\u307e\u305a\u3001EACCES(13)\u3068\u6df7\u540c\u3057\u3084\u3059\u3044\u3082\u306e\u3092\u5206\u3051\u307e\u3059\u3002Linux\u7cfb\u3067\u306f\u300c\u6a29\u9650\u304c\u306a\u3044\u300d\u7cfb\u306e\u30a8\u30e9\u30fc\u304c\u8907\u6570\u3042\u308a\u3001\u539f\u56e0\u306e\u5f53\u305f\u308a\u65b9\u304c\u5c11\u3057\u9055\u3044\u307e\u3059\u3002<\/p> <table border=\"1\" cellpadding=\"6\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%;\"> <tr> <th style=\"background-color:#eeeeee; text-align:left;\">\u30a8\u30e9\u30fc<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u3088\u304f\u3042\u308b\u5834\u9762<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u5178\u578b\u539f\u56e0<\/th> <\/tr> <tr> <td>EACCES (13)<\/td> <td>open\/execve\/chdir \u306a\u3069<\/td> <td>\u30d5\u30a1\u30a4\u30eb\u6a29\u9650\u3001\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u63a2\u7d22\u6a29\u9650\u3001ACL\u3001\u8ffd\u52a0\u5236\u5fa1\uff08AppArmor\uff09<\/td> <\/tr> <tr> <td>EPERM (1)<\/td> <td>chmod\/chown\/mount \u306a\u3069<\/td> <td>\u64cd\u4f5c\u81ea\u4f53\u306b\u5fc5\u8981\u306a\u7279\u6a29\u304c\u306a\u3044\u3001\u30b1\u30fc\u30d1\u30d3\u30ea\u30c6\u30a3\u4e0d\u8db3\u3001\u4fdd\u8b77\u5c5e\u6027<\/td> <\/tr> <tr> <td>ENOENT (2)<\/td> <td>\u5b58\u5728\u3057\u306a\u3044\u30d5\u30a1\u30a4\u30eb<\/td> <td>\u30d1\u30b9\u8aa4\u308a\u3001\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u5207\u308c\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u30d1\u30b9\u5dee\u7570<\/td> <\/tr> <\/table> <p>\u300cPermission denied\u300d\u3060\u3051\u898b\u3066\u3044\u308b\u3068\u3001\u539f\u56e0\u304c\u201c\u6a29\u9650\u201d\u306b\u898b\u3048\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u306f\u300c\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bx\uff08\u63a2\u7d22\u6a29\u9650\uff09\u304c\u306a\u3044\u300d\u300c\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u5148\u306b\u8fbf\u308c\u306a\u3044\u300d\u300cAppArmor\u3067\u30d7\u30ed\u30bb\u30b9\u304c\u9589\u3058\u8fbc\u3081\u3089\u308c\u3066\u3044\u308b\u300d\u306a\u3069\u3001\u767a\u751f\u70b9\u304c\u30ba\u30ec\u3066\u3044\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p> <hr> <p>\u3053\u3053\u3067\u306e\u5206\u89e3\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002\u6b21\u306e2\u3064\u306b\u5207\u308a\u5206\u3051\u307e\u3059\u3002<\/p> <ul> <li><p><strong>\u901a\u5e38\u306eUNIX\u6a29\u9650\/ACL\u306b\u3088\u308b\u62d2\u5426<\/strong>\uff1a\u6240\u6709\u8005\u30fb\u30b0\u30eb\u30fc\u30d7\u30fb\u305d\u306e\u4ed6\u3001\u307e\u305f\u306fACL\u306e\u30eb\u30fc\u30eb\u3067\u62d2\u5426\u3055\u308c\u308b<\/p><\/li> <li><p><strong>\u8ffd\u52a0\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u69cb\u306b\u3088\u308b\u62d2\u5426<\/strong>\uff1aAppArmor\uff08Ubuntu\u3067\u4e00\u822c\u7684\uff09\u3001SELinux\uff08\u74b0\u5883\u306b\u3088\u308a\uff09\u3001systemd\u306e\u5236\u9650\u306a\u3069<\/p><\/li> <\/ul> <p>\u73fe\u5834\u306e\u4f1a\u8a71\u3067\u8a00\u3046\u3068\u3001\u300cchmod\u3057\u305f\u306e\u306b\u76f4\u3089\u306a\u3044\u300d\u30d1\u30bf\u30fc\u30f3\u306f\u5f8c\u8005\u304c\u6df7\u3056\u3063\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3067\u3059\u3002Ubuntu\u3067\u306fAppArmor\u304c\u6709\u52b9\u306a\u30b1\u30fc\u30b9\u304c\u591a\u304f\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30d1\u30b9\u304c\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3067\u5236\u9650\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u6a29\u9650\u3060\u3051\u6574\u3048\u3066\u3082\u62d2\u5426\u304c\u7d9a\u304d\u307e\u3059\u3002<\/p> <hr> <p>\u3055\u3089\u306b\u300c\u3069\u3053\u3067\u62d2\u5426\u3055\u308c\u305f\u304b\u300d\u3092\u7d30\u304b\u304f\u898b\u308b\u3068\u3001\u5207\u308a\u5206\u3051\u304c\u901f\u304f\u306a\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u3080\u6a29\u9650\uff08r\uff09\u304c\u3042\u3063\u3066\u3082\u3001\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u63a2\u7d22\u6a29\u9650\uff08x\uff09\u304c\u306a\u3044\u3068\u5230\u9054\u3067\u304d\u307e\u305b\u3093\u3002\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6a29\u9650\u306f\u76f4\u611f\u3068\u30ba\u30ec\u3084\u3059\u3044\u306e\u3067\u3001\u3053\u3053\u3092\u62bc\u3055\u3048\u307e\u3059\u3002<\/p> <table border=\"1\" cellpadding=\"6\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%;\"> <tr> <th style=\"background-color:#eeeeee; text-align:left;\">\u5bfe\u8c61<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u5fc5\u8981\u306b\u306a\u308a\u3084\u3059\u3044\u6a29\u9650<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u5178\u578b\u7684\u306a\u843d\u3068\u3057\u7a74<\/th> <\/tr> <tr> <td>\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u53d6\u308a<\/td> <td>\u30d5\u30a1\u30a4\u30eb\u306b r \uff0b \u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b x<\/td> <td>\u89aa\u306b x \u304c\u306a\u3044\uff0fACL\u3067\u62d2\u5426<\/td> <\/tr> <tr> <td>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e00\u89a7\u8868\u793a<\/td> <td>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b r\uff08\u4e00\u89a7\uff09\uff0b x\uff08\u63a2\u7d22\uff09<\/td> <td>x \u3060\u3051\u3042\u308b\u3068\u300c\u5165\u308c\u308b\u304c\u4e00\u89a7\u304c\u898b\u3048\u306a\u3044\u300d<\/td> <\/tr> <tr> <td>\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c<\/td> <td>\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306b x \uff0b \u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b x<\/td> <td>\u30de\u30a6\u30f3\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3 noexec \u306a\u3069\uff08\u74b0\u5883\u4f9d\u5b58\uff09<\/td> <\/tr> <\/table> <p>\u3053\u306e\u7ae0\u306e\u7d50\u8ad6\u306f\u300c\u62d2\u5426\u306e\u4e3b\u4f53\u300d\u3068\u300c\u62d2\u5426\u3055\u308c\u305f\u5730\u70b9\u300d\u3092\u5206\u3051\u308b\u3053\u3068\u3067\u3059\u3002\u6b21\u7ae0\u3067\u306f\u3001\u5177\u4f53\u7684\u306b\u201c\u305f\u3063\u305f3\u70b9\u201d\u3092\u78ba\u8a8d\u3059\u308b\u3060\u3051\u3067\u3001\u539f\u56e0\u5019\u88dc\u3092\u5927\u304d\u304f\u7d5e\u308b\u624b\u9806\u306b\u5165\u308a\u307e\u3059\u3002<\/p> \r\n\r\n\r\n\r\n<p>\u3000<\/p> <a id=\"sec03\"><\/a> <h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c3\u7ae0\uff1a\u6700\u521d\u306b\u6f70\u3059\u601d\u3044\u8fbc\u307f\u2015\u2015\u30d1\u30b9\u30fb\u5b9f\u4f53\u30fb\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u306e3\u70b9\u78ba\u8a8d<\/h2> <p>\u5207\u308a\u5206\u3051\u3092\u300c\u30ea\u30bb\u30c3\u30c8\u300d\u3059\u308b\u306a\u3089\u3001\u307e\u305a\u306f3\u70b9\u3067\u3059\u3002\u3053\u3053\u3092\u98db\u3070\u3059\u3068\u3001\u4ee5\u964d\u306e\u4f5c\u696d\u304c\u5168\u90e8\u30ba\u30ec\u307e\u3059\u3002\u73fe\u5834\u306e\u672c\u97f3\u3068\u3057\u3066\u306f\u300c\u6025\u3044\u3067\u76f4\u3057\u305f\u3044\u300d\u306e\u3067\u3059\u304c\u3001\u6025\u3044\u3067\u3044\u308b\u3068\u304d\u307b\u3069\u6700\u77ed\u30eb\u30fc\u30c8\u306f\u201c\u78ba\u8a8d\u306e\u578b\u201d\u3067\u3059\u3002<\/p> <ol> <li><p><strong>\u30d1\u30b9\u306f\u672c\u5f53\u306b\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u304b\uff1f<\/strong>\uff08\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3001\u76f8\u5bfe\u30d1\u30b9\u3001chroot\/\u30b3\u30f3\u30c6\u30ca\u5dee\u7570\uff09<\/p><\/li> <li><p><strong>\u5b9f\u4f53\u306f\u3069\u3053\u306b\u3042\u308b\u304b\uff1f<\/strong>\uff08\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u542b\u3081\u3066\u5230\u9054\u3067\u304d\u308b\u304b\uff09<\/p><\/li> <li><p><strong>\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u306f\u8ab0\u304b\uff1f<\/strong>\uff08\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u3067\u306f\u306a\u304f\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u5b9f\u52b9UID\/GID\uff09<\/p><\/li> <\/ol> <hr> <p>\u307e\u305a\u300c\u30d1\u30b9\u300d\u3067\u3059\u3002\u30a2\u30d7\u30ea\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3084\u74b0\u5883\u5909\u6570\u3067\u30d1\u30b9\u304c\u5909\u308f\u308b\u3068\u3001\u60f3\u5b9a\u5916\u306e\u5834\u6240\u3092\u898b\u306b\u884c\u3063\u3066EACCES\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u3001\u76f8\u5bfe\u30d1\u30b9\uff08.\/data \u7b49\uff09\u306f\u3001\u8d77\u52d5\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5909\u308f\u3063\u305f\u3060\u3051\u3067\u5225\u7269\u306b\u306a\u308a\u307e\u3059\u3002\u78ba\u8a8d\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u89b3\u70b9\u304c\u6709\u52b9\u3067\u3059\u3002<\/p> <ul> <li><p>\u30d5\u30a1\u30a4\u30eb\u304c\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u306a\u3089\u3001\u30ea\u30f3\u30af\u5148\u307e\u3067\u8ffd\u3048\u3066\u3044\u308b\u304b<\/p><\/li> <li><p>systemd\u8d77\u52d5\u306a\u3089 WorkingDirectory \u304c\u3069\u3053\u304b<\/p><\/li> <li><p>\u30b3\u30f3\u30c6\u30ca\u306a\u3089\u30db\u30b9\u30c8\u3068\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30d1\u30b9\u304c\u4e00\u81f4\u3057\u3066\u3044\u308b\u304b\uff08\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\uff09<\/p><\/li> <\/ul> <p>\u6b21\u306b\u300c\u5b9f\u4f53\u300d\u3002\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30921\u6bb5\u305a\u3064\u691c\u67fb\u3059\u308b\u3068\u3001\u3069\u3053\u3067\u63a2\u7d22\u6a29\u9650\u304c\u5207\u308c\u3066\u3044\u308b\u304b\u304c\u5206\u304b\u308a\u307e\u3059\u3002Linux\u3067\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e x \u304c\u201c\u901a\u884c\u6a29\u201d\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002\u3053\u308c\u304c\u6b20\u3051\u308b\u3068\u3001\u6700\u7d42\u30d5\u30a1\u30a4\u30eb\u306br\u304c\u3042\u3063\u3066\u3082\u5230\u9054\u3067\u304d\u307e\u305b\u3093\u3002<\/p> <p>\u4ee3\u8868\u7684\u306a\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9\u4f8b\uff08\u51fa\u529b\u306f\u74b0\u5883\u3067\u7570\u306a\u308a\u307e\u3059\uff09\u3002<\/p> <pre><code>ls -ld \/path \/path\/to \/path\/to\/target namei -l \/path\/to\/target id ps -o user,uid,euid,group,gid,egid,comm -p &lt;PID&gt;<\/code><\/pre> <hr> <p>\u305d\u3057\u3066\u4e00\u756a\u306e\u843d\u3068\u3057\u7a74\u304c\u300c\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u300d\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u624b\u5143\u3067\u624b\u52d5\u5b9f\u884c\u3059\u308b\u3068\u901a\u308b\u306e\u306b\u3001\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u52d5\u304b\u3059\u3068\u62d2\u5426\u3055\u308c\u308b\u3002\u3053\u308c\u306f\u201c\u3042\u306a\u305f\u306e\u30e6\u30fc\u30b6\u30fc\u201d\u3067\u306f\u306a\u304f\u3001systemd\u304c\u6307\u5b9a\u3057\u305f User= \u306e\u30e6\u30fc\u30b6\u30fc\u3067\u52d5\u3044\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3067\u3059\u3002<\/p> <p>\u5fc3\u306e\u4f1a\u8a71\u3068\u3057\u3066\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p> <ul> <li><p>\u300c\u4ffa\u306e\u7aef\u672b\u3067\u306f\u52d5\u304f\u306e\u306b\u3001CI\u3060\u3068\u843d\u3061\u308b\u2026\u300d<\/p><\/li> <li><p>\u300csudo\u3067\u8a66\u3057\u305f\u3089\u901a\u3063\u305f\u3002\u3058\u3083\u3042\u6a29\u9650\u4e0d\u8db3\u3060\u3002\u2026\u3067\u3082\u672c\u756a\u3067sudo\u524d\u63d0\u306b\u306f\u3067\u304d\u306a\u3044\u3088\u306a\u300d<\/p><\/li> <\/ul> <p>\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u306f\u3001<strong>\u201c\u52d5\u304f\u6a29\u9650\u201d\u3067\u306f\u306a\u304f\u3001\u201c\u904b\u7528\u3068\u3057\u3066\u8a31\u5bb9\u3067\u304d\u308b\u6a29\u9650\u201d<\/strong>\u306b\u843d\u3068\u3059\u3053\u3068\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u30ed\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u66f8\u3051\u306a\u3044\u306a\u3089\u3001\u30a2\u30d7\u30ea\u30e6\u30fc\u30b6\u30fc\u306b\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u66f8\u304d\u8fbc\u307f\u3092\u4e0e\u3048\u308b\u304b\u3001\u51fa\u529b\u5148\u3092\u8a2d\u8a08\u3068\u3057\u3066\u5909\u66f4\u3059\u308b\u304b\u3002\u5834\u5f53\u305f\u308a\u7684\u306b\u6240\u6709\u8005\u3092\u5168\u90e8\u5909\u3048\u308b\u3068\u3001\u4eca\u5ea6\u306f\u5225\u30d7\u30ed\u30bb\u30b9\u304c\u66f8\u3051\u306a\u304f\u306a\u308a\u3001\u4e8c\u6b21\u969c\u5bb3\u304c\u8d77\u304d\u307e\u3059\u3002<\/p> <p>\u3053\u306e\u7ae0\u306e\u7d50\u8ad6\u306f\u300c\u78ba\u8a8d\u30923\u70b9\u306b\u7d5e\u308b\u300d\u3053\u3068\u3067\u3059\u3002\u6b21\u7ae0\u3067\u306f\u3001chmod\/chown\/chgrp\u3068\u3044\u3046\u57fa\u672c\u64cd\u4f5c\u3092\u3001\u4e8b\u6545\u308a\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8\uff08\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u6a29\u9650\u3001\u5171\u6709\u30b0\u30eb\u30fc\u30d7\u904b\u7528\u3001\u518d\u5e30\u5909\u66f4\u306e\u30ea\u30b9\u30af\uff09\u307e\u3067\u542b\u3081\u3066\u6574\u7406\u3057\u307e\u3059\u3002<\/p> \r\n\r\n\r\n\r\n<p>\u3000<\/p> <a id=\"sec04\"><\/a> <h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c4\u7ae0\uff1achmod\/chown\/chgrp\u306e\u57fa\u672c\u3068\u7f60\u2015\u2015\u201c\u898b\u3048\u3066\u308b\u6a29\u9650\u201d\u304c\u771f\u5b9f\u3068\u306f\u9650\u3089\u306a\u3044<\/h2> <p>chmod\/chown\/chgrp\u306f\u57fa\u790e\u3067\u3059\u304c\u3001\u5b9f\u904b\u7528\u3067\u300c\u6a29\u9650\u5909\u66f4\uff1d\u6b63\u7fa9\u300d\u306b\u306a\u308a\u3084\u3059\u3044\u3068\u3053\u308d\u304c\u6016\u3044\u70b9\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u6700\u5c0f\u5909\u66f4\u3067\u201c\u53ce\u675f\u201d\u3055\u305b\u308b\u305f\u3081\u306e\u8003\u3048\u65b9\u3092\u5148\u306b\u7f6e\u304d\u307e\u3059\u3002\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u5bfe\u8c61\u30923\u3064\u306b\u5206\u3051\u308b\u3053\u3068\u3067\u3059\u3002<\/p> <ul> <li><p><strong>\u5bfe\u8c61\u304c\u30d5\u30a1\u30a4\u30eb\u304b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b<\/strong>\uff08\u5fc5\u8981\u6a29\u9650\u306e\u610f\u5473\u304c\u9055\u3046\uff09<\/p><\/li> <li><p><strong>\u5358\u767a\u5bfe\u5fdc\u304b\u3001\u904b\u7528\u30eb\u30fc\u30eb\u3068\u3057\u3066\u7d99\u7d9a\u3059\u308b\u306e\u304b<\/strong>\uff08umask\/ACL\/\u30b0\u30eb\u30fc\u30d7\u8a2d\u8a08\u304c\u95a2\u308f\u308b\uff09<\/p><\/li> <li><p><strong>\u8ab0\u306e\u305f\u3081\u306b\u958b\u3051\u308b\u306e\u304b<\/strong>\uff08\u30e6\u30fc\u30b6\u30fc\u30fb\u30b0\u30eb\u30fc\u30d7\u30fb\u305d\u306e\u4ed6\u306e\u3069\u3053\u3092\u5e83\u3052\u308b\u304b\uff09<\/p><\/li> <\/ul> <hr> <p>\u307e\u305a\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u6a29\u9650\u306e\u8aa4\u89e3\u3092\u6574\u7406\u3057\u307e\u3059\u3002\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e r\/w\/x \u306f\u30d5\u30a1\u30a4\u30eb\u3068\u610f\u5473\u304c\u9055\u3044\u307e\u3059\u3002\u7279\u306b x\uff08\u63a2\u7d22\uff09\u304c\u809d\u3067\u3059\u3002<\/p> <table border=\"1\" cellpadding=\"6\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%;\"> <tr> <th style=\"background-color:#eeeeee; text-align:left;\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u6a29\u9650<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u610f\u5473<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u73fe\u5834\u3067\u306e\u75c7\u72b6<\/th> <\/tr> <tr> <td>r<\/td> <td>\u4e2d\u8eab\u306e\u4e00\u89a7\uff08\u540d\u524d\uff09\u3092\u8aad\u3081\u308b<\/td> <td>ls \u304c\u901a\u308b\uff0f\u305f\u3060\u3057\u5165\u308c\u308b\u3068\u306f\u9650\u3089\u306a\u3044<\/td> <\/tr> <tr> <td>x<\/td> <td>\u4e2d\u306b\u5165\u308b\u30fb\u30d1\u30b9\u3092\u8fbf\u308b\uff08\u63a2\u7d22\uff09<\/td> <td>cd \u3067\u304d\u308b\uff0f\u30d5\u30a1\u30a4\u30eb\u306b\u5230\u9054\u3067\u304d\u308b<\/td> <\/tr> <tr> <td>w<\/td> <td>\u4f5c\u6210\u30fb\u524a\u9664\u30fb\u30ea\u30cd\u30fc\u30e0\u304c\u53ef\u80fd\uff08\u203bx\u3068\u7d44\u307f\u5408\u308f\u305b\u304c\u91cd\u8981\uff09<\/td> <td>\u30ed\u30b0\u51fa\u529b\u3084\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u306b\u5f71\u97ff<\/td> <\/tr> <\/table> <p>\u3088\u304f\u3042\u308b\u4e8b\u6545\u306f\u300c\u30d5\u30a1\u30a4\u30eb\u306br\u3092\u4ed8\u3051\u305f\u306e\u306b\u76f4\u3089\u306a\u3044\u300d\u3067\u3059\u3002\u539f\u56e0\u306f\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bx\u304c\u306a\u3044\u3001\u307e\u305f\u306f\u9014\u4e2d\u306e\u3069\u3053\u304b\u3067\u6a29\u9650\u304c\u5207\u308c\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3067\u3059\u3002\u3060\u304b\u3089\u7b2c3\u7ae0\u3067\u793a\u3057\u305f\u3088\u3046\u306b\u3001\u89aa\u304b\u30891\u6bb5\u305a\u3064\u8fbf\u308b\u78ba\u8a8d\u304c\u52b9\u304d\u307e\u3059\u3002<\/p> <hr> <p>\u6b21\u306b\u6240\u6709\u8005\u3068\u30b0\u30eb\u30fc\u30d7\u3002BtoB\u306e\u73fe\u5834\u3067\u306f\u3001\u5358\u4e00\u30e6\u30fc\u30b6\u30fc\u306b\u5bc4\u305b\u308b\u3088\u308a\u3001<strong>\u30b0\u30eb\u30fc\u30d7\u5358\u4f4d\u3067\u6a29\u9650\u3092\u8a2d\u8a08<\/strong>\u3059\u308b\u307b\u3046\u304c\u904b\u7528\u304c\u5b89\u5b9a\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30a2\u30d7\u30ea\u904b\u7528\u7528\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u308a\u3001\u305d\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u3092\u4ed8\u3051\u308b\u3002\u3053\u3053\u3067\u300csetgid\u30d3\u30c3\u30c8\u300d\u3092\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4ed8\u3051\u308b\u3068\u3001\u914d\u4e0b\u306e\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u304c\u30b0\u30eb\u30fc\u30d7\u3092\u5f15\u304d\u7d99\u304e\u3084\u3059\u304f\u306a\u308a\u3001\u6a29\u9650\u30ba\u30ec\u306e\u518d\u767a\u3092\u6291\u3048\u3089\u308c\u307e\u3059\uff08\u305f\u3060\u3057\u3001\u74b0\u5883\u3068\u904b\u7528\u30dd\u30ea\u30b7\u30fc\u306b\u4f9d\u5b58\u3057\u307e\u3059\uff09\u3002<\/p> <p>\u305f\u3060\u3057\u3001\u518d\u5e30\u7684\u306achown\/chmod\u306f\u201c\u5f37\u3044\u201d\u64cd\u4f5c\u3067\u3059\u3002\u76f4\u3063\u305f\u3088\u3046\u306b\u898b\u3048\u3066\u3082\u3001\u5225\u30b5\u30fc\u30d3\u30b9\u306e\u6240\u6709\u6a29\u307e\u3067\u5909\u308f\u3063\u3066\u5f8c\u3067\u708e\u4e0a\uff08\u30af\u30ec\u30fc\u30e0\u5bfe\u5fdc\uff09\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u5171\u6709\u30b5\u30fc\u30d0\u3084\u8907\u6570\u30a2\u30d7\u30ea\u540c\u5c45\u74b0\u5883\u3067\u306f\u3001\u5f71\u97ff\u7bc4\u56f2\u306e\u898b\u7a4d\u3082\u308a\u304c\u5fc5\u9808\u3067\u3059\u3002<\/p> <hr> <p>\u6700\u5f8c\u306b\u300c\u898b\u3048\u3066\u308b\u6a29\u9650\u304c\u771f\u5b9f\u3068\u306f\u9650\u3089\u306a\u3044\u300d\u554f\u984c\u3067\u3059\u3002ls -l \u3067\u898b\u3048\u308b\u306e\u306f\u57fa\u672c\u6a29\u9650\uff08\u6240\u6709\u8005\/\u30b0\u30eb\u30fc\u30d7\/\u305d\u306e\u4ed6\uff09\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b\u306fACL\u3084AppArmor\u306a\u3069\u304c\u5225\u30ec\u30a4\u30e4\u3067\u52b9\u304d\u307e\u3059\u3002\u3064\u307e\u308a\u3001chmod\u3067\u958b\u3051\u305f\u3064\u3082\u308a\u3067\u3082\u3001\u5225\u30ec\u30a4\u30e4\u304c\u62d2\u5426\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u6b8b\u308a\u307e\u3059\u3002\u6b21\u7ae0\u4ee5\u964d\u3067\u3001ACL\uff08getfacl\/setfacl\uff09\u3084umask\u3001sudo\/systemd\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3068\u3044\u3063\u305f\u201c\u91cd\u306a\u308a\u201d\u3092\u9806\u306b\u307b\u3069\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p> <p>\u3053\u3053\u307e\u3067\u306e\u6bb5\u968e\u3067\u306e\u73fe\u5b9f\u7684\u306a\u6307\u91dd\u3068\u3057\u3066\u306f\u3001<strong>\u6700\u5c0f\u5909\u66f4\u3067\u66ab\u5b9a\u5fa9\u65e7\uff08\u88ab\u5bb3\u6700\u5c0f\u5316\uff09\u2192\u539f\u56e0\u306e\u78ba\u5b9a\u2192\u6052\u4e45\u5bfe\u7b56<\/strong>\u306e\u9806\u304c\u5b89\u5168\u3067\u3059\u3002\u696d\u52d9\u5f71\u97ff\u304c\u5927\u304d\u3044\u5834\u5408\u3084\u3001\u76e3\u67fb\u30fb\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8981\u4ef6\u304c\u7d61\u3080\u5834\u5408\u306f\u3001\u4e00\u822c\u8ad6\u3060\u3051\u3067\u306f\u5224\u65ad\u304c\u96e3\u3057\u3044\u305f\u3081\u3001\u5c02\u9580\u5bb6\u306b\u8a2d\u8a08\u306e\u89b3\u70b9\u304b\u3089\u76f8\u8ac7\u3059\u308b\u306e\u304c\u7d50\u679c\u7684\u306b\u65e9\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p> \r\n\r\n\r\n\r\n<p>\u3000<\/p> <a id=\"sec05\"><\/a> <h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c5\u7ae0\uff1aACL\u3067\u8d77\u304d\u308b\u300c\u4f8b\u5916\u30eb\u30fc\u30eb\u300d\u2015\u2015getfacl\/setfacl\u3067\u53ef\u8996\u5316\u3057\u3066\u8179\u843d\u3061\u3055\u305b\u308b<\/h2> <p>\u300cls -l \u3067\u306f\u8aad\u3081\u308b\u6a29\u9650\u306b\u898b\u3048\u308b\u306e\u306b\u3001\u5b9f\u969b\u306fPermission denied\u300d\u2015\u2015\u3053\u306e\u30ba\u30ec\u3092\u751f\u3080\u4ee3\u8868\u683c\u304cACL\uff08Access Control List\uff09\u3067\u3059\u3002Ubuntu\u3067\u3082\u3001\u5171\u6709\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30c1\u30fc\u30e0\u904b\u7528\u306e\u90fd\u5408\u3067ACL\u3092\u5165\u308c\u3066\u3044\u308b\u73fe\u5834\u306f\u73cd\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u554f\u984c\u306f\u3001ACL\u304c\u201c\u4f8b\u5916\u30eb\u30fc\u30eb\u201d\u3068\u3057\u3066\u9759\u304b\u306b\u52b9\u304f\u305f\u3081\u3001\u3071\u3063\u3068\u898b\u3067\u6c17\u3065\u304d\u306b\u304f\u3044\u3053\u3068\u3067\u3059\u3002<\/p> <p>ACL\u306f\u3001\u6240\u6709\u8005\/\u30b0\u30eb\u30fc\u30d7\/\u305d\u306e\u4ed6\u306e3\u533a\u5206\u3060\u3051\u3067\u306f\u8868\u73fe\u3067\u304d\u306a\u3044\u6a29\u9650\uff08\u300c\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u3060\u3051\u8a31\u53ef\u300d\u300c\u3053\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u306f\u62d2\u5426\u300d\u306a\u3069\uff09\u3092\u4ed8\u4e0e\u3067\u304d\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u5f93\u6765\u306eUNIX\u6a29\u9650\u3092\u7406\u89e3\u3057\u3066\u3044\u308b\u4eba\u307b\u3069\u300c\u3053\u308c\u3067\u8db3\u308a\u308b\u306f\u305a\u300d\u3068\u601d\u3044\u8fbc\u307f\u3084\u3059\u3044\u3002\u3053\u3053\u304c\u843d\u3068\u3057\u7a74\u3067\u3059\u3002<\/p> <hr> <p>\u307e\u305a\u306f\u53ef\u8996\u5316\u3067\u3059\u3002ACL\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3001\u74b0\u5883\u306b\u3088\u3063\u3066\u306f <code>ls -l<\/code> \u306e\u6a29\u9650\u8868\u793a\u306e\u672b\u5c3e\u306b\u300c+\u300d\u304c\u4ed8\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\uff08\u4f8b\uff1a<code>drwxr-x---+<\/code>\uff09\u3002\u305f\u3060\u3057\u3001\u3059\u3079\u3066\u306e\u8868\u793a\u5f62\u614b\u3067\u6c17\u3065\u3051\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u78ba\u5b9f\u306a\u306e\u306f <code>getfacl<\/code> \u3067\u5b9f\u4f53\u3092\u898b\u308b\u3053\u3068\u3067\u3059\u3002<\/p> <pre><code>getfacl \/path\/to\/target getfacl -R \/path\/to\/dir | less<\/code><\/pre> <p>\u898b\u3069\u3053\u308d\u306f\u6b21\u306e\u884c\u3067\u3059\u3002<\/p> <ul> <li><p><strong>user:<\/strong> \u3084 <strong>group:<\/strong> \u306b\u500b\u5225\u6307\u5b9a\u304c\u5165\u3063\u3066\u3044\u306a\u3044\u304b<\/p><\/li> <li><p><strong>mask:<\/strong> \u304c\u610f\u56f3\u305b\u305a\u6a29\u9650\u3092\u7d5e\u3063\u3066\u3044\u306a\u3044\u304b\uff08ACL\u306e\u5b9f\u52b9\u6a29\u9650\u306b\u5f71\u97ff\uff09<\/p><\/li> <li><p><strong>default:<\/strong> \u304c\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u8a2d\u5b9a\u3055\u308c\u3001\u65b0\u898f\u4f5c\u6210\u6642\u306b\u7d99\u627f\u3057\u3066\u3044\u306a\u3044\u304b<\/p><\/li> <\/ul> <hr> <p>\u3053\u3053\u3067\u73fe\u5834\u306e\u300c\u5fc3\u306e\u4f1a\u8a71\u300d\u3092\u4e00\u3064\u3002ACL\u304c\u898b\u3064\u304b\u3063\u305f\u77ac\u9593\u3001\u3053\u3046\u306a\u308a\u304c\u3061\u3067\u3059\u3002<\/p> <ul> <li><p>\u300c\u3048\u3001ACL\u5165\u3063\u3066\u305f\u306e\u304b\u2026\u8ab0\u304c\u3044\u3064\u8db3\u3057\u305f\uff1f\u300d<\/p><\/li> <li><p>\u300c\u4eca\u76f4\u3059\u306a\u3089\u6d88\u305b\u3070\u3044\u3044\uff1f \u3067\u3082\u6d88\u3057\u3066\u3044\u3044\u306e\u304b\u5206\u304b\u3089\u306a\u3044\u2026\u300d<\/p><\/li> <\/ul> <p>\u3053\u306e\u4e0d\u5b89\u306f\u6b63\u5f53\u3067\u3059\u3002ACL\u306f\u201c\u904b\u7528\u8a2d\u8a08\u306e\u610f\u601d\u201d\u3092\u53cd\u6620\u3057\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u76e3\u67fb\u5bfe\u5fdc\u3067\u300c\u7279\u5b9a\u30e6\u30fc\u30b6\u30fc\u3060\u3051\u95b2\u89a7\u53ef\u300d\u306b\u3057\u3066\u3044\u308b\u3001\u59d4\u8a17\u5148\u306b\u4e00\u6642\u7684\u306b\u6a29\u9650\u3092\u6e21\u3057\u305f\u3001\u306a\u3069\u3067\u3059\u3002\u7121\u95c7\u306b\u6d88\u3059\u3068\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e8b\u6545\u3084\u696d\u52d9\u4e0a\u306e\u30c8\u30e9\u30d6\u30eb\u306b\u306a\u308a\u5f97\u307e\u3059\u3002<\/p> <hr> <p>\u5bfe\u7b56\u306e\u57fa\u672c\u306f\u300c\u5f71\u97ff\u7bc4\u56f2\u3092\u898b\u7a4d\u3082\u308b\u300d\u300c\u6700\u5c0f\u5909\u66f4\u3067\u53ce\u675f\u3055\u305b\u308b\u300d\u3067\u3059\u3002\u6b21\u306e\u3088\u3046\u306a\u6574\u7406\u304c\u5f79\u306b\u7acb\u3061\u307e\u3059\u3002<\/p> <table border=\"1\" cellpadding=\"6\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%;\"> <tr> <th style=\"background-color:#eeeeee; text-align:left;\">\u72b6\u6cc1<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u3088\u304f\u3042\u308b\u539f\u56e0<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u73fe\u5b9f\u7684\u306a\u6253\u3061\u624b<\/th> <\/tr> <tr> <td>\u7279\u5b9a\u30e6\u30fc\u30b6\u30fc\u3060\u3051\u62d2\u5426\u3055\u308c\u308b<\/td> <td>ACL\u3067\u500b\u5225\u62d2\u5426\/\u672a\u4ed8\u4e0e\u3001mask\u3067\u5b9f\u52b9\u6a29\u9650\u304c\u843d\u3061\u308b<\/td> <td>getfacl\u3067\u5dee\u5206\u78ba\u8a8d\u2192\u5fc5\u8981\u6700\u5c0f\u306eACL\u8ffd\u52a0\/\u4fee\u6b63<\/td> <\/tr> <tr> <td>\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u6bce\u56de\u6a29\u9650\u304c\u30ba\u30ec\u308b<\/td> <td>default ACL \u3084 umask \u306e\u5f71\u97ff<\/td> <td>default ACL\/umask\/\u30b0\u30eb\u30fc\u30d7\u8a2d\u8a08\u3092\u898b\u76f4\u3059<\/td> <\/tr> <tr> <td>chmod\u3057\u3066\u3082\u76f4\u3089\u306a\u3044<\/td> <td>ACL\u3084\u8ffd\u52a0\u5236\u5fa1\u304c\u512a\u5148\/\u4f75\u7528<\/td> <td>ACL\u306e\u5b9f\u52b9\u6a29\u9650\u3092\u78ba\u5b9a\u2192\u6b21\u7ae0\u306eumask\u3084systemd\u3078<\/td> <\/tr> <\/table> <p>\u3053\u306e\u7ae0\u306e\u7d50\u8ad6\u306f\u3001<strong>ACL\u306f\u300c\u898b\u3048\u306b\u304f\u3044\u4f8b\u5916\u30eb\u30fc\u30eb\u300d\u306a\u306e\u3067\u3001\u307e\u305a\u53ef\u8996\u5316\u3057\u3066\u304b\u3089\u89e6\u308b<\/strong>\u3067\u3059\u3002\u6b21\u7ae0\u3067\u306f\u3001\u904b\u7528\u3067\u518d\u767a\u3057\u3084\u3059\u3044\u300cumask\u300d\u3068\u201c\u65b0\u898f\u4f5c\u6210\u7269\u306e\u6a29\u9650\u304c\u52dd\u624b\u306b\u30ba\u30ec\u308b\u201d\u554f\u984c\u3092\u3001\u4ed5\u7d44\u307f\u3068\u3057\u3066\u6291\u3048\u8fbc\u307f\u307e\u3059\u3002<\/p> \r\n\r\n\r\n\r\n<p>\u3000<\/p> <a id=\"sec06\"><\/a> <h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c6\u7ae0\uff1aumask\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u6a29\u9650\u2015\u2015\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u304c\u6bce\u56de\u30ba\u30ec\u308b\u6839\u672c\u539f\u56e0<\/h2> <p>Permission denied\u304c\u300c\u4e00\u5ea6\u76f4\u3057\u305f\u306f\u305a\u306a\u306e\u306b\u3001\u7fcc\u65e5\u307e\u305f\u51fa\u308b\u300d\u30bf\u30a4\u30d7\u3067\u518d\u767a\u3059\u308b\u3068\u304d\u3001\u72af\u4eba\u306b\u306a\u308a\u3084\u3059\u3044\u306e\u304cumask\u3067\u3059\u3002umask\u306f\u201c\u30c7\u30d5\u30a9\u30eb\u30c8\u6a29\u9650\u3092\u3069\u3046\u524a\u308b\u304b\u201d\u306e\u8a2d\u5b9a\u3067\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u308b\u3068\u304d\u306b\u52b9\u304d\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u904e\u53bb\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u76f4\u3057\u3066\u3082\u3001\u672a\u6765\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u307e\u305f\u30ba\u30ec\u3066\u3001\u30a8\u30e9\u30fc\u304c\u518d\u767a\u3057\u307e\u3059\u3002<\/p> <p>\u3053\u306e\u518d\u767a\u306f\u3001\u73fe\u5834\u306e\u6e29\u5ea6\u3092\u4e0a\u3052\u307e\u3059\u3002<\/p> <ul> <li><p>\u300c\u6628\u65e5\u76f4\u3057\u305f\u306e\u306b\u307e\u305f\uff1f \u4ffa\u306e\u4f5c\u696d\u3001\u610f\u5473\u3042\u3063\u305f\uff1f\u300d<\/p><\/li> <li><p>\u300c\u904b\u7528\u3067\u6bce\u56de\u624b\u76f4\u3057\u3068\u304b\u3001\u7121\u7406\u3060\u3088\u2026\u300d<\/p><\/li> <\/ul> <p>\u3053\u306e\u611f\u899a\u306f\u6b63\u3057\u3044\u3067\u3059\u3002\u3053\u3053\u306f\u201c\u624b\u4f5c\u696d\u201d\u3067\u306f\u306a\u304f\u201c\u4ed5\u7d44\u307f\u201d\u3067\u6e29\u5ea6\u3092\u4e0b\u3052\u308b\u3079\u304d\u9818\u57df\u3067\u3059\u3002<\/p> <hr> <p>umask\u306f\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u3067\u52b9\u304d\u307e\u3059\u3002\u30ed\u30b0\u30a4\u30f3\u30b7\u30a7\u30eb\u3001sudo\u3001systemd\u30b5\u30fc\u30d3\u30b9\u3001cron\u3001\u30b3\u30f3\u30c6\u30ca\u3001\u3069\u306e\u7d4c\u8def\u3067\u8d77\u52d5\u3057\u305f\u304b\u3067\u5024\u304c\u5909\u308f\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u304c\u3084\u3084\u3053\u3057\u3044\u30dd\u30a4\u30f3\u30c8\u3067\u3001\u958b\u767a\u8005\u304c\u30ed\u30fc\u30ab\u30eb\u3067\u8a66\u3057\u305f\u3068\u304d\u306eumask\u3068\u3001\u672c\u756a\u30b5\u30fc\u30d3\u30b9\u306eumask\u304c\u9055\u3046\u3001\u3068\u3044\u3046\u3053\u3068\u304c\u8d77\u304d\u307e\u3059\u3002<\/p> <p>\u78ba\u8a8d\u306e\u4f8b\uff08\u5b9f\u884c\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u4f7f\u3044\u5206\u3051\u307e\u3059\uff09\u3002<\/p> <pre><code>umask grep -R \"UMask\" \/etc\/systemd\/system \/lib\/systemd\/system 2&gt;\/dev\/null systemctl show &lt;service&gt; -p UMask<\/code><\/pre> <hr> <p>\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u201c\u5178\u578b\u7684\u306a\u5dee\u201d\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p> <table border=\"1\" cellpadding=\"6\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%;\"> <tr> <th style=\"background-color:#eeeeee; text-align:left;\">\u4f5c\u6210\u7269<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u672c\u6765\u306e\u6700\u5927\u6a29\u9650\uff08\u4e00\u822c\u7684\uff09<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">umask\u3067\u524a\u3089\u308c\u308b<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u73fe\u5834\u306e\u75c7\u72b6<\/th> <\/tr> <tr> <td>\u30d5\u30a1\u30a4\u30eb<\/td> <td>666\uff08rw-rw-rw-\uff09<\/td> <td>umask\u5206\u304c\u5f15\u304b\u308c\u308b<\/td> <td>\u30b0\u30eb\u30fc\u30d7\u304c\u8aad\u3081\u305a\u30a2\u30d7\u30ea\u304c\u843d\u3061\u308b<\/td> <\/tr> <tr> <td>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/td> <td>777\uff08rwxrwxrwx\uff09<\/td> <td>umask\u5206\u304c\u5f15\u304b\u308c\u308b<\/td> <td>\u63a2\u7d22\u6a29\u9650x\u304c\u843d\u3061\u3066\u5230\u9054\u3067\u304d\u306a\u3044<\/td> <\/tr> <\/table> <p>\u3088\u304f\u3042\u308b\u306e\u304c\u300c\u30ed\u30b0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u914d\u4e0b\u306b\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u3089\u308c\u305f\u77ac\u9593\u3060\u3051\u8aad\u3081\u306a\u3044\uff0f\u66f8\u3051\u306a\u3044\u300d\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u4f5c\u6210\u30d7\u30ed\u30bb\u30b9\u306eumask\u304c\u53b3\u3057\u3059\u304e\u3066\u3001\u904b\u7528\u60f3\u5b9a\u3088\u308a\u9589\u3058\u305f\u6a29\u9650\u3067\u751f\u6210\u3055\u308c\u308b\u305f\u3081\u306b\u8d77\u304d\u307e\u3059\u3002chmod\u3067\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u3057\u3066\u3082\u3001\u5c06\u6765\u4f5c\u3089\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u52b9\u304d\u307e\u305b\u3093\u3002<\/p> <hr> <p>\u6052\u4e45\u5bfe\u7b56\u3068\u3057\u3066\u306f\u3001\u6b21\u306e\u3069\u308c\u3092\u63a1\u308b\u304b\u3092\u8a2d\u8a08\u3067\u6c7a\u3081\u307e\u3059\u3002<\/p> <ul> <li><p><strong>systemd\u5074\u3067UMask\u3092\u56fa\u5b9a<\/strong>\u3057\u3001\u30b5\u30fc\u30d3\u30b9\u304c\u4f5c\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u6a29\u9650\u3092\u4e00\u8cab\u3055\u305b\u308b<\/p><\/li> <li><p><strong>\u30b0\u30eb\u30fc\u30d7\u904b\u7528\uff0bsetgid\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/strong>\u3067\u3001\u6240\u6709\u30b0\u30eb\u30fc\u30d7\u306e\u30ba\u30ec\u3092\u6291\u3048\u308b<\/p><\/li> <li><p><strong>default ACL<\/strong>\u3067\u3001\u65b0\u898f\u4f5c\u6210\u7269\u306b\u5fc5\u8981\u6a29\u9650\u3092\u7d99\u627f\u3055\u305b\u308b<\/p><\/li> <\/ul> <p>\u3069\u308c\u304c\u6700\u9069\u304b\u306f\u300c\u76e3\u67fb\u300d\u300c\u59d4\u8a17\u5148\u306e\u7bc4\u56f2\u300d\u300c\u4e8b\u6545\u6642\u306e\u5f71\u97ff\u7bc4\u56f2\u300d\u306b\u3088\u3063\u3066\u5909\u308f\u308a\u307e\u3059\u3002\u4e00\u822c\u8ad6\u3068\u3057\u3066\u306f\u3001\u904b\u7528\u30c1\u30fc\u30e0\u304c\u7406\u89e3\u3057\u3084\u3059\u304f\u3001\u30ec\u30d3\u30e5\u30fc\u53ef\u80fd\u306a\u4ed5\u7d44\u307f\u306b\u5bc4\u305b\u308b\u307b\u3069\u3001\u9577\u671f\u7684\u306b\u30c8\u30e9\u30d6\u30eb\u304c\u6e1b\u308a\u307e\u3059\u3002<\/p> <p>\u3053\u306e\u7ae0\u306e\u7d50\u8ad6\u306f\u3001<strong>\u518d\u767a\u3059\u308bEACCES\u306f\u201c\u4f5c\u6210\u6642\u306e\u30eb\u30fc\u30eb\uff08umask\/\u7d99\u627f\uff09\u201d\u304c\u539f\u56e0\u306b\u306a\u308a\u3084\u3059\u3044<\/strong>\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u6b21\u7ae0\u3067\u306f\u300csudo\u3067\u3082\u901a\u3089\u306a\u3044\u300d\u300croot\u3067\u3082\u30c0\u30e1\u300d\u306b\u898b\u3048\u308b\u30b1\u30fc\u30b9\u3092\u3001sudoers\u30fbsetuid\u30fbcapabilities\u306e\u89b3\u70b9\u3067\u6574\u7406\u3057\u307e\u3059\u3002<\/p> \r\n\r\n\r\n\r\n<p>\u3000<\/p> <a id=\"sec07\"><\/a> <h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c7\u7ae0\uff1asudo\u3067\u3082\u901a\u3089\u306a\u3044\u7406\u7531\u2015\u2015sudoers \/ setuid \/ capabilities \u306e\u4f7f\u3044\u5206\u3051<\/h2> <p>\u6a29\u9650\u30c8\u30e9\u30d6\u30eb\u3067\u3042\u308a\u304c\u3061\u306a\u201c\u8aa4\u89e3\u306e\u52a0\u901f\u201d\u304c\u3001\u300csudo\u3092\u4ed8\u3051\u308c\u3070\u4f55\u3067\u3082\u3067\u304d\u308b\u306f\u305a\u300d\u3068\u3044\u3046\u611f\u899a\u3067\u3059\u3002\u5b9f\u969b\u3001sudo\u3067\u89e3\u6c7a\u3059\u308b\u3053\u3068\u3082\u591a\u3044\u306e\u3067\u3059\u304c\u3001\u904b\u7528\u3068\u3057\u3066\u201csudo\u524d\u63d0\u306e\u30a2\u30d7\u30ea\u201d\u306f\u8a2d\u8a08\u304c\u7834\u7dbb\u3057\u3084\u3059\u3044\u3002\u3055\u3089\u306b\u3001sudo\u3067\u3082\u901a\u3089\u306a\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308b\u3002\u3053\u3053\u304c\u6df7\u4e71\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/p> <hr> <p>\u307e\u305a\u6574\u7406\u3057\u307e\u3059\u3002Linux\u306e\u7279\u6a29\u306b\u306f\u6bb5\u968e\u304c\u3042\u308a\u307e\u3059\u3002<\/p> <ul> <li><p><strong>sudo<\/strong>\uff1a\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u6642\u306b\u5225\u30e6\u30fc\u30b6\u30fc\uff08\u591a\u304f\u306froot\uff09\u3068\u3057\u3066\u5b9f\u884c\u3067\u304d\u308b\u4ed5\u7d44\u307f\u3002sudoers\u3067\u8a31\u53ef\u304c\u6c7a\u307e\u308b<\/p><\/li> <li><p><strong>setuid<\/strong>\uff1a\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306b\u300c\u5b9f\u52b9UID\u3092\u6240\u6709\u8005\u306b\u3059\u308b\u300d\u6027\u8cea\u3092\u4ed8\u3051\u308b\u4ed5\u7d44\u307f\u3002\u53e4\u5178\u7684\u3060\u304c\u6271\u3044\u306b\u6ce8\u610f\u304c\u5fc5\u8981<\/p><\/li> <li><p><strong>capabilities<\/strong>\uff1aroot\u6a29\u9650\u3092\u4e38\u3054\u3068\u6e21\u3059\u306e\u3067\u306f\u306a\u304f\u3001\u5fc5\u8981\u306a\u6a29\u9650\u3060\u3051\u3092\u4ed8\u4e0e\u3059\u308b\u8003\u3048\u65b9<\/p><\/li> <\/ul> <p>\u300c\u73fe\u5834\u304c\u697d\u306b\u306a\u308b\u306a\u3089\u5c0e\u5165\u3057\u305f\u3044\u3051\u3069\u3001\u30c8\u30e9\u30d6\u30eb\u306f\u5897\u3084\u3057\u305f\u304f\u306a\u3044\u300d\u3068\u3044\u3046\u672c\u97f3\u306b\u5bfe\u3057\u3066\u306f\u3001\u4e00\u822c\u306b<strong>capabilities\u3084systemd\u306e\u6a29\u9650\u4ed8\u4e0e\u306e\u65b9\u304c\u3001sudo\u4e71\u7528\u3088\u308a\u8a2d\u8a08\u304c\u5b89\u5b9a\u3057\u3084\u3059\u3044<\/strong>\u50be\u5411\u304c\u3042\u308a\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u8981\u4ef6\u6b21\u7b2c\u3067\u3059\u3002<\/p> <hr> <p>sudo\u3067\u3082\u901a\u3089\u306a\u3044\uff08\u307e\u305f\u306f\u671f\u5f85\u901a\u308a\u306b\u306a\u3089\u306a\u3044\uff09\u5178\u578b\u4f8b\u3092\u6319\u3052\u307e\u3059\u3002<\/p> <ul> <li><p><strong>sudo\u3057\u3066\u3082\u30a2\u30af\u30bb\u30b9\u5148\u304c\u5909\u308f\u308b<\/strong>\uff1aroot\u306e\u74b0\u5883\u5909\u6570\u3084\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5909\u308f\u308a\u3001\u5225\u30d1\u30b9\u3092\u898b\u3066\u3057\u307e\u3046<\/p><\/li> <li><p><strong>sudo\u3067\u8d77\u52d5\u3057\u305f\u304c\u3001\u5b50\u30d7\u30ed\u30bb\u30b9\u306f\u5225\u30e6\u30fc\u30b6\u30fc<\/strong>\uff1asystemd\u3084\u30a2\u30d7\u30ea\u304c\u5185\u90e8\u3067\u6a29\u9650\u3092\u843d\u3068\u3057\u3066\u3044\u308b<\/p><\/li> <li><p><strong>\u8ffd\u52a0\u5236\u5fa1\u304c\u62d2\u5426<\/strong>\uff1aAppArmor\u7b49\u304c\u30d7\u30ed\u30bb\u30b9\u306e\u632f\u308b\u821e\u3044\u3092\u5236\u9650\u3057\u3001root\u3067\u3082\u8a31\u53ef\u3055\u308c\u306a\u3044\u8a2d\u8a08\u304c\u3042\u308b<\/p><\/li> <\/ul> <p>\u7279\u306b3\u3064\u76ee\u306f\u300croot\u3067\u3082\u30c0\u30e1\u300d\u306e\u6b63\u4f53\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002Ubuntu\u3067\u306fAppArmor\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\u9069\u7528\u3055\u308c\u3066\u3044\u308b\u3068\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30d1\u30b9\u304c\u5236\u9650\u3055\u308c\u307e\u3059\u3002\u3053\u3053\u306f\u201c\u6a29\u9650\u201d\u3068\u3044\u3046\u3088\u308a\u201c\u30dd\u30ea\u30b7\u30fc\u201d\u306e\u8a71\u3067\u3001chmod\/chown\u3068\u306f\u5225\u30ec\u30a4\u30e4\u3067\u3059\u3002<\/p> <hr> <p>\u8a2d\u8a08\u306e\u89b3\u70b9\u3067\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u8003\u3048\u308b\u3068\u6574\u7406\u3057\u3084\u3059\u3044\u3067\u3059\u3002<\/p> <table border=\"1\" cellpadding=\"6\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%;\"> <tr> <th style=\"background-color:#eeeeee; text-align:left;\">\u3084\u308a\u305f\u3044\u3053\u3068<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u5b89\u5b9a\u3057\u3084\u3059\u3044\u65b9\u91dd<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u6ce8\u610f\u70b9<\/th> <\/tr> <tr> <td>\u7279\u5b9a\u30dd\u30fc\u30c8\u306b\u30d0\u30a4\u30f3\u30c9\u3057\u305f\u3044\uff08\u4f8b\uff1a1024\u672a\u6e80\uff09<\/td> <td>capabilities\u3067\u5fc5\u8981\u6a29\u9650\u306e\u307f\u4ed8\u4e0e<\/td> <td>\u30d0\u30a4\u30ca\u30ea\u66f4\u65b0\u6642\u306e\u7d99\u627f\u3084\u904b\u7528\u624b\u9806\u304c\u5fc5\u8981<\/td> <\/tr> <tr> <td>\u4e00\u6642\u7684\u306a\u8abf\u67fb\/\u5fa9\u65e7\u3067root\u4f5c\u696d\u3057\u305f\u3044<\/td> <td>sudo\u3067\u9650\u5b9a\u30b3\u30de\u30f3\u30c9\u8a31\u53ef<\/td> <td>\u6052\u4e45\u904b\u7528\u3092sudo\u524d\u63d0\u306b\u3057\u306a\u3044<\/td> <\/tr> <tr> <td>\u30a2\u30d7\u30ea\u3092\u5e38\u6642root\u3067\u52d5\u304b\u3057\u305f\u3044<\/td> <td>\u539f\u5247\u907f\u3051\u308b\uff08\u8a2d\u8a08\u898b\u76f4\u3057\uff09<\/td> <td>\u88ab\u5bb3\u7bc4\u56f2\u304c\u5927\u304d\u304f\u306a\u308a\u3084\u3059\u3044<\/td> <\/tr> <\/table> <p>\u3053\u306e\u7ae0\u306e\u7d50\u8ad6\u306f\u3001<strong>sudo\u306f\u201c\u5207\u308a\u5206\u3051\u3084\u66ab\u5b9a\u5fa9\u65e7\u201d\u306b\u306f\u5f37\u3044\u304c\u3001\u201c\u6052\u4e45\u904b\u7528\u306e\u7b54\u3048\u201d\u3068\u306f\u9650\u3089\u306a\u3044<\/strong>\u3067\u3059\u3002\u6b21\u7ae0\u3067\u306f\u3001Ubuntu\u904b\u7528\u3067\u73fe\u5b9f\u306b\u30cf\u30de\u308a\u3084\u3059\u3044systemd\u306e\u8a2d\u5b9a\uff08User\/Group\/Protect* \u7b49\uff09\u304c\u3001Permission denied\u306e\u539f\u56e0\u306b\u306a\u308b\u30b1\u30fc\u30b9\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p> \r\n\r\n\r\n\r\n<p>\u3000<\/p> <a id=\"sec08\"><\/a> <h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c8\u7ae0\uff1asystemd\u306e\u9632\u5fa1\u8a2d\u5b9a\u304c\u7de0\u3081\u51fa\u3059\u2015\u2015User\/Group\/Protect*\u3068\u5b9f\u884c\u6a29\u9650\u306e\u95a2\u4fc2<\/h2> <p>Ubuntu\u904b\u7528\u3067\u300c\u624b\u52d5\u3060\u3068\u901a\u308b\u306e\u306b\u3001\u30b5\u30fc\u30d3\u30b9\u3060\u3068Permission denied\u300d\u304c\u51fa\u308b\u3068\u304d\u3001systemd\u30e6\u30cb\u30c3\u30c8\u306e\u8a2d\u5b9a\u304c\u539f\u56e0\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u306f\u76f2\u70b9\u306b\u306a\u308a\u3084\u3059\u3044\u3002\u306a\u305c\u306a\u3089\u3001\u30a2\u30d7\u30ea\u958b\u767a\u8005\u304c\u610f\u8b58\u3059\u308b\u306e\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3068\u30d5\u30a1\u30a4\u30eb\u6a29\u9650\u3067\u3059\u304c\u3001systemd\u306f\u201c\u30d7\u30ed\u30bb\u30b9\u306e\u5b9f\u884c\u74b0\u5883\u305d\u306e\u3082\u306e\u201d\u3092\u5236\u5fa1\u3059\u308b\u304b\u3089\u3067\u3059\u3002<\/p> <p>\u73fe\u5834\u306e\u5fc3\u306e\u58f0\u306f\u3060\u3044\u305f\u3044\u3053\u3046\u3067\u3059\u3002<\/p> <ul> <li><p>\u300c\u540c\u3058\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u3044\u3066\u308b\u306e\u306b\u3001\u30b5\u30fc\u30d3\u30b9\u3060\u3068\u30c0\u30e1\u2026\uff1f\u300d<\/p><\/li> <li><p>\u300c\u30e6\u30cb\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3001\u8ab0\u304c\u3069\u3053\u307e\u3067\u56fa\u3081\u305f\u3093\u3060\u3063\u3051\u300d<\/p><\/li> <\/ul> <p>\u3053\u306e\u30e2\u30e4\u30e2\u30e4\u306f\u81ea\u7136\u3067\u3059\u3002systemd\u306f\u904b\u7528\u306e\u5b89\u5168\u6027\u3092\u4e0a\u3052\u308b\u4e00\u65b9\u3067\u3001\u5236\u9650\u304c\u5f37\u3044\u3068\u610f\u56f3\u305b\u305a\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u3092\u8d77\u3053\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u3088\u304f\u52b9\u304f\u9805\u76ee\u3092\u201c\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\u5316\u201d\u3057\u3066\u3001\u5207\u308a\u5206\u3051\u3092\u30b9\u30c8\u30c3\u30d1\u30fc\u3067\u6574\u7406\u3057\u307e\u3059\u3002<\/p> <hr> <p>\u307e\u305a\u57fa\u672c\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u3067\u3059\u3002\u30e6\u30cb\u30c3\u30c8\u306b <code>User=<\/code> \u3084 <code>Group=<\/code> \u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u306e\u6a29\u9650\u306f\u95a2\u4fc2\u3042\u308a\u307e\u305b\u3093\u3002\u7b2c3\u7ae0\u306e\u300c\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u78ba\u8a8d\u300d\u304c\u3053\u3053\u306b\u7e4b\u304c\u308a\u307e\u3059\u3002<\/p> <p>\u6b21\u306b\u3001systemd\u306e\u4fdd\u8b77\u7cfb\u8a2d\u5b9a\u3067\u3059\u3002Ubuntu\u74b0\u5883\u3067\u3082\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\u306e\u4e00\u74b0\u3068\u3057\u3066\u3088\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002\u4ee3\u8868\u7684\u306a\u3082\u306e\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p> <table border=\"1\" cellpadding=\"6\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%;\"> <tr> <th style=\"background-color:#eeeeee; text-align:left;\">\u8a2d\u5b9a<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u52b9\u679c\uff08\u3056\u3063\u304f\u308a\uff09<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">Permission denied\u306b\u306a\u308a\u3084\u3059\u3044\u4f8b<\/th> <\/tr> <tr> <td>ReadOnlyPaths= \/ InaccessiblePaths=<\/td> <td>\u6307\u5b9a\u30d1\u30b9\u3092\u8aad\u307f\u53d6\u308a\u5c02\u7528\/\u4e0d\u53ef\u306b\u3059\u308b<\/td> <td>\/var\/log \u3084 \/etc \u914d\u4e0b\u3078\u306e\u66f8\u304d\u8fbc\u307f\u30fb\u53c2\u7167\u304c\u62d2\u5426<\/td> <\/tr> <tr> <td>ProtectSystem=<\/td> <td>\u30b7\u30b9\u30c6\u30e0\u9818\u57df\u3092\u4fdd\u8b77<\/td> <td>\u60f3\u5b9a\u5916\u306e\u66f8\u304d\u8fbc\u307f\u5148\u304c\u30b7\u30b9\u30c6\u30e0\u5074\u306b\u3042\u308b\u3068\u5931\u6557<\/td> <\/tr> <tr> <td>ProtectHome=<\/td> <td>\/home \u7b49\u3078\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650<\/td> <td>\u30db\u30fc\u30e0\u914d\u4e0b\u306e\u8a2d\u5b9a\u30fb\u9375\u30fb\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044<\/td> <\/tr> <tr> <td>PrivateTmp=<\/td> <td>\/tmp \u3092\u30b5\u30fc\u30d3\u30b9\u5c02\u7528\u306b\u3059\u308b<\/td> <td>\u5225\u30d7\u30ed\u30bb\u30b9\u3068\/tmp\u7d4c\u7531\u3067\u9023\u643a\u3057\u3066\u3044\u308b\u3068\u898b\u3048\u306a\u304f\u306a\u308b<\/td> <\/tr> <tr> <td>UMask=<\/td> <td>\u30b5\u30fc\u30d3\u30b9\u306eumask\u3092\u56fa\u5b9a<\/td> <td>\u65b0\u898f\u4f5c\u6210\u7269\u306e\u6a29\u9650\u304c\u9589\u3058\u3066\u518d\u767a\uff08\u7b2c6\u7ae0\u3068\u63a5\u7d9a\uff09<\/td> <\/tr> <\/table> <hr> <p>\u3053\u3053\u3067\u5927\u4e8b\u306a\u306e\u306f\u3001\u300c\u4fdd\u8b77\u8a2d\u5b9a\u3092\u5168\u90e8OFF\u306b\u3057\u3066\u76f4\u3059\u300d\u3067\u306f\u306a\u304f\u3001<strong>\u3069\u306e\u5236\u9650\u304c\u62d2\u5426\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u7279\u5b9a\u3057\u3066\u3001\u5fc5\u8981\u6700\u5c0f\u306e\u8a31\u53ef\u306b\u843d\u3068\u3059<\/strong>\u3053\u3068\u3067\u3059\u3002BtoB\u306e\u73fe\u5834\u3060\u3068\u3001\u76e3\u67fb\u3084\u30a4\u30f3\u30b7\u30c7\u30f3\u30c8\u5bfe\u5fdc\u306e\u89b3\u70b9\u3067\u300c\u306a\u305c\u305d\u306e\u6a29\u9650\u304c\u5fc5\u8981\u304b\u300d\u3092\u8aac\u660e\u3067\u304d\u308b\u72b6\u614b\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p> <p>\u78ba\u8a8d\u306e\u89b3\u70b9\u3068\u3057\u3066\u306f\u3001\u30e6\u30cb\u30c3\u30c8\u306e\u5b9f\u52b9\u8a2d\u5b9a\u3092\u898b\u3066\u3001\u30a2\u30d7\u30ea\u304c\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3079\u304d\u30d1\u30b9\u3068\u7167\u5408\u3059\u308b\u306e\u304c\u738b\u9053\u3067\u3059\u3002<\/p> <pre><code>systemctl cat &lt;service&gt; systemctl show &lt;service&gt; | grep -E \"User=|Group=|UMask=|Protect|ReadOnlyPaths|InaccessiblePaths|PrivateTmp\"<\/code><\/pre> <hr> <p>\u3053\u306e\u7ae0\u306e\u7d50\u8ad6\u306f\u3001<strong>systemd\u306f\u201c\u6a29\u9650\u30a8\u30e9\u30fc\u306e\u767a\u751f\u6e90\u201d\u306b\u3082\u201c\u518d\u767a\u9632\u6b62\u306e\u4ed5\u7d44\u307f\u201d\u306b\u3082\u306a\u308b<\/strong>\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u6b21\u7ae0\u3067\u306f\u3001\u3055\u3089\u306b\u3084\u3084\u3053\u3057\u3044\u300c\u30b3\u30f3\u30c6\u30ca\u300d\u300cNFS\u300d\u300c\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u300d\u3067\u8d77\u304d\u308bUID\/GID\u30ba\u30ec\u3084root_squash\u306a\u3069\u3001\u6a29\u9650\u304c\u201c\u5225\u4e16\u754c\u306b\u6301\u3061\u8d8a\u3055\u308c\u308b\u201d\u554f\u984c\u3092\u6271\u3044\u307e\u3059\u3002<\/p> \r\n\r\n\r\n\r\n<p>\u3000<\/p> <a id=\"sec09\"><\/a> <h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c9\u7ae0\uff1a\u30b3\u30f3\u30c6\u30ca\u30fbNFS\u30fb\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u843d\u3068\u3057\u7a74\u2015\u2015UID\/GID\u30ba\u30ec\u3068root_squash<\/h2> <p>Permission denied\u304c\u9577\u5f15\u304f\u6848\u4ef6\u3067\u3001\u6700\u5f8c\u306b\u51fa\u3066\u304f\u308b\u201c\u30e9\u30b9\u30dc\u30b9\u201d\u304c\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u7cfb\u3067\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u3084NFS\u3001NAS\u3001\u30af\u30e9\u30a6\u30c9\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u30de\u30a6\u30f3\u30c8\u306a\u3069\u304c\u7d61\u3080\u3068\u3001\u30ed\u30fc\u30ab\u30eb\u306echmod\/chown\u306e\u76f4\u611f\u304c\u52b9\u304d\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u8b70\u8ad6\u304c\u904e\u71b1\u3057\u304c\u3061\u306a\u306e\u306f\u3001\u8ab0\u306e\u8cac\u4efb\u3067\u3082\u306a\u304f\u300c\u5883\u754c\u306e\u4ed5\u69d8\u300d\u304c\u539f\u56e0\u3067\u8d77\u304d\u308b\u304b\u3089\u3067\u3059\u3002<\/p> <hr> <p>\u4ee3\u8868\u7684\u306a\u306e\u306fUID\/GID\u306e\u30ba\u30ec\u3067\u3059\u3002Linux\u306e\u30d5\u30a1\u30a4\u30eb\u6240\u6709\u8005\u306f\u201c\u540d\u524d\u201d\u3067\u306f\u306a\u304f\u201c\u6570\u5024\uff08UID\/GID\uff09\u201d\u3067\u7ba1\u7406\u3055\u308c\u307e\u3059\u3002\u30db\u30b9\u30c8A\u3067\u306fUID 1001\u304cappuser\u3001\u30db\u30b9\u30c8B\u3067\u306fUID 1001\u304c\u5225\u30e6\u30fc\u30b6\u30fc\u3001\u3068\u3044\u3046\u72b6\u614b\u3067\u5171\u6709\u3059\u308b\u3068\u3001\u6240\u6709\u8005\u304c\u610f\u56f3\u305b\u305a\u5909\u308f\u308a\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u3082\u540c\u69d8\u3067\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30e6\u30fc\u30b6\u30fcID\u3068\u30db\u30b9\u30c8\u5074\u306eID\u304c\u4e00\u81f4\u3057\u3066\u3044\u306a\u3044\u3068\u3001\u30de\u30a6\u30f3\u30c8\u5148\u3067\u62d2\u5426\u304c\u8d77\u304d\u307e\u3059\u3002<\/p> <p>\u73fe\u5834\u306e\u4f1a\u8a71\u3068\u3057\u3066\u306f\u3001\u3053\u3046\u3044\u3046\u611f\u3058\u3067\u3059\u3002<\/p> <ul> <li><p>\u300c\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u306f\u66f8\u3051\u308b\u60f3\u5b9a\u306a\u306e\u306b\u3001\u30dc\u30ea\u30e5\u30fc\u30e0\u304c\u62d2\u5426\u3059\u308b\u2026\u300d<\/p><\/li> <li><p>\u300cchown\u3057\u305f\u3089\u76f4\u308b\uff1f \u3067\u3082NFS\u5074\u3067\u53cd\u6620\u3055\u308c\u306a\u3044\u3093\u3060\u3051\u3069\u300d<\/p><\/li> <\/ul> <hr> <p>NFS\u3067\u306f\u3001\u30b5\u30fc\u30d0\u5074\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u8a2d\u5b9a\u304c\u7d61\u307f\u307e\u3059\u3002\u7279\u306b\u6709\u540d\u306a\u306e\u304c root_squash \u3067\u3059\u3002\u3053\u308c\u306f\u201c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306eroot\u3092\u3001\u30b5\u30fc\u30d0\u5074\u3067\u306f\u533f\u540d\u30e6\u30fc\u30b6\u30fc\u6271\u3044\u306b\u3059\u308b\u201d\u6319\u52d5\u3067\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u7406\u7531\u3067\u4e00\u822c\u7684\u306b\u6709\u52b9\u5316\u3055\u308c\u307e\u3059\u3002\u3059\u308b\u3068\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067sudo\/root\u3067\u64cd\u4f5c\u3057\u3066\u3082\u3001\u30b5\u30fc\u30d0\u5074\u3067\u306f\u6a29\u9650\u304c\u306a\u3044\u6271\u3044\u306b\u306a\u308a\u3001Permission denied\u306b\u898b\u3048\u307e\u3059\u3002<\/p> <p>\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u306f\u300croot\u3067\u3082\u30c0\u30e1\u300d\u306e\u5178\u578b\u3067\u3001chmod\/chown\u3067\u306f\u89e3\u6c7a\u3057\u307e\u305b\u3093\u3002\u5fc5\u8981\u306a\u306e\u306f\u3001\u5171\u6709\u306e\u8a2d\u8a08\uff08\u3069\u306eUID\/GID\u3067\u66f8\u304f\u304b\u3001\u3069\u306e\u7bc4\u56f2\u3092\u8a31\u53ef\u3059\u308b\u304b\uff09\u3068\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u5074\u8a2d\u5b9a\u306e\u6574\u5408\u3067\u3059\u3002<\/p> <hr> <p>\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u7d61\u307f\u306e\u5207\u308a\u5206\u3051\u3092\u201c\u53ce\u675f\u201d\u3055\u305b\u308b\u305f\u3081\u306e\u89b3\u70b9\u3092\u307e\u3068\u3081\u307e\u3059\u3002<\/p> <table border=\"1\" cellpadding=\"6\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%;\"> <tr> <th style=\"background-color:#eeeeee; text-align:left;\">\u73fe\u8c61<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u7591\u3046\u3079\u304d\u30dd\u30a4\u30f3\u30c8<\/th> <th style=\"background-color:#eeeeee; text-align:left;\">\u6b21\u306b\u78ba\u8a8d\u3059\u308b\u3053\u3068<\/th> <\/tr> <tr> <td>\u30db\u30b9\u30c8\u3067\u306fOK\u3001\u30b3\u30f3\u30c6\u30ca\u3067\u62d2\u5426<\/td> <td>\u30b3\u30f3\u30c6\u30ca\u306e\u5b9f\u52b9UID\/GID\u3001\u30dc\u30ea\u30e5\u30fc\u30e0\u6240\u6709\u6a29<\/td> <td>\u30b3\u30f3\u30c6\u30ca\u5185\u306eid\u3001\u30de\u30a6\u30f3\u30c8\u5148\u306e\u6240\u6709UID\/GID<\/td> <\/tr> <tr> <td>sudo\/root\u3067\u3082\u62d2\u5426<\/td> <td>NFS\u306eroot_squash\u3001\u30b5\u30fc\u30d0\u5074\u6a29\u9650<\/td> <td>NFS\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u8a2d\u5b9a\u3001\u30b5\u30fc\u30d0\u5074\u306e\u6240\u6709\u6a29\/ACL<\/td> <\/tr> <tr> <td>\u7279\u5b9a\u30db\u30b9\u30c8\u3060\u3051\u62d2\u5426<\/td> <td>UID\/GID\u306e\u4e0d\u7d71\u4e00\u3001\u540d\u524d\u89e3\u6c7a\u306e\u5dee<\/td> <td>\u5404\u30db\u30b9\u30c8\u306e \/etc\/passwd \/ id \u306e\u6574\u5408<\/td> <\/tr> <\/table> <hr> <p>\u3053\u3053\u3067\u306e\u8981\u70b9\u306f\u3001<strong>\u5883\u754c\u3092\u307e\u305f\u3050\u3068\u300c\u540c\u3058\u30e6\u30fc\u30b6\u30fc\u300d\u306b\u898b\u3048\u3066\u3082\u5225\u7269\u306b\u306a\u308b<\/strong>\u3068\u3044\u3046\u73fe\u5b9f\u3067\u3059\u3002BtoB\u306e\u73fe\u5834\u3067\u306f\u3001NAS\u3084\u4eee\u60f3\u5316\u57fa\u76e4\u3001\u30b3\u30f3\u30c6\u30ca\u57fa\u76e4\u3001\u76e3\u67fb\u8981\u4ef6\u304c\u7d61\u307f\u3001\u5358\u7d14\u306b\u6a29\u9650\u3092\u5e83\u3052\u308c\u3070\u826f\u3044\u8a71\u3067\u306f\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u4e00\u822c\u8ad6\u3060\u3051\u3067\u7a81\u304d\u9032\u3080\u3068\u3001\u60f3\u5b9a\u5916\u306e\u60c5\u5831\u6d41\u51fa\u30ea\u30b9\u30af\uff08\u640d\u5931\u30fb\u6d41\u51fa\uff09\u3092\u4f5c\u308a\u304b\u306d\u307e\u305b\u3093\u3002<\/p> <p>\u6b21\u7ae0\u3067\u306f\u3001\u3053\u308c\u307e\u3067\u306e\u5207\u308a\u5206\u3051\u3092\u8e0f\u307e\u3048\u3066\u300c\u518d\u767a\u3092\u6b62\u3081\u308b\u6a29\u9650\u8a2d\u8a08\u306e\u578b\u300d\u3068\u300c\u4e00\u822c\u8ad6\u306e\u9650\u754c\u300d\u3092\u6574\u7406\u3057\u3001\u76f8\u8ac7\u30fb\u4f9d\u983c\u306b\u81ea\u7136\u306b\u3064\u306a\u304c\u308b\u5f62\u3067\u307e\u3068\u3081\u307e\u3059\u3002<\/p> \r\n\r\n\r\n\r\n<p>\u3000<\/p> <a id=\"sec10\"><\/a> <h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c10\u7ae0\uff1a\u4ed5\u7d44\u307f\u3067\u518d\u767a\u3092\u6b62\u3081\u308b\u2015\u2015\u6a29\u9650\u8a2d\u8a08\u306e\u578b\u3068\u5207\u308a\u5206\u3051\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\uff08\u76f8\u8ac7\u306e\u76ee\u5b89\uff09<\/h2> <p>\u3053\u3053\u307e\u3067\u8aad\u3093\u3067\u3001\u300c\u7d50\u5c40\u3001\u6a29\u9650\u3063\u3066\u201c\u305d\u306e\u5834\u3057\u306e\u304e\u201d\u3067\u76f4\u3057\u3066\u3082\u518d\u767a\u3059\u308b\u300d\u3068\u611f\u3058\u305f\u306a\u3089\u3001\u305d\u308c\u306f\u6b63\u3057\u3044\u3067\u3059\u3002EACCES\u306e\u591a\u304f\u306f\u3001\u5358\u767a\u306e\u30df\u30b9\u3067\u306f\u306a\u304f\u201c\u8a2d\u8a08\u306e\u9699\u9593\u201d\u304b\u3089\u51fa\u3066\u304d\u307e\u3059\u3002\u3060\u304b\u3089\u6700\u5f8c\u306f\u3001\u500b\u5225\u306echmod\u30c6\u30af\u30cb\u30c3\u30af\u3067\u306f\u306a\u304f\u3001\u4ed5\u7d44\u307f\u3068\u3057\u3066\u306e\u518d\u767a\u9632\u6b62\u306b\u843d\u3068\u3057\u307e\u3059\u3002<\/p> <hr> <p>\u518d\u767a\u9632\u6b62\u306e\u57fa\u672c\u306f\u3001\u6a29\u9650\u3092\u6b21\u306e3\u30ec\u30a4\u30e4\u306b\u5206\u3051\u3066\u8a2d\u8a08\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p> <ol> <li><p><strong>\u5b9f\u884c\u4e3b\u4f53\uff08\u30d7\u30ed\u30bb\u30b9\uff09<\/strong>\uff1a\u3069\u306e\u30e6\u30fc\u30b6\u30fc\/\u30b0\u30eb\u30fc\u30d7\u3067\u52d5\u304b\u3059\u304b\uff08systemd\u306eUser=\u7b49\uff09<\/p><\/li> <li><p><strong>\u30c7\u30fc\u30bf\u9818\u57df<\/strong>\uff1a\u3069\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u8aad\u307f\u66f8\u304d\u3059\u308b\u304b\uff08\u30ed\u30b0\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3001\u6c38\u7d9a\u30c7\u30fc\u30bf\uff09<\/p><\/li> <li><p><strong>\u4f5c\u6210\u30eb\u30fc\u30eb<\/strong>\uff1a\u65b0\u898f\u4f5c\u6210\u7269\u306e\u6a29\u9650\u3092\u3069\u3046\u63c3\u3048\u308b\u304b\uff08UMask\u3001setgid\u3001default ACL\uff09<\/p><\/li> <\/ol> <p>\u3053\u306e3\u70b9\u304c\u63c3\u3046\u3068\u3001Permission denied\u306f\u201c\u4e8b\u6545\u201d\u3067\u306f\u306a\u304f\u201c\u691c\u51fa\u53ef\u80fd\u306a\u30ba\u30ec\u201d\u306b\u306a\u308a\u307e\u3059\u3002\u9006\u306b\u3001\u3069\u308c\u304b\u304c\u66d6\u6627\u3060\u3068\u3001\u62c5\u5f53\u8005\u304c\u5909\u308f\u3063\u305f\u3068\u304d\u306b\u518d\u767a\u3057\u3084\u3059\u3044\u3002<\/p> <hr> <p>\u3053\u3053\u3067\u3001\u73fe\u5834\u306b\u52b9\u304f\u300c\u5207\u308a\u5206\u3051\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\u300d\u3092\u77ed\u304f\u307e\u3068\u3081\u307e\u3059\u3002\u591c\u9593\u5bfe\u5fdc\u3067\u3082\u3001\u3053\u308c\u3092\u9806\u306b\u6f70\u3059\u3068\u7a7a\u6c17\u3092\u843d\u3061\u7740\u304b\u305b\u308b\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u3002<\/p> <ul> <li><p><strong>\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u78ba\u8a8d<\/strong>\uff1a\u30d7\u30ed\u30bb\u30b9\u306e\u5b9f\u52b9UID\/GID\u306f\u8ab0\u304b<\/p><\/li> <li><p><strong>\u5230\u9054\u78ba\u8a8d<\/strong>\uff1a\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u542b\u3081\u3066\u63a2\u7d22\u6a29\u9650(x)\u306f\u8db3\u308a\u3066\u3044\u308b\u304b<\/p><\/li> <li><p><strong>ACL\u78ba\u8a8d<\/strong>\uff1agetfacl\u3067\u4f8b\u5916\u30eb\u30fc\u30eb\u304c\u306a\u3044\u304b\u3001mask\u3067\u843d\u3061\u3066\u3044\u306a\u3044\u304b<\/p><\/li> <li><p><strong>\u4f5c\u6210\u30eb\u30fc\u30eb\u78ba\u8a8d<\/strong>\uff1aumask\/UMask\u3001default ACL\u3001setgid\u3067\u518d\u767a\u3057\u306a\u3044\u304b<\/p><\/li> <li><p><strong>\u5883\u754c\u78ba\u8a8d<\/strong>\uff1a\u30b3\u30f3\u30c6\u30ca\/NFS\/\u5171\u6709\u3067UID\/GID\u3084root_squash\u304c\u565b\u3093\u3067\u306a\u3044\u304b<\/p><\/li> <li><p><strong>\u8ffd\u52a0\u5236\u5fa1\u78ba\u8a8d<\/strong>\uff1asystemd\u4fdd\u8b77\u8a2d\u5b9a\u3084AppArmor\u7b49\u306e\u30dd\u30ea\u30b7\u30fc\u3067\u62d2\u5426\u3055\u308c\u3066\u3044\u306a\u3044\u304b<\/p><\/li> <\/ul> <hr> <p>\u305d\u3057\u3066\u3001\u3053\u3053\u304c\u4e00\u756a\u5927\u4e8b\u306a\u300c\u4e00\u822c\u8ad6\u306e\u9650\u754c\u300d\u3067\u3059\u3002\u6a29\u9650\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u305d\u306e\u3082\u306e\u306a\u306e\u3067\u3001<\/p> <ul> <li><p>\u59d4\u8a17\u5148\u30fb\u6d3e\u9063\u30fb\u591a\u62e0\u70b9\u306a\u3069\u3001\u8907\u6570\u4e3b\u4f53\u304c\u95a2\u308f\u308b<\/p><\/li> <li><p>NAS\/\u4eee\u60f3\u5316\/\u30b3\u30f3\u30c6\u30ca\/\u30af\u30e9\u30a6\u30c9\u304c\u7d61\u3080<\/p><\/li> <li><p>\u76e3\u67fb\u8981\u4ef6\u3084\u30ed\u30b0\u4fdd\u5168\u3001\u6a5f\u5bc6\u533a\u5206\u304c\u3042\u308b<\/p><\/li> <li><p>\u969c\u5bb3\u5fa9\u65e7\u3068\u540c\u6642\u306b\u60c5\u5831\u6f0f\u3048\u3044\u5bfe\u7b56\u30fbBCP\u304c\u8981\u6c42\u3055\u308c\u308b<\/p><\/li> <\/ul> <p>\u3053\u3046\u3044\u3063\u305f\u6761\u4ef6\u304c\u91cd\u306a\u308b\u307b\u3069\u3001\u30cd\u30c3\u30c8\u8a18\u4e8b\u306e\u4e00\u822c\u8ad6\u3060\u3051\u3067\u201c\u6b63\u89e3\u201d\u3092\u78ba\u5b9a\u3059\u308b\u306e\u306f\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u6a29\u9650\u306e\u6700\u9069\u89e3\u306f\u300c\u696d\u52d9\u5f71\u97ff\u300d\u300c\u653b\u6483\u9762\u300d\u300c\u904b\u7528\u4f53\u5236\u300d\u300c\u5fa9\u65e7\u671f\u9650\u300d\u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u3067\u6c7a\u307e\u308b\u304b\u3089\u3067\u3059\u3002<\/p> <hr> <p>\u305f\u3068\u3048\u3070\u3001\u540c\u3058EACCES\u3067\u3082\u3001<\/p> <ul> <li><p>\u4e00\u6642\u7684\u306b\u30ed\u30b0\u304c\u66f8\u3051\u306a\u3044\u3060\u3051\uff08\u6a5f\u80fd\u9650\u5b9a\uff09<\/p><\/li> <li><p>\u9867\u5ba2\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\uff08\u696d\u52d9\u505c\u6b62\uff09<\/p><\/li> <li><p>\u5171\u6709\u9818\u57df\u306e\u6a29\u9650\u304c\u5e83\u304c\u308a\u3059\u304e\u3066\u3044\u308b\uff08\u6f0f\u3048\u3044\u30ea\u30b9\u30af\uff09<\/p><\/li> <\/ul> <p>\u3067\u306f\u3001\u512a\u5148\u9806\u4f4d\u3082\u5bfe\u51e6\u3082\u5909\u308f\u308a\u307e\u3059\u3002\u3053\u3053\u3092\u201c\u52d8\u201d\u3067\u3084\u308b\u3068\u3001\u77ed\u671f\u7684\u306b\u76f4\u3063\u3066\u3082\u3001\u5f8c\u3067\u5225\u306e\u30c8\u30e9\u30d6\u30eb\u304c\u8d77\u304d\u3066\u708e\u4e0a\u3057\u307e\u3059\u3002<\/p> <p>\u3060\u304b\u3089\u3053\u305d\u3001\u5177\u4f53\u7684\u306a\u6848\u4ef6\u30fb\u5951\u7d04\u30fb\u30b7\u30b9\u30c6\u30e0\u69cb\u6210\u3067\u60a9\u3093\u3060\u3068\u304d\u306f\u3001\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240\u306e\u3088\u3046\u306a\u5c02\u9580\u5bb6\u306b\u76f8\u8ac7\u3059\u308b\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002\u6a29\u9650\u8a2d\u5b9a\u3092\u5358\u306a\u308b\u8a2d\u5b9a\u4f5c\u696d\u3068\u3057\u3066\u3067\u306f\u306a\u304f\u3001\u300c\u904b\u7528\u8a2d\u8a08\u300d\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u300d\u300c\u5fa9\u65e7\uff08\u88ab\u5bb3\u6700\u5c0f\u5316\uff09\u300d\u300c\u8aac\u660e\u8cac\u4efb\u300d\u307e\u3067\u542b\u3081\u3066\u6574\u7406\u3057\u3001\u73fe\u5834\u304c\u56de\u308b\u5f62\u3067\u843d\u3068\u3057\u8fbc\u3080\u306e\u304c\u30d7\u30ed\u306e\u4ed5\u4e8b\u3060\u304b\u3089\u3067\u3059\u3002<\/p> \r\n\r\n\r\n\r\n<p>\u3000<\/p> <a id=\"sec11\"><\/a> <h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u88dc\u907a\uff1a\u4e3b\u8981\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u5225\u300cPermission denied\u300d\u3092\u5897\u5e45\u3055\u305b\u306a\u3044\u6ce8\u610f\u70b9<\/h2> <p>\u3053\u3053\u304b\u3089\u306f\u300c\u5b9f\u88c5\u5074\u3067EACCES\u3092\u3069\u3046\u6271\u3046\u304b\u300d\u3092\u3001\u73fe\u5728\u3088\u304f\u4f7f\u308f\u308c\u308b\u8a00\u8a9e\u3054\u3068\u306b\u6574\u7406\u3057\u307e\u3059\u3002\u30dd\u30a4\u30f3\u30c8\u306f\u5171\u901a\u3057\u3066\u3044\u3066\u3001<strong>\u2460\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u306e\u524d\u63d0\u3092\u30b3\u30fc\u30c9\u5074\u3067\u56fa\u5b9a\u3057\u306a\u3044<\/strong>\u3001<strong>\u2461\u76f8\u5bfe\u30d1\u30b9\u3084\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u63fa\u308c\u3092\u524d\u63d0\u306b\u3059\u308b<\/strong>\u3001<strong>\u2462\u65b0\u898f\u4f5c\u6210\u6642\u306e\u6a29\u9650\uff08umask\/\u30e2\u30fc\u30c9\uff09\u3092\u89b3\u6e2c\u3067\u304d\u308b\u30ed\u30b0\u3092\u6b8b\u3059<\/strong>\u3001\u3053\u306e3\u3064\u3067\u3059\u3002\u3053\u3053\u3092\u62bc\u3055\u3048\u308b\u3068\u3001\u969c\u5bb3\u6642\u306e\u5207\u308a\u5206\u3051\u304c\u201c\u6c88\u9759\u5316\u201d\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p> <hr> <h3>\u5171\u901a\uff08\u5168\u8a00\u8a9e\uff09<\/h3> <ul> <li><p><strong>\u76f8\u5bfe\u30d1\u30b9\u524d\u63d0\u3092\u907f\u3051\u308b<\/strong>\uff1a\u30b5\u30fc\u30d3\u30b9\u8d77\u52d5\u7d4c\u8def\uff08systemd\/cron\/CI\uff09\u3067\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u5909\u308f\u308a\u307e\u3059\u3002\u30ed\u30b0\u306b\u306f\u300c\u89e3\u6c7a\u5f8c\u306e\u7d76\u5bfe\u30d1\u30b9\u300d\u3092\u51fa\u3059\u3068\u5207\u308a\u5206\u3051\u304c\u901f\u304f\u306a\u308a\u307e\u3059\u3002<\/p><\/li> <li><p><strong>\u8ab0\u3068\u3057\u3066\u52d5\u3044\u3066\u3044\u308b\u304b\u3092\u30ed\u30b0\u306b\u51fa\u3059<\/strong>\uff1a\u30d7\u30ed\u30bb\u30b9\u306e\u5b9f\u52b9UID\/GID\uff08\u5c11\u306a\u304f\u3068\u3082\u30e6\u30fc\u30b6\u30fc\u540d\/\u30b0\u30eb\u30fc\u30d7\u540d\uff09\u3092\u8d77\u52d5\u6642\u306b\u8a18\u9332\u3059\u308b\u3068\u3001\u5f8c\u304b\u3089\u300c\u624b\u52d5\u5b9f\u884c\u3068\u306e\u5dee\u300d\u3092\u8aac\u660e\u3067\u304d\u307e\u3059\u3002<\/p><\/li> <li><p><strong>\u65b0\u898f\u4f5c\u6210\u7269\u306e\u6a29\u9650\u3092\u201c\u89b3\u6e2c\u201d\u3059\u308b<\/strong>\uff1a\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u76f4\u5f8c\u306b <code>stat<\/code> \u76f8\u5f53\u306e\u60c5\u5831\uff08\u6240\u6709\u8005\/\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\uff09\u3092\u51fa\u3059\u3068\u3001umask\/ACL\u306e\u5f71\u97ff\u3092\u898b\u629c\u304d\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p><\/li> <li><p><strong>\u4f8b\u5916\u306e\u63e1\u308a\u3064\u3076\u3057\u3092\u3057\u306a\u3044<\/strong>\uff1aPermission denied\u3092\u300c\u518d\u8a66\u884c\u3067\u8aa4\u9b54\u5316\u3059\u300d\u3068\u3001\u539f\u56e0\u304c\u6b8b\u3063\u305f\u307e\u307e\u5225\u306e\u5834\u6240\u3067\u518d\u767a\u3057\u307e\u3059\u3002\u518d\u8a66\u884c\u306f\u88ab\u5bb3\u6700\u5c0f\u5316\u306e\u624b\u6bb5\u3068\u3057\u3066\u306f\u6709\u52b9\u3067\u3059\u304c\u3001\u30ed\u30b0\u306b errno \u3068\u5bfe\u8c61\u30d1\u30b9\u306f\u5fc5\u305a\u6b8b\u3057\u307e\u3059\u3002<\/p><\/li> <\/ul> <hr> <h3>Python<\/h3> <ul> <li><p><strong>\u4f8b\u5916\uff08OSError \/ PermissionError\uff09\u304b\u3089 errno=13 \u3092\u53d6\u308c\u308b\u5f62\u3067\u30ed\u30b0<\/strong>\uff1a\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3060\u3051\u3067\u306a\u304f\u3001\u5bfe\u8c61\u30d1\u30b9\u30fb\u64cd\u4f5c\uff08read\/write\/create\uff09\u30fb\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u3092\u5408\u308f\u305b\u3066\u6b8b\u3059\u3068\u5fa9\u65e7\u304c\u65e9\u3044\u3067\u3059\u3002<\/p><\/li> <li><p><strong>\u4e00\u6642\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6271\u3044<\/strong>\uff1a\u30c6\u30f3\u30dd\u30e9\u30ea\u751f\u6210\u5148\u304csystemd\u306e\u5236\u9650\u3084PrivateTmp\u306e\u5f71\u97ff\u3092\u53d7\u3051\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5b9f\u884c\u74b0\u5883\u306b\u4f9d\u5b58\u3059\u308b\u305f\u3081\u3001\u4fdd\u5b58\u5148\u3092\u8a2d\u5b9a\u3067\u5207\u308a\u66ff\u3048\u3089\u308c\u308b\u8a2d\u8a08\u304c\u5b89\u5168\u3067\u3059\u3002<\/p><\/li> <\/ul> <h3>Node.js\uff08JavaScript\/TypeScript\uff09<\/h3> <ul> <li><p><strong>fs\u7cfbAPI\u306e\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\uff08EACCES\/EPERM\uff09\u3092\u533a\u5225<\/strong>\uff1a\u30ed\u30b0\u306b\u306f code \u3068 syscall\uff08open\/write\/mkdir\u7b49\uff09\u3092\u542b\u3081\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u6a29\u9650\u304b\u64cd\u4f5c\u6a29\u9650\u304b\u3092\u5207\u308a\u5206\u3051\u3084\u3059\u3044\u3067\u3059\u3002<\/p><\/li> <li><p><strong>\u30d7\u30ed\u30bb\u30b9\u306eumask\u3084\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u5dee\u3092\u524d\u63d0\u306b\u3059\u308b<\/strong>\uff1a\u30ed\u30fc\u30ab\u30eb\u3067\u52d5\u3044\u3066\u3082\u3001systemd\u914d\u4e0b\u3084\u30b3\u30f3\u30c6\u30ca\u3067\u5225\u30e6\u30fc\u30b6\u30fc\u306b\u306a\u308b\u306e\u306f\u666e\u901a\u306b\u8d77\u304d\u307e\u3059\u3002\u8d77\u52d5\u6642\u306b <code>process.getuid()<\/code>\/<code>process.getgid()<\/code> \u76f8\u5f53\u3092\u8a18\u9332\u3059\u308b\u3068\u518d\u73fe\u304c\u901f\u3044\u3067\u3059\u3002<\/p><\/li> <\/ul> <h3>Go<\/h3> <ul> <li><p><strong>os.OpenFile \u306e mode \u6307\u5b9a\u306fumask\u306e\u5f71\u97ff\u3092\u53d7\u3051\u308b<\/strong>\uff1a\u671f\u5f85\u3059\u308b\u6a29\u9650\u304c\u305d\u306e\u307e\u307e\u4ed8\u4e0e\u3055\u308c\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u4f5c\u6210\u5f8c\u306b\u6a29\u9650\u78ba\u8a8d\uff08stat\uff09\u3059\u308b\u30ed\u30b0\u304c\u5f79\u306b\u7acb\u3061\u307e\u3059\u3002<\/p><\/li> <li><p><strong>\u30a8\u30e9\u30fc\u306e\u30e9\u30c3\u30d7\u3067\u539f\u56e0\u304c\u898b\u3048\u306a\u304f\u306a\u308b\u306e\u3092\u9632\u3050<\/strong>\uff1afmt.Errorf\u3067\u5305\u3080\u5834\u5408\u3067\u3082\u3001\u5143\u306e\u30a8\u30e9\u30fc\uff08syscall\/errno\uff09\u3092\u8ffd\u3048\u308b\u5f62\u3067\u6b8b\u3059\u3068\u3001\u73fe\u5834\u306e\u201c\u53ce\u675f\u201d\u304c\u65e9\u3044\u3067\u3059\u3002<\/p><\/li> <\/ul> <h3>Java\uff08JVM\u7cfb\u542b\u3080\uff09<\/h3> <ul> <li><p><strong>\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u306fJVM\u3067\u306f\u306a\u304fOS\u3067\u6c7a\u307e\u308b<\/strong>\uff1a\u30a2\u30d7\u30ea\u5074\u306e\u8a2d\u5b9a\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u5207\u308a\u66ff\u3048\u3066\u3044\u308b\u3064\u3082\u308a\u3067\u3082\u3001systemd\u306eUser=\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u3002\u8d77\u52d5\u30ed\u30b0\u306bOS\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u51fa\u3059\u306e\u304c\u6709\u52b9\u3067\u3059\u3002<\/p><\/li> <li><p><strong>\u30d1\u30b9\u89e3\u6c7a\u3068\u6a29\u9650\u30a8\u30e9\u30fc\u306e\u6df7\u540c\u306b\u6ce8\u610f<\/strong>\uff1a\u5b58\u5728\u3057\u306a\u3044\uff08ENOENT\u76f8\u5f53\uff09\u3068\u30a2\u30af\u30bb\u30b9\u4e0d\u53ef\uff08EACCES\u76f8\u5f53\uff09\u304c\u4f8b\u5916\u30e1\u30c3\u30bb\u30fc\u30b8\u3060\u3051\u3067\u306f\u7d1b\u3089\u308f\u3057\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5bfe\u8c61\u30d1\u30b9\u3068\u64cd\u4f5c\u306e\u660e\u8a18\u304c\u91cd\u8981\u3067\u3059\u3002<\/p><\/li> <\/ul> <h3>C \/ C++<\/h3> <ul> <li><p><strong>errno=EACCES(13)\u3068EPERM(1)\u306e\u533a\u5225<\/strong>\uff1a\u540c\u3058\u300c\u6a29\u9650\u304c\u306a\u3044\u300d\u306b\u898b\u3048\u3066\u3082\u3001\u539f\u56e0\u306e\u5c64\u304c\u9055\u3044\u307e\u3059\u3002\u30ed\u30b0\u306b\u306f errno \u3068\u5bfe\u8c61\u30d1\u30b9\u3001\u547c\u3073\u51fa\u3057\u305f\u64cd\u4f5c\uff08open\/chmod\/chown\u7b49\uff09\u3092\u51fa\u3059\u306e\u304c\u57fa\u672c\u3067\u3059\u3002<\/p><\/li> <li><p><strong>\u6a29\u9650\u5909\u66f4\uff08chown\/chmod\uff09\u3092\u30a2\u30d7\u30ea\u306b\u3084\u3089\u305b\u308b\u8a2d\u8a08\u306f\u614e\u91cd\u306b<\/strong>\uff1a\u904b\u7528\u5074\u306e\u6a29\u9650\u8a2d\u8a08\u3068\u885d\u7a81\u3057\u3084\u3059\u304f\u3001\u4e8c\u6b21\u969c\u5bb3\uff08\u5225\u30d7\u30ed\u30bb\u30b9\u304c\u66f8\u3051\u306a\u304f\u306a\u308b\uff09\u3092\u62db\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p><\/li> <\/ul> <h3>PHP \/ Ruby<\/h3> <ul> <li><p><strong>Web\u30b5\u30fc\u30d0\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\uff08www-data\u7b49\uff09\u524d\u63d0\u3067\u8a2d\u8a08\u3059\u308b<\/strong>\uff1aCLI\u3067\u306f\u901a\u308b\u304cWeb\u7d4c\u7531\u3067\u62d2\u5426\u3001\u304c\u5178\u578b\u3067\u3059\u3002\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\/\u30ed\u30b0\/\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u66f8\u304d\u8fbc\u307f\u5148\u306f\u3001Web\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u306b\u5408\u308f\u305b\u3066\u660e\u793a\u7684\u306b\u8a2d\u8a08\u3057\u307e\u3059\u3002<\/p><\/li> <li><p><strong>\u5171\u6709\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3084NAS\u914d\u4e0b\u3067\u306f\u6240\u6709\u6a29\u5909\u66f4\u304c\u52b9\u304b\u306a\u3044\u5834\u5408\u304c\u3042\u308b<\/strong>\uff1a\u30b9\u30c8\u30ec\u30fc\u30b8\u5074\u306e\u4ed5\u69d8\uff08\u5171\u6709\u8a2d\u5b9a\u3001NFS\u7b49\uff09\u3067\u5236\u7d04\u304c\u51fa\u308b\u305f\u3081\u3001\u30a2\u30d7\u30ea\u5074\u3060\u3051\u3067\u5b8c\u7d50\u3057\u306a\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p><\/li> <\/ul> <h3>.NET\uff08C#\uff09<\/h3> <ul> <li><p><strong>\u4f8b\u5916\u30e1\u30c3\u30bb\u30fc\u30b8\u3060\u3051\u3067\u5224\u65ad\u3057\u306a\u3044<\/strong>\uff1a\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u306f\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u5dee\u30fb\u30b5\u30fc\u30d3\u30b9\u8a2d\u5b9a\u5dee\u30fb\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u5883\u754c\u3067\u767a\u751f\u3057\u3084\u3059\u3044\u3067\u3059\u3002\u5bfe\u8c61\u30d1\u30b9\u3001\u64cd\u4f5c\u7a2e\u5225\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u30bb\u30c3\u30c8\u3067\u6b8b\u3059\u8a2d\u8a08\u304c\u6709\u52b9\u3067\u3059\u3002<\/p><\/li> <\/ul> <h3>\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\uff08bash\u7b49\uff09<\/h3> <ul> <li><p><strong>\u5b9f\u884c\u74b0\u5883\u5dee\uff08sudo\u3001cron\u3001systemd\uff09\u3067PATH\u3084umask\u304c\u5909\u308f\u308b<\/strong>\uff1a\u540c\u3058\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3082\u8d77\u52d5\u65b9\u6cd5\u3067\u6319\u52d5\u304c\u5909\u308f\u308a\u307e\u3059\u3002\u5192\u982d\u3067umask\u30fbwhoami\u30fbpwd\u3092\u30ed\u30b0\u306b\u51fa\u3059\u3060\u3051\u3067\u3001\u5207\u308a\u5206\u3051\u304c\u5927\u304d\u304f\u524d\u9032\u3057\u307e\u3059\u3002<\/p><\/li> <li><p><strong>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u6a29\u9650\u7f60<\/strong>\uff1a<code>sudo echo ... &gt; \/path<\/code> \u306e\u3088\u3046\u306a\u66f8\u304d\u65b9\u306f\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u5074\u304csudo\u5bfe\u8c61\u5916\u306b\u306a\u308a\u3084\u3059\u304f\u3001Permission denied\u306e\u539f\u56e0\u306b\u306a\u308a\u307e\u3059\u3002\u904b\u7528\u3067\u306f\u7279\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p><\/li> <\/ul> <hr> <p>\u6700\u5f8c\u306b\u307e\u3068\u3081\u3067\u3059\u3002\u8a00\u8a9e\u304c\u9055\u3063\u3066\u3082\u3001EACCES\u306e\u672c\u8cea\u306f\u300cOS\u304c\u62d2\u5426\u3057\u305f\u300d\u3068\u3044\u3046\u4e00\u70b9\u306b\u96c6\u7d04\u3055\u308c\u307e\u3059\u3002\u3060\u304b\u3089\u3001\u5b9f\u88c5\u5074\u3067\u3067\u304d\u308b\u6700\u3082\u5805\u3044\u30c0\u30e1\u30fc\u30b8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f\u3001<strong>\u62d2\u5426\u3055\u308c\u305f\u5bfe\u8c61\uff08\u30d1\u30b9\uff09\u30fb\u64cd\u4f5c\u30fb\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u30fb\u767a\u751f\u983b\u5ea6<\/strong>\u3092\u6b63\u78ba\u306b\u8a18\u9332\u3057\u3001\u904b\u7528\u5074\u306e\u6a29\u9650\u8a2d\u8a08\uff08systemd\/ACL\/umask\/\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\uff09\u3068\u7a81\u304d\u5408\u308f\u305b\u3089\u308c\u308b\u72b6\u614b\u3092\u4f5c\u308b\u3053\u3068\u3067\u3059\u3002<\/p> <p>\u4e00\u65b9\u3067\u3001\u5b9f\u969b\u306e\u73fe\u5834\u3067\u306f\u300c\u8ab0\u306b\u3069\u3053\u307e\u3067\u6a29\u9650\u3092\u4e0e\u3048\u308b\u3079\u304d\u304b\u300d\u306f\u3001\u5951\u7d04\u6761\u4ef6\u30fb\u76e3\u67fb\u8981\u4ef6\u30fb\u5171\u6709\u7bc4\u56f2\u30fbBCP\uff08\u505c\u6b62\u8a31\u5bb9\u6642\u9593\uff09\u3067\u6700\u9069\u89e3\u304c\u5909\u308f\u308a\u307e\u3059\u3002\u4e00\u822c\u8ad6\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3060\u3051\u3067\u9032\u3081\u308b\u3068\u3001\u77ed\u671f\u7684\u306b\u52d5\u3044\u3066\u3082\u5225\u306e\u30ea\u30b9\u30af\uff08\u904e\u5270\u6a29\u9650\u3001\u5171\u6709\u9818\u57df\u306e\u62e1\u5927\u3001\u904b\u7528\u7834\u7dbb\uff09\u304c\u6b8b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3046\u3057\u305f\u5c40\u9762\u3067\u306f\u3001\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240\u306e\u3088\u3046\u306b\u3001\u904b\u7528\u30fb\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fb\u5fa9\u65e7\u306e\u89b3\u70b9\u3092\u6a2a\u65ad\u3057\u3066\u6574\u7406\u3067\u304d\u308b\u5c02\u9580\u5bb6\u3078\u76f8\u8ac7\u3057\u3001\u8a2d\u8a08\u3068\u3057\u3066\u201c\u53ce\u675f\u201d\u3055\u305b\u308b\u5224\u65ad\u304c\u6709\u52b9\u3067\u3059\u3002<\/p> \r\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-28db1cbb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"28db1cbb\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-79d53cef\" data-id=\"79d53cef\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3f5f8336 elementor-widget elementor-widget-text-editor\" data-id=\"3f5f8336\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<style>h1.dai {    display: inline-block;    font-weight: bold;    border-left: solid 5px #38b3f2;    border-bottom: solid 1px #38b3f2;    margin-top: 25px; \/* \u4e0a\u306e\u7a7a\u767d\u30922\u500d *\/    margin-bottom: 5px;    padding: 5px 5px 5px 5px;    font-size: 18px; \/* \u6587\u5b57\u306e\u5927\u304d\u3055\u309218px\u306b\u8a2d\u5b9a *\/}h2.fukudai {    display: inline-block;    font-weight: bold;    border-left: solid 5px #38b3f2;    border-bottom: solid 1px #38b3f2;    margin-top: 25px; \/* \u4e0a\u306e\u7a7a\u767d\u30922\u500d *\/    margin-bottom: 5px;    padding: 5px 5px 5px 5px;    font-size: 18px; \/* \u6587\u5b57\u306e\u5927\u304d\u3055\u309218px\u306b\u8a2d\u5b9a *\/}.fukudai {    display: inline-block;    font-weight: bold;    border-left: solid 5px #38b3f2;    border-bottom: solid 1px #38b3f2;    margin: 0 auto 50px;    padding: 5px 5px 5px 5px;    font-size: 18px; \/* \u6587\u5b57\u306e\u5927\u304d\u3055\u309218px\u306b\u8a2d\u5b9a *\/}.fukudai {    display: inline-block;    font-weight: bold;    border-left: solid 5px #38b3f2;    border-bottom: solid 1px #38b3f2;    margin: 0 auto 50px;    padding: 5px 5px 5px 5px;    font-size: 18px; \/* \u6587\u5b57\u306e\u5927\u304d\u3055\u309218px\u306b\u8a2d\u5b9a *\/}<\/style><h2 class='fukudai'>\u306f\u3058\u3081\u306b<\/h2><br><p> Ubuntu\u306b\u304a\u3051\u308b\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u30a8\u30e9\u30fc\u306e\u73fe\u72b6\u3068\u57fa\u672c\u7684\u306a\u7406\u89e3\u30dd\u30a4\u30f3\u30c8   Ubuntu\u3092\u904b\u7528\u3059\u308bIT\u7ba1\u7406\u8005\u3084\u30b7\u30b9\u30c6\u30e0\u62c5\u5f53\u8005\u306b\u3068\u3063\u3066\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u306b\u95a2\u308f\u308b\u30a8\u30e9\u30fc\u306f\u907f\u3051\u3066\u901a\u308c\u306a\u3044\u8ab2\u984c\u3067\u3059\u3002\u7279\u306b\u3001\u300cPermission denied\u300d\u3084EACCES\uff08\u30a8\u30e9\u30fc\u30b3\u30fc\u30c913\uff09\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u62d2\u5426\u3055\u308c\u305f\u969b\u306b\u8868\u793a\u3055\u308c\u308b\u4e00\u822c\u7684\u306a\u30a8\u30e9\u30fc\u3067\u3042\u308a\u3001\u696d\u52d9\u306e\u5186\u6ed1\u306a\u9032\u884c\u3092\u59a8\u3052\u308b\u539f\u56e0\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u30a8\u30e9\u30fc\u306f\u3001\u6a29\u9650\u8a2d\u5b9a\u306e\u4e0d\u5099\u3084\u6240\u6709\u8005\u306e\u8aa4\u8a2d\u5b9a\u3001\u307e\u305f\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30dd\u30ea\u30b7\u30fc\u306e\u5909\u66f4\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u8981\u56e0\u306b\u3088\u3063\u3066\u5f15\u304d\u8d77\u3053\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u6b63\u3057\u3044\u7406\u89e3\u3068\u9069\u5207\u306a\u5bfe\u7b56\u3092\u884c\u3046\u3053\u3068\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u904b\u7528\u3084\u30c7\u30fc\u30bf\u306e\u5b89\u5168\u78ba\u4fdd\u306b\u76f4\u7d50\u3057\u307e\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001Ubuntu\u306b\u304a\u3051\u308b\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u305d\u306e\u80cc\u666f\u3092\u89e3\u8aac\u3057\u3001\u5177\u4f53\u7684\u306a\u6a29\u9650\u8a2d\u5b9a\u306e\u65b9\u6cd5\u3084\u5bfe\u51e6\u7b56\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5168\u6027\u3068\u52b9\u7387\u6027\u3092\u9ad8\u3081\u308b\u305f\u3081\u306b\u3001\u73fe\u72b6\u306e\u77e5\u8b58\u3092\u6574\u7406\u3057\u3001\u5b89\u5fc3\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u904b\u7528\u3092\u7d9a\u3051\u308b\u305f\u3081\u306e\u30d2\u30f3\u30c8\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p><br><br><h2 class='fukudai'>\u300cPermission denied\u300d\u306e\u539f\u56e0\u3068\u5b9a\u7fa9\u306b\u3064\u3044\u3066\u306e\u6982\u8981<\/h2><br><p>\u300cPermission denied\u300d\u30a8\u30e9\u30fc\u306f\u3001Linux\u3084Ubuntu\u3068\u3044\u3063\u305fUnix\u7cfbOS\u306b\u304a\u3044\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u8868\u793a\u3055\u308c\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3059\u3002\u3053\u306e\u30a8\u30e9\u30fc\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u306a\u3044\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u306b\u767a\u751f\u3057\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3084\u30d5\u30a9\u30eb\u30c0\u306e\u6240\u6709\u8005\u3084\u30b0\u30eb\u30fc\u30d7\u306b\u5bfe\u3057\u3066\u9069\u5207\u306a\u6a29\u9650\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u306a\u3044\u3001\u307e\u305f\u306f\u5b9f\u884c\u3057\u3088\u3046\u3068\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306b\u5fc5\u8981\u306a\u6a29\u9650\u304c\u306a\u3044\u5834\u5408\u306b\u8d77\u3053\u308a\u307e\u3059\u3002  \u3053\u306e\u30a8\u30e9\u30fc\u306e\u80cc\u5f8c\u306b\u306f\u3001\u6a29\u9650\u8a2d\u5b9a\u306e\u4e0d\u5099\u3084\u6240\u6709\u8005\u306e\u8aa4\u8a2d\u5b9a\u3001\u3042\u308b\u3044\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30dd\u30ea\u30b7\u30fc\u306e\u5909\u66f4\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u8981\u56e0\u304c\u95a2\u4e0e\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u304c\u65b0\u305f\u306b\u8ffd\u52a0\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u9069\u5207\u306a\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u308a\u3001\u8aa4\u3063\u3066\u6a29\u9650\u3092\u5236\u9650\u3059\u308b\u8a2d\u5b9a\u306b\u3057\u305f\u308a\u3059\u308b\u3068\u3001\u300cPermission denied\u300d\u30a8\u30e9\u30fc\u304c\u983b\u7e41\u306b\u767a\u751f\u3057\u307e\u3059\u3002  \u307e\u305f\u3001\u3053\u306e\u30a8\u30e9\u30fc\u306f\u5358\u306b\u64cd\u4f5c\u304c\u3067\u304d\u306a\u3044\u3060\u3051\u3067\u306a\u304f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u4fdd\u3064\u305f\u3081\u306e\u91cd\u8981\u306a\u4ed5\u7d44\u307f\u306e\u4e00\u3064\u3067\u3059\u3002\u6a29\u9650\u8a2d\u5b9a\u304c\u9069\u5207\u306b\u884c\u308f\u308c\u3066\u3044\u308b\u3053\u3068\u3067\u3001\u4e0d\u8981\u306a\u30a2\u30af\u30bb\u30b9\u3084\u4e0d\u6b63\u306a\u64cd\u4f5c\u3092\u9632\u304e\u3001\u30c7\u30fc\u30bf\u306e\u5b89\u5168\u6027\u3092\u78ba\u4fdd\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u305f\u3060\u5358\u306b\u30a8\u30e9\u30fc\u3092\u89e3\u6d88\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u6839\u672c\u7684\u306a\u539f\u56e0\u3092\u7406\u89e3\u3057\u9069\u5207\u306a\u6a29\u9650\u306e\u898b\u76f4\u3057\u3092\u884c\u3046\u3053\u3068\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u904b\u7528\u306b\u3068\u3063\u3066\u6b20\u304b\u305b\u307e\u305b\u3093\u3002  \u3053\u306e\u7ae0\u3067\u306f\u3001\u300cPermission denied\u300d\u30a8\u30e9\u30fc\u306e\u57fa\u672c\u7684\u306a\u5b9a\u7fa9\u3068\u3001\u305d\u306e\u80cc\u5f8c\u306b\u3042\u308b\u6a29\u9650\u7ba1\u7406\u306e\u4ed5\u7d44\u307f\u306b\u3064\u3044\u3066\u6982\u89b3\u3057\u307e\u3057\u305f\u3002\u6b21\u306e\u7ae0\u3067\u306f\u3001\u5177\u4f53\u7684\u306a\u4e8b\u4f8b\u3084\u767a\u751f\u72b6\u6cc1\u3092\u8e0f\u307e\u3048\u305f\u8a73\u7d30\u306a\u539f\u56e0\u5206\u6790\u3068\u5bfe\u7b56\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p><br><br><h2 class='fukudai'>\u5b9f\u4f8b\u306b\u57fa\u3065\u304f\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u306e\u5177\u4f53\u7684\u306a\u30b1\u30fc\u30b9\u3068\u305d\u306e\u5bfe\u51e6\u6cd5<\/h2><br><p>\u5b9f\u969b\u306e\u904b\u7528\u73fe\u5834\u3067\u306f\u3001\u300cPermission denied\u300d\u30a8\u30e9\u30fc\u304c\u3055\u307e\u3056\u307e\u306a\u72b6\u6cc1\u3067\u767a\u751f\u3057\u3066\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u304c\u65b0\u305f\u306b\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u3001\u9069\u5207\u306a\u6a29\u9650\u8a2d\u5b9a\u3092\u884c\u308f\u305a\u306b\u653e\u7f6e\u3057\u305f\u5834\u5408\u3001\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3084\u4ed6\u306e\u7ba1\u7406\u8005\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u305a\u30a8\u30e9\u30fc\u3068\u306a\u308b\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u6240\u6709\u8005\u3084\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u30df\u30b9\u3082\u983b\u7e41\u306b\u898b\u3089\u308c\u3001\u3053\u308c\u306b\u3088\u308a\u610f\u56f3\u3057\u306a\u3044\u30a2\u30af\u30bb\u30b9\u5236\u9650\u304c\u304b\u304b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002  \u5177\u4f53\u7684\u306a\u4f8b\u3068\u3057\u3066\u3001\u3042\u308b\u4f01\u696d\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u7528\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u3088\u3046\u3068\u3057\u305f\u969b\u306b\u3001\u300cPermission denied\u300d\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u8abf\u67fb\u306e\u7d50\u679c\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u3001\u5fc5\u8981\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6240\u6709\u8005\u3084\u30b0\u30eb\u30fc\u30d7\u306b\u5c5e\u3057\u3066\u304a\u3089\u305a\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u3053\u3068\u304c\u5224\u660e\u3057\u307e\u3057\u305f\u3002\u3053\u3046\u3057\u305f\u4e8b\u4f8b\u3067\u306f\u3001\u6240\u6709\u8005\u3084\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u3092\u898b\u76f4\u3057\u3001\u5fc5\u8981\u306a\u6a29\u9650\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u307e\u3059\u3002  \u307e\u305f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30dd\u30ea\u30b7\u30fc\u306e\u5909\u66f4\u3084\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u4f34\u3046\u8a2d\u5b9a\u306e\u30ea\u30bb\u30c3\u30c8\u3082\u539f\u56e0\u3068\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\u306e\u305f\u3081\u306b\u4e00\u90e8\u306e\u6a29\u9650\u304c\u5236\u9650\u3055\u308c\u305f\u7d50\u679c\u3001\u901a\u5e38\u306e\u64cd\u4f5c\u3067\u3082\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u304c\u8d77\u304d\u308b\u5834\u5408\u3067\u3059\u3002  \u3053\u308c\u3089\u306e\u30b1\u30fc\u30b9\u306b\u5171\u901a\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u6a29\u9650\u3084\u6240\u6709\u8005\u306e\u8a2d\u5b9a\u304c\u9069\u5207\u3067\u306a\u3044\u3053\u3068\u304c\u539f\u56e0\u3067\u3042\u308b\u70b9\u3067\u3059\u3002\u5bfe\u51e6\u6cd5\u3068\u3057\u3066\u306f\u3001\u307e\u305als\u30b3\u30de\u30f3\u30c9\u3084stat\u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u3066\u8a72\u5f53\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6240\u6709\u8005\u30fb\u30b0\u30eb\u30fc\u30d7\u30fb\u6a29\u9650\u3092\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066chown\u3084chmod\u30b3\u30de\u30f3\u30c9\u3067\u9069\u5207\u306a\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002\u7279\u306b\u3001\u7ba1\u7406\u8005\u6a29\u9650\u3092\u6301\u3064sudo\u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u3001\u6a29\u9650\u306e\u5909\u66f4\u3092\u5b89\u5168\u306b\u884c\u3046\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002  \u3053\u306e\u7ae0\u3067\u306f\u3001\u5b9f\u4f8b\u3092\u901a\u3058\u3066\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u306e\u5177\u4f53\u7684\u306a\u30b1\u30fc\u30b9\u3068\u3001\u305d\u306e\u539f\u56e0\u7a76\u660e\u304a\u3088\u3073\u5bfe\u51e6\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u6b21\u306e\u7ae0\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u539f\u56e0\u3092\u8e0f\u307e\u3048\u305f\u5177\u4f53\u7684\u306a\u6a29\u9650\u8a2d\u5b9a\u306e\u624b\u9806\u3084\u3001\u30b7\u30b9\u30c6\u30e0\u904b\u7528\u306b\u5f79\u7acb\u3064\u30dd\u30a4\u30f3\u30c8\u3092\u8a73\u3057\u304f\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p><br><br><h2 class='fukudai'>\u6a29\u9650\u8a2d\u5b9a\u306e\u57fa\u672c\u3068\u9069\u5207\u306a\u6a29\u9650\u4ed8\u4e0e\u306e\u624b\u9806<\/h2><br><p>\u6a29\u9650\u8a2d\u5b9a\u306e\u57fa\u672c\u3068\u9069\u5207\u306a\u6a29\u9650\u4ed8\u4e0e\u306e\u624b\u9806  \u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u306b\u304a\u3044\u3066\u3001\u9069\u5207\u306a\u6a29\u9650\u8a2d\u5b9a\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5168\u6027\u3068\u904b\u7528\u52b9\u7387\u306e\u4e21\u7acb\u306b\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u307e\u305a\u3001\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u73fe\u5728\u306e\u6a29\u9650\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001ls\u30b3\u30de\u30f3\u30c9\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u300c-l\u300d\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u6240\u6709\u8005\u3001\u30b0\u30eb\u30fc\u30d7\u3001\u305d\u306e\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u4ed8\u4e0e\u3055\u308c\u305f\u30a2\u30af\u30bb\u30b9\u6a29\u304c\u4e00\u89a7\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u6b21\u306b\u3001\u6240\u6709\u8005\u3084\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u306b\u306f\u3001sudo chown\u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6240\u6709\u8005\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u300csudo chown \u30e6\u30fc\u30b6\u30fc\u540d:\u30b0\u30eb\u30fc\u30d7\u540d \u30d5\u30a1\u30a4\u30eb\u540d\u300d\u3068\u5165\u529b\u3057\u307e\u3059\u3002  \u6a29\u9650\u306e\u4ed8\u4e0e\u3084\u5909\u66f4\u306b\u306fchmod\u30b3\u30de\u30f3\u30c9\u3082\u6d3b\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u8aad\u307f\u53d6\u308a\uff08r\uff09\u3001\u66f8\u304d\u8fbc\u307f\uff08w\uff09\u3001\u5b9f\u884c\uff08x\uff09\u6a29\u9650\u3092\u500b\u5225\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u6240\u6709\u8005\u306b\u8aad\u307f\u53d6\u308a\u3068\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u300csudo chmod 600 \u30d5\u30a1\u30a4\u30eb\u540d\u300d\u3068\u3057\u307e\u3059\u3002\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u306f\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u518d\u5e30\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u300c-R\u300d\u3092\u4ed8\u3051\u3066\u64cd\u4f5c\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002  \u6a29\u9650\u306e\u8a2d\u5b9a\u306f\u3001\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u3092\u5fc3\u639b\u3051\u308b\u3053\u3068\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u904e\u5270\u306a\u6a29\u9650\u4ed8\u4e0e\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u3092\u9ad8\u3081\u308b\u305f\u3081\u3001\u904b\u7528\u306b\u5fdc\u3058\u3066\u9069\u5207\u306a\u7bc4\u56f2\u3067\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306f\u8aad\u307f\u53d6\u308a\u6a29\u9650\u306e\u307f\u3092\u4ed8\u4e0e\u3057\u3001\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u306f\u5236\u9650\u3057\u307e\u3059\u3002  \u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5168\u6027\u3092\u78ba\u4fdd\u3057\u3064\u3064\u3001\u5fc5\u8981\u306a\u64cd\u4f5c\u3092\u884c\u3048\u308b\u72b6\u614b\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u5b9a\u671f\u7684\u306a\u6a29\u9650\u306e\u898b\u76f4\u3057\u3068\u7ba1\u7406\u304c\u91cd\u8981\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u57fa\u672c\u7684\u306a\u64cd\u4f5c\u3092\u7406\u89e3\u3057\u3001\u9069\u5207\u306b\u5b9f\u65bd\u3059\u308b\u3053\u3068\u3067\u3001\u300cPermission denied\u300d\u30a8\u30e9\u30fc\u306e\u767a\u751f\u3092\u672a\u7136\u306b\u9632\u304e\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u3057\u305f\u904b\u7528\u3092\u652f\u3048\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p><br><br><h2 class='fukudai'>4\u7ae0<\/h2><br><p>\u6a29\u9650\u8a2d\u5b9a\u306b\u304a\u3051\u308b\u30c8\u30e9\u30d6\u30eb\u5bfe\u7b56\u3068\u6ce8\u610f\u3059\u3079\u304d\u30dd\u30a4\u30f3\u30c8 \u6a29\u9650\u8a2d\u5b9a\u306b\u304a\u3044\u3066\u306f\u3001\u9069\u5207\u306a\u7ba1\u7406\u3068\u3068\u3082\u306b\u30c8\u30e9\u30d6\u30eb\u3092\u672a\u7136\u306b\u9632\u3050\u305f\u3081\u306e\u6ce8\u610f\u70b9\u3092\u62bc\u3055\u3048\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u307e\u305a\u3001\u6a29\u9650\u306e\u5909\u66f4\u306f\u614e\u91cd\u306b\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u904e\u5270\u306a\u6a29\u9650\u4ed8\u4e0e\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u3092\u9ad8\u3081\u3001\u4e0d\u8981\u306a\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u3059\u3053\u3068\u306b\u306a\u308a\u304b\u306d\u307e\u305b\u3093\u3002\u9006\u306b\u3001\u6a29\u9650\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u5fc5\u8981\u306a\u64cd\u4f5c\u304c\u3067\u304d\u305a\u30a8\u30e9\u30fc\u304c\u983b\u767a\u3057\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u6a29\u9650\u306e\u4ed8\u4e0e\u3084\u5909\u66f4\u306f\u3001\u6700\u5c0f\u9650\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u5fc3\u639b\u3051\u3001\u5fc5\u8981\u306a\u7bc4\u56f2\u306b\u9650\u5b9a\u3059\u308b\u3053\u3068\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002  \u307e\u305f\u3001\u6a29\u9650\u8a2d\u5b9a\u3092\u884c\u3046\u969b\u306b\u306f\u3001\u6240\u6709\u8005\u3084\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u3082\u4f75\u305b\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002\u6240\u6709\u8005\u3084\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u30df\u30b9\u306f\u3001\u610f\u56f3\u3057\u306a\u3044\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3084\u4e0d\u6b63\u30a2\u30af\u30bb\u30b9\u306e\u539f\u56e0\u3068\u306a\u308b\u305f\u3081\u3001\u5b9a\u671f\u7684\u306a\u898b\u76f4\u3057\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002\u7279\u306b\u3001\u8907\u6570\u306e\u7ba1\u7406\u8005\u304c\u6a29\u9650\u3092\u64cd\u4f5c\u3059\u308b\u5834\u5408\u306f\u3001\u5909\u66f4\u5c65\u6b74\u3092\u8a18\u9332\u3057\u3001\u8ab0\u304c\u3044\u3064\u3069\u306e\u3088\u3046\u306a\u64cd\u4f5c\u3092\u884c\u3063\u305f\u304b\u3092\u628a\u63e1\u3067\u304d\u308b\u4f53\u5236\u3092\u6574\u3048\u308b\u3053\u3068\u3082\u6709\u52b9\u3067\u3059\u3002  \u3055\u3089\u306b\u3001\u6a29\u9650\u8a2d\u5b9a\u306e\u64cd\u4f5c\u306b\u306f\u3001sudo\u30b3\u30de\u30f3\u30c9\u3092\u9069\u5207\u306b\u4f7f\u7528\u3057\u3001\u5fc5\u8981\u306a\u3068\u304d\u3060\u3051\u7ba1\u7406\u8005\u6a29\u9650\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u3082\u91cd\u8981\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u8aa4\u64cd\u4f5c\u3084\u610f\u56f3\u3057\u306a\u3044\u5909\u66f4\u3092\u9632\u304e\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5168\u6027\u3092\u7dad\u6301\u3067\u304d\u307e\u3059\u3002  \u6700\u5f8c\u306b\u3001\u6a29\u9650\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u305f\u5f8c\u306f\u3001\u5fc5\u305a\u52d5\u4f5c\u78ba\u8a8d\u3084\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u306e\u30c6\u30b9\u30c8\u3092\u884c\u3046\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u8a2d\u5b9a\u30df\u30b9\u3084\u4e0d\u5177\u5408\u3092\u65e9\u671f\u306b\u767a\u898b\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3092\u4fdd\u3064\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002\u6a29\u9650\u8a2d\u5b9a\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5168\u3068\u52b9\u7387\u3092\u652f\u3048\u308b\u57fa\u76e4\u3067\u3059\u3002\u9069\u5207\u306a\u7ba1\u7406\u3068\u6ce8\u610f\u6df1\u3044\u64cd\u4f5c\u3092\u5fc3\u639b\u3051\u308b\u3053\u3068\u3067\u3001\u30c8\u30e9\u30d6\u30eb\u306e\u9632\u6b62\u3068\u5186\u6ed1\u306a\u904b\u7528\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002  \u203b\u5f53\u793e\u306f\u3001\u7d30\u5fc3\u306e\u6ce8\u610f\u3092\u6255\u3063\u3066\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u60c5\u5831\u3092\u63b2\u8f09\u3057\u3066\u304a\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u60c5\u5831\u306e\u6b63\u78ba\u6027\u304a\u3088\u3073\u5b8c\u5168\u6027\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5f53\u793e\u306f\u4e88\u544a\u306a\u3057\u306b\u3001\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b\u60c5\u5831\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5f53\u793e\u304a\u3088\u3073\u305d\u306e\u95a2\u9023\u4f1a\u793e\u306f\u3001\u304a\u5ba2\u3055\u307e\u304c\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u542b\u307e\u308c\u308b\u60c5\u5831\u3082\u3057\u304f\u306f\u5185\u5bb9\u3092\u3054\u5229\u7528\u3055\u308c\u305f\u3053\u3068\u3067\u76f4\u63a5\u30fb\u9593\u63a5\u7684\u306b\u751f\u3058\u305f\u640d\u5931\u306b\u95a2\u3057\u4e00\u5207\u8cac\u4efb\u3092\u8ca0\u3046\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p><br><br><h2 class='fukudai'>5\u7ae0<\/h2><br><p>\u6a29\u9650\u306e\u898b\u76f4\u3057\u3068\u9577\u671f\u7684\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7ba1\u7406\u306e\u5b9f\u8df5\u65b9\u6cd5 \u6a29\u9650\u306e\u898b\u76f4\u3057\u3068\u9577\u671f\u7684\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7ba1\u7406\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3068\u5b89\u5168\u6027\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306b\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u5b9a\u671f\u7684\u306b\u6a29\u9650\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u3001\u4e0d\u8981\u306a\u6a29\u9650\u3092\u524a\u9664\u3057\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u7dad\u6301\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u6240\u6709\u8005\u3084\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u3092\u5b9a\u671f\u7684\u306b\u898b\u76f4\u3057\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u306e\u9069\u6b63\u5316\u3092\u884c\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u6a29\u9650\u5909\u66f4\u306e\u5c65\u6b74\u3092\u8a18\u9332\u3057\u3001\u8ab0\u304c\u3044\u3064\u3069\u306e\u3088\u3046\u306a\u5909\u66f4\u3092\u884c\u3063\u305f\u304b\u3092\u628a\u63e1\u3067\u304d\u308b\u4f53\u5236\u3092\u6574\u3048\u308b\u3053\u3068\u3082\u52b9\u679c\u7684\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4e0d\u9069\u5207\u306a\u8a2d\u5b9a\u3084\u4e0d\u6b63\u30a2\u30af\u30bb\u30b9\u3092\u65e9\u671f\u306b\u767a\u898b\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30dd\u30ea\u30b7\u30fc\u306e\u5909\u66f4\u306b\u4f34\u3046\u8a2d\u5b9a\u306e\u898b\u76f4\u3057\u3082\u6b20\u304b\u305b\u307e\u305b\u3093\u3002\u9577\u671f\u7684\u306a\u7ba1\u7406\u306b\u306f\u3001\u81ea\u52d5\u5316\u30c4\u30fc\u30eb\u3084\u76e3\u67fb\u30b7\u30b9\u30c6\u30e0\u3092\u5c0e\u5165\u3057\u3001\u5b9a\u5e38\u7684\u306a\u76e3\u8996\u3068\u7ba1\u7406\u3092\u884c\u3046\u3053\u3068\u3082\u63a8\u5968\u3055\u308c\u307e\u3059\u3002\u3053\u3046\u3057\u305f\u53d6\u308a\u7d44\u307f\u3092\u7d99\u7d9a\u7684\u306b\u884c\u3046\u3053\u3068\u3067\u3001\u4e88\u671f\u305b\u306c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u306e\u767a\u751f\u3092\u672a\u7136\u306b\u9632\u304e\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u4fe1\u983c\u6027\u3092\u9ad8\u3081\u308b\u3053\u3068\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u306f\u3001\u65e5\u3005\u306e\u904b\u7528\u3068\u3068\u3082\u306b\u3053\u308c\u3089\u306e\u7ba1\u7406\u4f53\u5236\u3092\u6574\u5099\u3057\u3001\u5b9a\u671f\u7684\u306a\u898b\u76f4\u3057\u3092\u7fd2\u6163\u5316\u3059\u308b\u3053\u3068\u304c\u3001\u9577\u671f\u7684\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7dad\u6301\u306e\u9375\u3068\u306a\u308a\u307e\u3059\u3002<\/p><br><br><h2 class='fukudai'>\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u30a8\u30e9\u30fc\u306b\u5bfe\u3059\u308b\u7406\u89e3\u3068\u9069\u5207\u306a\u5bfe\u5fdc\u306e\u91cd\u8981\u6027<\/h2><br><p>\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u30a8\u30e9\u30fc\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u6a29\u9650\u7ba1\u7406\u306b\u304a\u3044\u3066\u907f\u3051\u3066\u901a\u308c\u306a\u3044\u8ab2\u984c\u3067\u3059\u3002\u7279\u306b\u300cPermission denied\u300d\u3084EACCES\u30a8\u30e9\u30fc\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6240\u6709\u8005\u3084\u6a29\u9650\u8a2d\u5b9a\u306e\u4e0d\u5099\u3001\u307e\u305f\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30dd\u30ea\u30b7\u30fc\u306e\u5909\u66f4\u306b\u8d77\u56e0\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u539f\u56e0\u3092\u6b63\u78ba\u306b\u628a\u63e1\u3057\u3001\u9069\u5207\u306a\u6a29\u9650\u306e\u898b\u76f4\u3057\u3084\u8a2d\u5b9a\u5909\u66f4\u3092\u884c\u3046\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5168\u6027\u3068\u904b\u7528\u52b9\u7387\u3092\u4e21\u7acb\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001\u6a29\u9650\u306e\u6700\u5c0f\u5316\u3068\u5b9a\u671f\u7684\u306a\u898b\u76f4\u3057\u3001\u5909\u66f4\u5c65\u6b74\u306e\u7ba1\u7406\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u307e\u305f\u3001\u6a29\u9650\u8a2d\u5b9a\u306e\u64cd\u4f5c\u306b\u306f\u614e\u91cd\u3055\u3092\u6301\u3061\u3001\u5fc5\u8981\u306a\u7bc4\u56f2\u306b\u9650\u5b9a\u3057\u305f\u4ed8\u4e0e\u3092\u5fc3\u639b\u3051\u308b\u3053\u3068\u3082\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u57fa\u672c\u7684\u306a\u5bfe\u7b56\u3068\u7ba1\u7406\u306e\u5fb9\u5e95\u306b\u3088\u308a\u3001\u30a8\u30e9\u30fc\u306e\u672a\u7136\u9632\u6b62\u3068\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u904b\u7528\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u6b63\u3057\u3044\u7406\u89e3\u3068\u9069\u5207\u306a\u5bfe\u5fdc\u3092\u7d99\u7d9a\u3059\u308b\u3053\u3068\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u4fe1\u983c\u6027\u3068\u30c7\u30fc\u30bf\u306e\u5b89\u5168\u6027\u3092\u5b88\u308b\u305f\u3081\u306e\u57fa\u672c\u3067\u3059\u3002<\/p><br><br><h2 class='fukudai'>\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u904b\u7528\u306b\u306f\u6b63\u78ba\u306a\u6a29\u9650\u7ba1\u7406\u304c\u6b20\u304b\u305b\u307e\u305b\u3093\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5c02\u9580\u7684\u306a\u30b5\u30dd\u30fc\u30c8\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044<\/h2><br><p>\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u904b\u7528\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u6b63\u78ba\u306a\u6a29\u9650\u7ba1\u7406\u3068\u9069\u5207\u306a\u8a2d\u5b9a\u304c\u6b20\u304b\u305b\u307e\u305b\u3093\u3002\u30a8\u30e9\u30fc\u306e\u6839\u672c\u539f\u56e0\u3092\u7406\u89e3\u3057\u3001\u9069\u5207\u306a\u5bfe\u7b56\u3092\u5b9f\u65bd\u3059\u308b\u3053\u3068\u3067\u3001\u696d\u52d9\u306e\u5186\u6ed1\u5316\u3068\u30c7\u30fc\u30bf\u306e\u5b89\u5168\u6027\u3092\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002\u3082\u3057\u3054\u81ea\u8eab\u3067\u306e\u5bfe\u5fdc\u304c\u96e3\u3057\u3044\u3068\u611f\u3058\u308b\u5834\u5408\u3084\u3001\u3088\u308a\u9ad8\u5ea6\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u3092\u304a\u6c42\u3081\u306e\u5834\u5408\u306f\u3001\u5c02\u9580\u7684\u306a\u30b5\u30dd\u30fc\u30c8\u3084\u30b3\u30f3\u30b5\u30eb\u30c6\u30a3\u30f3\u30b0\u3092\u691c\u8a0e\u3055\u308c\u308b\u3053\u3068\u3082\u4e00\u3064\u306e\u9078\u629e\u80a2\u3067\u3059\u3002\u7d4c\u9a13\u8c4a\u5bcc\u306a\u5c02\u9580\u5bb6\u306e\u52a9\u8a00\u3092\u5f97\u308b\u3053\u3068\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30ea\u30b9\u30af\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u3001\u9577\u671f\u7684\u306a\u5b89\u5b9a\u904b\u7528\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u4fe1\u983c\u3067\u304d\u308b\u30d1\u30fc\u30c8\u30ca\u30fc\u3068\u5171\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5168\u6027\u3092\u9ad8\u3081\u308b\u53d6\u308a\u7d44\u307f\u3092\u9032\u3081\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p><br><br><h2 class='fukudai'>\u73fe\u5728\u306e\u8a2d\u5b9a\u3084\u64cd\u4f5c\u5185\u5bb9\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u72b6\u6cc1\u306b\u3088\u308a\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u6b63\u78ba\u306a\u5bfe\u5fdc\u306b\u306f\u8a73\u7d30\u306a\u74b0\u5883\u78ba\u8a8d\u3068\u614e\u91cd\u306a\u64cd\u4f5c\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/h2><br><p>\u30b7\u30b9\u30c6\u30e0\u306e\u6a29\u9650\u8a2d\u5b9a\u3084\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u306b\u95a2\u3059\u308b\u4f5c\u696d\u3092\u884c\u3046\u969b\u306b\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u91cd\u8981\u306a\u6ce8\u610f\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u3001\u73fe\u5728\u306e\u8a2d\u5b9a\u3084\u64cd\u4f5c\u5185\u5bb9\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3084\u74b0\u5883\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30dd\u30ea\u30b7\u30fc\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u305f\u3081\u3001\u5fc5\u305a\u4e8b\u524d\u306b\u74b0\u5883\u306e\u8a73\u7d30\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u8aa4\u3063\u305f\u64cd\u4f5c\u3084\u8a2d\u5b9a\u306e\u5909\u66f4\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u6b63\u5e38\u306a\u52d5\u4f5c\u3092\u59a8\u3052\u305f\u308a\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u3092\u9ad8\u3081\u305f\u308a\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002  \u307e\u305f\u3001\u6a29\u9650\u306e\u5909\u66f4\u306f\u614e\u91cd\u306b\u884c\u3046\u3053\u3068\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u904e\u5270\u306a\u6a29\u9650\u4ed8\u4e0e\u3084\u8aa4\u3063\u305f\u6240\u6709\u8005\u8a2d\u5b9a\u306f\u3001\u610f\u56f3\u3057\u306a\u3044\u30a2\u30af\u30bb\u30b9\u3084\u60c5\u5831\u6f0f\u6d29\u306e\u539f\u56e0\u3068\u306a\u308b\u305f\u3081\u3001\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u7bc4\u56f2\u306b\u3068\u3069\u3081\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u7279\u306b\u3001\u7ba1\u7406\u8005\u6a29\u9650\u3092\u6301\u3064sudo\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u4f5c\u696d\u3059\u308b\u5834\u5408\u306f\u3001\u64cd\u4f5c\u5185\u5bb9\u3092\u518d\u78ba\u8a8d\u3057\u3001\u8aa4\u64cd\u4f5c\u3092\u907f\u3051\u308b\u305f\u3081\u306e\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002  \u3055\u3089\u306b\u3001\u64cd\u4f5c\u524d\u306b\u306f\u5fc5\u305a\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002\u4e07\u4e00\u3001\u8a2d\u5b9a\u30df\u30b9\u3084\u4e88\u671f\u3057\u306a\u3044\u30c8\u30e9\u30d6\u30eb\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3067\u3082\u3001\u8fc5\u901f\u306b\u5143\u306e\u72b6\u614b\u306b\u623b\u3059\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002\u5b9a\u671f\u7684\u306a\u8a2d\u5b9a\u306e\u898b\u76f4\u3057\u3084\u30ed\u30b0\u306e\u8a18\u9332\u3082\u3001\u30c8\u30e9\u30d6\u30eb\u306e\u65e9\u671f\u767a\u898b\u3068\u539f\u56e0\u7a76\u660e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002  \u6700\u5f8c\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u5909\u66f4\u3092\u52a0\u3048\u308b\u5834\u5408\u306f\u3001\u5909\u66f4\u5f8c\u306e\u52d5\u4f5c\u78ba\u8a8d\u3084\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u306e\u30c6\u30b9\u30c8\u3092\u884c\u3044\u3001\u610f\u56f3\u3057\u305f\u3068\u304a\u308a\u306b\u8a2d\u5b9a\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u304b\u3081\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u6ce8\u610f\u70b9\u3092\u5b88\u308b\u3053\u3068\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5168\u6027\u3068\u5b89\u5b9a\u6027\u3092\u7dad\u6301\u3057\u306a\u304c\u3089\u3001\u9069\u5207\u306a\u6a29\u9650\u7ba1\u7406\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002  \u203b\u5f53\u793e\u306f\u3001\u7d30\u5fc3\u306e\u6ce8\u610f\u3092\u6255\u3063\u3066\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u60c5\u5831\u3092\u63b2\u8f09\u3057\u3066\u304a\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u60c5\u5831\u306e\u6b63\u78ba\u6027\u304a\u3088\u3073\u5b8c\u5168\u6027\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5f53\u793e\u306f\u4e88\u544a\u306a\u3057\u306b\u3001\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b\u60c5\u5831\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5f53\u793e\u304a\u3088\u3073\u305d\u306e\u95a2\u9023\u4f1a\u793e\u306f\u3001\u304a\u5ba2\u3055\u307e\u304c\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u542b\u307e\u308c\u308b\u60c5\u5831\u3082\u3057\u304f\u306f\u5185\u5bb9\u3092\u3054\u5229\u7528\u3055\u308c\u305f\u3053\u3068\u3067\u76f4\u63a5\u30fb\u9593\u63a5\u7684\u306b\u751f\u3058\u305f\u640d\u5931\u306b\u95a2\u3057\u4e00\u5207\u8cac\u4efb\u3092\u8ca0\u3046\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p><br><br><h2 class='fukudai'>\u88dc\u8db3\u60c5\u5831<\/h2><br><p>\u203b\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240\u306f\uff08\u4ee5\u4e0b\u3001\u5f53\u793e\uff09\u306f\u3001\u7d30\u5fc3\u306e\u6ce8\u610f\u3092\u6255\u3063\u3066\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u60c5\u5831\u3092\u63b2\u8f09\u3057\u3066\u304a\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u60c5\u5831\u306e\u6b63\u78ba\u6027\u304a\u3088\u3073\u5b8c\u5168\u6027\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5f53\u793e\u306f\u4e88\u544a\u306a\u3057\u306b\u3001\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b\u60c5\u5831\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5f53\u793e\u304a\u3088\u3073\u305d\u306e\u95a2\u9023\u4f1a\u793e\u306f\u3001\u304a\u5ba2\u3055\u307e\u304c\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u542b\u307e\u308c\u308b\u60c5\u5831\u3082\u3057\u304f\u306f\u5185\u5bb9\u3092\u3054\u5229\u7528\u3055\u308c\u305f\u3053\u3068\u3067\u76f4\u63a5\u30fb\u9593\u63a5\u7684\u306b\u751f\u3058\u305f\u640d\u5931\u306b\u95a2\u3057\u4e00\u5207\u8cac\u4efb\u3092\u8ca0\u3046\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p><br><br>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u6700\u77ed\u30c1\u30a7\u30c3\u30af Ubuntu\u300cPermission denied\u300d\u307e\u305a\u3053\u3053\u3060\u3051\uff0830\u79d2\u3067\u5207\u308a\u5206\u3051\uff09 \u3044\u307e\u306e\u62d2\u5426\u304c\u300c\u8ab0\u306e\u6a29\u9650\u300d\u3067 \u300c\u3069\u3053\u3067\u300d\u6b62\u307e\u3063\u3066\u3044\u308b\u304b\u3092\u5148\u306b\u7279\u5b9a\u3057\u307e\u3059\u3002 \u76f4\u3059\u524d\u306b\u539f\u56e0\u3092\u7d5e\u308b\u3068\u3001\u4f59\u8a08\u306a\u6a29\u9650\u62e1\u5927\u3092\u907f\u3051\u3084\u3059\u304f\u306a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"","site-content-layout":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[62],"tags":[56,50,43],"class_list":["post-42549","post","type-post","status-publish","format-standard","hentry","category-1-","tag-56","tag-50","tag-43"],"_links":{"self":[{"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/posts\/42549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=42549"}],"version-history":[{"count":16,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/posts\/42549\/revisions"}],"predecessor-version":[{"id":63485,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/posts\/42549\/revisions\/63485"}],"wp:attachment":[{"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}