{"id":941,"date":"2016-04-18T22:49:41","date_gmt":"2016-04-18T13:49:41","guid":{"rendered":"http:\/\/darkgray.homelinux.com\/modules\/xpress\/?p=941"},"modified":"2016-04-18T22:49:41","modified_gmt":"2016-04-18T13:49:41","slug":"wordpress%e6%9b%b4%e6%96%b0%ef%bc%88selinux%e6%9c%89%e5%8a%b9%ef%bc%89","status":"publish","type":"post","link":"https:\/\/darkgray.homelinux.com\/blog\/?p=941","title":{"rendered":"WordPress\u66f4\u65b0\uff08SELinux\u6709\u52b9\uff09"},"content":{"rendered":"<p>\u4e0b\u306e\u753b\u50cf\u306f\u3000WordPress\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u753b\u9762\u306eSS\u306a\u3093\u3060\u304c\u30fb\u30fb\u30fb\u3000\u3053\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u306b\u306fFTP\u30b5\u30fc\u30d0\u304c\u6a5f\u80fd\u3057\u3066\u306a\u3044\u3068\u4f7f\u3048\u306a\u3044\u3002\u3000\u305d\u3053\u3067Darkgray\u30b5\u30fc\u30d0\u306bvsftp\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002<\/p>\n<figure id=\"attachment_953\" aria-describedby=\"caption-attachment-953\" style=\"width: 150px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/darkgray.homelinux.com\/modules\/wpress\/wp-content\/uploads\/2016\/04\/pluginupdate_0412.png\" rel=\"attachment wp-att-953\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/darkgray.homelinux.com\/modules\/wpress\/wp-content\/uploads\/2016\/04\/pluginupdate_0412-150x150.png\" alt=\"WordPress\u66f4\u65b0\u753b\u9762\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-953\" \/><\/a><figcaption id=\"caption-attachment-953\" class=\"wp-caption-text\">WordPress\u66f4\u65b0\u753b\u9762<\/figcaption><\/figure>\n<p><!--more--><\/p>\n<p>[xcode]<br \/>\n*VSFTP\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u3000CentOS\u306e\u6a19\u6e96\u7684\u306aFTP\u30b5\u30fc\u30d0\u3067\u3042\u308bVSFTP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\uff06\u8a2d\u5b9a\u65b9\u6cd5\u306f\u8aac\u660e\u3059\u308b\u3068\u9577\u304f\u306a\u308b\u3002\u3000\u3081\u3093\u3069\u3044\u306e\u3067[[\u3053\u3053>http:\/\/www.petatec.co.jp\/achives\/264\/]]\u3068\u304b[[\u3053\u3053>https:\/\/centossrv.com\/vsftpd.shtml]]\u3092\u53c2\u8003\u306b\u3057\u3066\u307b\u3057\u3044\u3002\u3000\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff0f\u8a2d\u5b9a\u65b9\u6cd5\u306f\u3000\u4e0a\u8a18\u4ee5\u5916\u306b\u3082\u3000&#8221;VSFTP&#8221;\u3067\u30b0\u30b0\u308c\u3070\u3044\u304f\u3089\u3067\u3082\u51fa\u3066\u304f\u308b\u3002<\/p>\n<p>\u3000\u53c2\u8003\u30b5\u30a4\u30c8\u3068\u9055\u3046\u6240\u3092\u7c21\u5358\u306b\u8aac\u660e\u3059\u308b\u3068\u3001Wordpress\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3060\u3051\u3067\u304d\u308c\u3070\u826f\u3044\u3068\u3044\u3046\u4e8b\u3092\u7b2c\u4e00\u6761\u4ef6\u306b\u3059\u308b\u70ba\u3001chroot\u6a5f\u80fd\u306f\u5168\u30e6\u30fc\u30b6\u306b\u5bfe\u3057\u3066\u6709\u52b9\u306b\u3059\u308b\u3002\u5177\u4f53\u7684\u306a\u65b9\u6cd5\u306fvsftpd.conf\u3092\u4ee5\u4e0b\u306e\u69d8\u306b\u4fee\u6b63\u3059\u308b\u3002<br \/>\n#code(baka){{<br \/>\nchroot_local_user=YES # \u3053\u306e\u884c\u3060\u3051\u6709\u52b9\u306b\u3057\u3066\u4e0b\u306e\uff13\u884c\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u306e\u307e\u307e<br \/>\n#chroot_list_enable=YES<br \/>\n# (default follows)<br \/>\n#chroot_list_file=\/etc\/vsftpd\/chroot_list<br \/>\n}}<br \/>\n\u53d6\u308a\u3042\u3048\u305a\u52d5\u3051\u3070\u826f\u3044\u306e\u3067\u3000\u30d1\u30c3\u30b7\u30d6\u30e2\u30fc\u30c9\u3084ssh\u6a5f\u80fd\u306f\u6709\u52b9\u306b\u3057\u306a\u3044\u3002\u3000\u3055\u3089\u306b\u3000\u30b5\u30fc\u30d0\u30fc\u5185\u3060\u3051\u3067\u6a5f\u80fd\u3059\u308c\u3070\u3044\u3044\u306e\u3067\u3000\u5916\u306b\u5411\u304b\u3063\u3066\u30dd\u30fc\u30c8\u306f\u30aa\u30fc\u30d7\u30f3\u3057\u306a\u3044\u3002<\/p>\n<p>&#038;font(Red){\u81f4\u547d\u7684\u306a\u8aac\u660e\u30df\u30b9\u304c\u767a\u898b\u3055\u308c\u305f\u306e\u3067\u6539\u7a3f\u4e88\u5b9a};<br \/>\n***\u52d5\u4f5c\u30c6\u30b9\u30c8<br \/>\n\u3000\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff06vsftp\u306e\u8d77\u52d5\u304c\u5b8c\u4e86\u3057\u305f\u3089\u7aef\u672b\u304b\u3089ftp\u30bd\u30d5\u30c8\u3092\u4f7f\u3063\u3066\u30c6\u30b9\u30c8\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3002\u3000\u5916\u306b\u5411\u304b\u3063\u3066\u30dd\u30fc\u30c8\u306f\u30aa\u30fc\u30d7\u30f3\u3057\u3066\u3044\u306a\u3044\u304cFirewalld\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u304b\u3089\u306eftp\u306b\u3088\u308b\u30a2\u30af\u30bb\u30b9\u306f\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u308b\u3002<br \/>\n&#038;ref(Image-FTP_1.png,mw:240,mh:240);<br \/>\n\u3000\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u305f\u3089\u30ed\u30b0\u30a4\u30f3\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u4e0a\u4f4d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3067\u304d\u306a\u3044\u4e8b\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<p>\u3000httpd\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u901a\u5e38\u306e\u5834\u5408\u3000\/var\/www\/\u4ee5\u4e0b\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304c\u3000\u3053\u306e\u72b6\u614b\u3060\u3068\u7ba1\u7406\u3057\u8f9b\u3044\u306e\u3067Darkgray\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3000httpd\u7ba1\u7406\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306b\u8a2d\u3051\u3066\u3042\u308b\u3002\u3000ftp\u30bd\u30d5\u30c8\u3067httpd\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u3078\u5165\u3063\u3066\u307f\u308b\u3068\u3000\u4e0a\u306e\u30a4\u30e1\u30fc\u30b8\u306e\u69d8\u306b\u30d5\u30a1\u30a4\u30eb\u3082\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u898b\u3048\u306a\u3044\u3002SELinux\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u3000FTP\u3067\u306fhttpd\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u7fa4\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306f\u5236\u9650\u3055\u308c\u3066\u3044\u308b\u3002httpd\u30c7\u30a3\u30af\u30ec\u30c8\u30ea\u4e0b\u3078\u306eftp\u3067\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u3066\u3084\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\n\u3000<br \/>\n\u3000<br \/>\n**httpd\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306eSELinux\u8a2d\u5b9a<br \/>\n\u3000SELinux\u3092\u6709\u52b9\u306b\u3057\u305f\u72b6\u614b\u3067httpd\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092ftp\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3000\u5404\u30d5\u30a1\u30a4\u30ebor\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bSELinux\u306b\u3088\u3063\u3066\u4ed8\u52a0\u3055\u308c\u305f\u30a2\u30af\u30bb\u30b9\u5c5e\u6027\u3092\u4fee\u6b63\u3057\u3066\u3084\u308b\u3068\u5171\u306b\u3000SELinux\u306e\u8a2d\u5b9a\u3092\u6c7a\u3081\u308b\uff08\u30d7\u30ed\u30b0\u30e9\u30e0\u7684\u306a\uff09\u30b9\u30a4\u30c3\u30c1\u3092\u5e7e\u3064\u304b\u64cd\u4f5c\u3057\u3066\u3084\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\n\u3000<br \/>\n***SELinux\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u5c5e\u6027<br \/>\n\u3000\u307e\u305a\u306f\u73fe\u5728\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5c5e\u6027\u3092\u8abf\u3079\u3066\u307f\u308b\u3002SELinux\u306b\u3088\u3063\u3066\u4ed8\u52a0\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u5c5e\u6027\u306f\u3000ll\uff08\u3082\u3057\u304f\u306fls\uff09\u306b\u3000-Z\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u3066\u5b9f\u884c\u3059\u308b\u3068\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n&#038;ref(Image-ll_1.png,mw:240,mh:240);<br \/>\n\u3000\u4e0a\u306e\u56f3\u3067\u306f\u3000\u5f93\u6765\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u3001\u30e6\u30fc\u30b6\u30fcID\u306b\u7d9a\u3044\u3066\u3000SELinux\u306b\u3088\u308b\u30a2\u30af\u30bb\u30b9\u5c5e\u6027\u304c\u8868\u793a\u3055\u308c\u3066\u3000\u305d\u306e\u5f8c\u306b\u30d5\u30a1\u30a4\u30eb\uff0f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\n\u3000\u4e00\u756a\u4e0b\u306e\u884c\u306eSELinux\u306e\u5c5e\u6027\u304c\u3000httpd_sys_content_t\u3068\u3044\u3046\u6240\u306b\u6ce8\u76ee\u3057\u3066\u307b\u3057\u3044\u3002\u3053\u306ehtml\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u7fa4\u304c\u3000httpd\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u30a2\u30af\u30bb\u30b9\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u4e8b\u3092\u793a\u3057\u3066\u3044\u308b\u3002<br \/>\n\u3000\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u3000httpd_xxxxxx_t\u3068\u3000xxxxxxx\u306e\u90e8\u5206\u304c\u5225\u306e\u540d\u524d\u306b\u306a\u3063\u3066\u308b\u4e8b\u3082\u3042\u308b\u304c\u3000\u982d\u306e\u201dhttpd_\u201d\u306e\u90e8\u5206\u3060\u3051\u3067httpd\u30b5\u30fc\u30d0\u306b\u95a2\u4fc2\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\u4e8b\u304c\u5206\u304b\u308b\u3002<br \/>\n\u3000\u3053\u306ehttpd_xxx\u306e\u5c5e\u6027\u306e\u3064\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u3092ftp\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u4e8b\u306f\u3067\u304d\u306a\u3044\u3002ftp\u30c4\u30fc\u30eb\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u524d\u9805\u306e\u30a4\u30e1\u30fc\u30b8\u306e\u69d8\u306b\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u3002\u3000\u8868\u793a\u3055\u308c\u306a\u3044\u306e\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u4e8b\u306f\u51fa\u6765\u306a\u3044\u3057\u3001\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4ed6\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u3059\u308b\u4e8b\u3082\u51fa\u6765\u306a\u3044\u3002<br \/>\n\u3000<br \/>\n\u3000httpd\u30b5\u30fc\u30d0\u304b\u3089\u3000ftp\u30c4\u30fc\u30eb\u304b\u3089\u306e\u4e21\u65b9\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u53ef\u80fd\u306b\u3059\u308b\u306b\u306f\u3000\u5c5e\u6027\u3092public_content_t\u306b\u5909\u66f4\u3059\u308b\u3002\u306a\u304apublic_content_t\u306f\u30a2\u30af\u30bb\u30b9\uff08\u8aad\u307f\u8fbc\u307f\uff09\u306e\u307f\u53ef\u80fd\u306b\u306a\u308b\u5c5e\u6027\u3067\u3001\u8aad\u307f\u66f8\u304d\u4e21\u65b9\u3092\u53ef\u80fd\u306b\u3059\u308b\u306b\u306f\u3000\u5c5e\u6027\u3092public_content_rw_t\u306b\u5909\u66f4\u3059\u308b\u3002<br \/>\n\u3000<br \/>\n***\u30d5\u30a1\u30a4\u30eb\u5c5e\u6027\u306e\u5909\u66f4\u65b9\u6cd5<br \/>\n\u3000\u5c5e\u6027\u3092\u5909\u66f4\u3059\u308b\u306b\u306fchcon\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3002\uff08root\u8cc7\u683c\u304c\u5fc5\u8981\uff09<br \/>\n#code(baka){{<br \/>\n[root@]# chcon -t public_content_t .\/html  <- html\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5bfe\u3057\u3066public_content_t\u5c5e\u6027\u3092\u4ed8\u4e0e\u3059\u308b\u30b3\u30de\u30f3\u30c9\u4f8b\n}}\n\u4ed6\u306b\u3082\u65b9\u6cd5\u306f\u3042\u308b\u306e\u3060\u304c\u3000\u3053\u306e\u65b9\u6cd5\u304c\u76f4\u63a5\u7684\u3067\u5206\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u3000\u79c1\u306f\u3044\u3064\u3082\u3053\u306e\u65b9\u6cd5\u3067\u5c5e\u6027\u3092\u64cd\u4f5c\u3057\u3066\u3044\u308b\u3002\n\u3000\n\u3000xoops\u306bxpress\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u3057\u3066WordPress\u3092\u7d44\u307f\u8fbc\u3080\u3068\u3000wp-content\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u307e\u3067\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u306f\u3000\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u306b\u306a\u308b\u3002\n#code(baka){{\n html\/modules\/xpress\/wp-content\/ \n}}\n\n\u3000httpd\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306e\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5c5e\u6027\u3092public_content_rw_t\u306b\u3057\u3066\u3082\u826f\u3044\u306e\u3060\u304c\u3001\u4eca\u56de\u306e\u76ee\u7684\u306f\u3000wp-content\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306b\u3042\u308b\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u3084\u30d7\u30e9\u30b0\u30a4\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3059\u308b\u4e8b\u306a\u306e\u3067\u3000\u7d4c\u8def\u4e0a\u306e\u5404\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bpublic_content_t\u5c5e\u6027\u3092\u4ed8\u4e0e\u3057\u3001wp-content\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u305d\u306e\u4e2d\u306b\u3042\u308b\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u306bpublic_content_rw_t\u5c5e\u6027\u3092\u4ed8\u4e0e\u3059\u308b\u3002ftp\u30c4\u30fc\u30eb\u306bwp-content\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u307f\u306e\u66f8\u304d\u8fbc\u307f\u3092\u8a31\u53ef\u3092\u4e0e\u3048\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u69d8\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002\u3000\n#code(baka){{\n[root@]# chcon -t public_content_t .\/html\n[root@]# chcon -t public_content_t .\/html\/modules\n[root@]# chcon -t public_content_t .\/html\/modules\/xpress\n[root@]# chcon -R -t public_content_rw_t .\/html\/modules\/xpress\/wp-content\n}}\n\u3000\n\u3000\u4ee5\u4e0a\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u5c5e\u6027\u306e\u4fee\u6b63\u4f5c\u696d\u306f\u7d42\u308f\u308a\u3060\u304c\u3000\u3053\u308c\u3060\u3051\u3067\u306f\u3000ftp\u30c4\u30fc\u30eb\u3067\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u306f\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308b\u304c\u3000\u66f8\u304d\u8fbc\u307f\u306f\u51fa\u6765\u306a\u3044\u3002SELinux\u306e\u30b7\u30b9\u30c6\u30e0\u306bftp\u30c4\u30fc\u30eb\u306b\u3088\u308b\u66f8\u304d\u8fbc\u307f\u3092\u8a31\u53ef\u3059\u308b\u30b9\u30a4\u30c3\u30c1\u64cd\u4f5c\u304c\u5fc5\u8981\u3060\u3002\n\n***SELinux\u306e\u30b9\u30a4\u30c3\u30c1\u64cd\u4f5c\n\u3000SELinux\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u306f\u3000\u8272\u3005\u306a\u30b5\u30fc\u30d3\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u306e\u7981\u6b62\uff0f\u8a31\u53ef\u3092\u5236\u5fa1\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u7684\u306a\u30b9\u30a4\u30c3\u30c1\u304c\u3042\u308b\u3002\u307e\u305a\u306fftp\u306b\u95a2\u3059\u308b\u30b9\u30a4\u30c3\u30c1\u3092\u8868\u793a\u3057\u3066\u307f\u308b\u3002\n#code(baka){{\n[root@]# getsebool -a | grep ftp                                                                                    \nftp_home_dir --> on<br \/>\nftpd_anon_write &#8211;> on<br \/>\nftpd_connect_all_unreserved &#8211;> off<br \/>\nftpd_connect_db &#8211;> off<br \/>\nftpd_full_access &#8211;> off<br \/>\nftpd_use_cifs &#8211;> off<br \/>\nftpd_use_fusefs &#8211;> off<br \/>\nftpd_use_nfs &#8211;> off<br \/>\nftpd_use_passive_mode &#8211;> off<br \/>\nhttpd_can_connect_ftp &#8211;> on<br \/>\nhttpd_enable_ftp_server &#8211;> off<br \/>\nsftpd_anon_write &#8211;> off<br \/>\nsftpd_enable_homedirs &#8211;> off<br \/>\nsftpd_full_access &#8211;> off<br \/>\nsftpd_write_ssh_home &#8211;> off<br \/>\ntftp_anon_write &#8211;> off<br \/>\ntftp_home_dir &#8211;> off<br \/>\n[root@]#<br \/>\n}}<\/p>\n<p>\u3000\u73fe\u5728\u306eDarkgray\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u3092\u8868\u793a\u3057\u3066\u307f\u305f\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u5168\u3066off\u306a\u3093\u3060\u304c\u3000ftp\u3067\u306e\u66f8\u304d\u8fbc\u307f\u3092\u8a31\u53ef\u3059\u308b\u305f\u3081\u306b\u5e7e\u3064\u304b\u3092on\u306b\u8a2d\u5b9a\u3057\u3066\u3042\u308b\u3002<br \/>\n\u30b9\u30a4\u30c3\u30c1\u3092on\u306b\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u69d8\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002<br \/>\n#code(baka,nomenu){{<br \/>\n[root@]# setsebool -P ftp_home_dir on  <- ftp\u66f8\u304d\u8fbc\u307f\u8a31\u53ef\n[root@]# setsebool -P ftp_anon_write on  <- ftp\u66f8\u304d\u8fbc\u307f\u8a31\u53ef\n[root@]# setsebool -P ftp_home_dir on  <- \u66f8\u304d\u8fbc\u307f\u8a31\u53ef\n\n}}\n\uff08\u4ee5\u4e0b\u3000\u7de8\u96c6\u9014\u4e2d\uff09\n[\/xcode]\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u306e\u753b\u50cf\u306f\u3000WordPress\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u753b\u9762\u306eSS\u306a\u3093\u3060\u304c\u30fb\u30fb\u30fb\u3000\u3053\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u306b\u306fFTP\u30b5\u30fc\u30d0\u304c\u6a5f\u80fd\u3057\u3066\u306a\u3044\u3068\u4f7f\u3048\u306a\u3044\u3002\u3000\u305d\u3053\u3067Darkgray\u30b5\u30fc\u30d0\u306bvsftp\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[5,21],"tags":[],"class_list":["post-941","post","type-post","status-publish","format-standard","hentry","category-darkgray-server","category-selinux"],"_links":{"self":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=941"}],"version-history":[{"count":1,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/941\/revisions"}],"predecessor-version":[{"id":1305,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/941\/revisions\/1305"}],"wp:attachment":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}