{"id":220,"date":"2016-11-02T09:41:17","date_gmt":"2016-11-02T00:41:17","guid":{"rendered":"https:\/\/onaraboo.com\/?p=220"},"modified":"2016-11-02T09:41:17","modified_gmt":"2016-11-02T00:41:17","slug":"linux-yum%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%a7ftp%e3%82%b5%e3%83%bc%e3%83%90%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/onaraboo.com\/?p=220","title":{"rendered":"Linux yum\u30b3\u30de\u30f3\u30c9\u3067FTP\u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/onaraboo.com\/?p=220\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/onaraboo.com\/?p=220\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Linux yum\u30b3\u30de\u30f3\u30c9\u3067FTP\u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img loading=\"lazy\" decoding=\"async\" src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_line\"><a href='http:\/\/line.me\/R\/msg\/text\/?Linux%20yum%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%A7FTP%E3%82%B5%E3%83%BC%E3%83%90%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%0D%0Ahttps%3A%2F%2Fonaraboo.com%2F%3Fp%3D220' title='LINE\u3067\u9001\u308b' rel=nofollow class='wp_social_bookmarking_light_a' ><img src='https:\/\/onaraboo.com\/wordpress\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/line20x20.png' alt='LINE\u3067\u9001\u308b' title='LINE\u3067\u9001\u308b' width='20' height='20' class='wp_social_bookmarking_light_img' \/><\/a><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/onaraboo.com\/?p=220\" data-text=\"Linux yum\u30b3\u30de\u30f3\u30c9\u3067FTP\u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\" data-lang=\"ja\">Tweet<\/a><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n<p>CentOS7\u306bFTP\u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u306e\u30e1\u30e2\u3002<br \/>\n\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u7ba1\u7406\u8005\u3067\u5b9f\u884c<br \/>\n>su<br \/>\n>yum install vsftpd ftp -y<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u81ea\u4f53\u306f\u3042\u3063\u3055\u308a\u7d42\u4e86\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3053\u304b\u3089\u306f\u8a2d\u5b9a\u95a2\u4fc2<br \/>\n\/etc\/vsftpd\/vsftpd.conf<br \/>\n\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3059\u308b\u3002<\/p>\n<p># 12\u884c\u76ee\uff1aanonymous\u30ed\u30b0\u30a4\u30f3\u306e\u7981\u6b62<br \/>\nanonymous_enable=NO<\/p>\n<p># 82,83\u884c\u76ee\uff1a\u30b3\u30e1\u30f3\u30c8\u89e3\u9664 (\u30a2\u30b9\u30ad\u30fc\u30e2\u30fc\u30c9\u3092\u6709\u52b9)<br \/>\nascii_upload_enable=YES<br \/>\nascii_download_enable=YES<\/p>\n<p># 100,101\u884c\u76ee\uff1a\u30b3\u30e1\u30f3\u30c8\u89e3\u9664( chroot\u6709\u52b9 )<br \/>\nchroot_local_user=YES<br \/>\nchroot_list_enable=YES<\/p>\n<p># 103\u884c\u76ee\uff1a\u30b3\u30e1\u30f3\u30c8\u89e3\u9664 ( chroot \u30ea\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u6307\u5b9a )<br \/>\nchroot_list_file=\/etc\/vsftpd\/chroot_list<\/p>\n<p># 109\u884c\u76ee\uff1a\u30b3\u30e1\u30f3\u30c8\u89e3\u9664 ( \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3054\u3068\u4e00\u62ec\u3067\u306e\u8ee2\u9001\u6709\u52b9 )<br \/>\nls_recurse_enable=YES<\/p>\n<p># 114\u884c\u76ee\uff1a\u5909\u66f4 ( IPv4\u3092\u89e3\u653e\u3059\u308b )<br \/>\nlisten=YES<\/p>\n<p># 123\u884c\u76ee\uff1a\u5909\u66f4 ( \u3082\u3057\u4e0d\u8981\u306a\u3089 IPv6 \u306f\u7121\u52b9\u306b )<br \/>\nlisten_ipv6=NO<\/p>\n<p># \u6700\u7d42\u884c\u3078\u8ffd\u8a18<br \/>\n# \u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u6307\u5b9a (\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u306f\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u306a\u308b)<br \/>\nlocal_root=public_html<\/p>\n<p># \u30ed\u30fc\u30ab\u30eb\u30bf\u30a4\u30e0\u3092\u4f7f\u3046<br \/>\nuse_localtime=YES<\/p>\n<p># seccomp filter \u3092\u30aa\u30d5\u306b\u3059\u308b ( \u30ed\u30b0\u30a4\u30f3\u306b\u5931\u6557\u3059\u308b\u5834\u5408\u306f\u30aa\u30d5\u306b\u3059\u308b )<br \/>\nseccomp_sandbox=NO<br \/>\nallow_writeable_chroot=YES<\/p>\n<p># \u30e6\u30fc\u30b6\u306eftp\u30b3\u30de\u30f3\u30c9\u3092\u30ed\u30b0\u306b\u6b8b\u3059<br \/>\nxferlog_std_format=NO<br \/>\nlog_ftp_protocol=YES<\/p>\n<p># \u30d1\u30c3\u30b7\u30d6\u30e2\u30fc\u30c9\u306b\u3059\u308b<br \/>\npasv_promiscuous=YES<\/p>\n<p># \u30d1\u30c3\u30b7\u30d6\u30e2\u30fc\u30c9\u5229\u7528\u6642\u306e\u30dd\u30fc\u30c8\u7bc4\u56f2(\u4f8b\uff1a50000\uff5e50050)<br \/>\npasv_min_port=50000<br \/>\npasv_max_port=50050<\/p>\n<p>\u2193\u3053\u3053\u304b\u3089\u306f\u8a2d\u5b9a\u95a2\u4fc2\u2193<br \/>\n\u2605\u30e6\u30fc\u30b6\u30fc\u7528\u306e\u74b0\u5883\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210<br \/>\n\/etc\/vsftpd\/user_conf\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210<br \/>\n\u305d\u306e\u4e2d\u306b\u30e6\u30fc\u30b6\u30fc\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u3000\u4f8b\uff1akore<br \/>\n\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8a2d\u5b9a(\u4f8b)<br \/>\nlocal_root=\/opt\/ftp_folder\/kore<\/p>\n<p>\u2605Firewalld\u304c\u6709\u52b9\u306a\u5834\u5408\u306fFTP\u30b5\u30fc\u30d3\u30b9\u3092\u8a31\u53ef\u3059\u308b\u3002<br \/>\nfirewall-cmd &#8211;add-service=ftp &#8211;permanent<br \/>\nfirewall-cmd &#8211;reload<\/p>\n<p>\u2605SELinux\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u30d7\u30fc\u30eb\u5024\u306e\u5909\u66f4\u304c\u5fc5\u8981\u3089\u3057\u3044\u3002<br \/>\nsetsebool -P ftpd_full_access on<\/p>\n<p>\u2605\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0\u65b9\u6cd5<br \/>\n\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089<br \/>\n#su<br \/>\n#useradd [\u30e6\u30fc\u30b6\u30fc\u540d]\n#passwd [\u30e6\u30fc\u30b6\u30fc\u540d]\n\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a<\/p>\n<p>\/etc\/vsftpd\/user_conf\/\u306b\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0<br \/>\n\u30e6\u30fc\u30b6\u30fc\u540d\u306e\u30d5\u30a1\u30a4\u30eb<br \/>\n\u4f8b\uff1a\u30e6\u30fc\u30b6\u30fc\u540d\u304c[kore]\u306e\u5834\u5408<br \/>\n\/etc\/vsftpd\/user_conf\/kore<br \/>\n\u4e2d\u8eab\u306b\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8a2d\u5b9a\u3092\u8a18\u8ff0(\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u6c17\u3092\u4ed8\u3051\u3066\u304a\u304f)<br \/>\nlocal_root=\/opt\/FTP_folder\/kore<\/p>\n<p>\u305d\u306e\u5f8c\/etc\/vsftpd\/user_list\u306b\u63a5\u7d9a\u8a31\u53ef\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u8a18\u8ff0\u3059\u308b<br \/>\nkore<\/p>\n<p>\u53c2\u8003\u30da\u30fc\u30b8<br \/>\nhttp:\/\/kajuhome.com\/vsftpd.shtml#n04<br \/>\nhttps:\/\/www.server-world.info\/query?os=CentOS_7&#038;p=ftp<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS7\u306bFTP\u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u306e\u30e1\u30e2\u3002 \u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u7ba1\u7406\u8005\u3067\u5b9f\u884c >su >yum install vsftpd ftp -y \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u81ea\u4f53\u306f\u3042\u3063\u3055\u308a\u7d42\u4e86\u3057\u307e\u3059\u3002 \u3053\u3053\u304b\u3089\u306f\u8a2d&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/onaraboo.com\/?p=220\">Read more<span class=\"screen-reader-text\">Linux yum\u30b3\u30de\u30f3\u30c9\u3067FTP\u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,2,6],"tags":[],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-linux","category-2","category-6","entry"],"_links":{"self":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=220"}],"version-history":[{"count":0,"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/posts\/220\/revisions"}],"wp:attachment":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}