{"id":123,"date":"2016-02-24T18:19:44","date_gmt":"2016-02-24T09:19:44","guid":{"rendered":"http:\/\/windabaft.co.jp\/blog_ceo\/?p=123"},"modified":"2016-02-28T12:00:35","modified_gmt":"2016-02-28T03:00:35","slug":"centos-6-7-%e3%81%a7%e3%81%aevsftpd%e8%a8%ad%e5%ae%9a-%e3%81%a8ffftp%e3%82%af%e3%83%a9%e3%82%a4%e3%82%a2%e3%83%b3%e3%83%88%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/windabaft.co.jp\/blog_ceo\/?p=123","title":{"rendered":"CentOS 6.7 \u3067\u306evsftpd\u8a2d\u5b9a \u3068FFFTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a2d\u5b9a"},"content":{"rendered":"<p>\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u306bSSH\u3092\u5229\u7528\u3059\u308b\u65b9\u304c\u591a\u3044\u306e\u3067\u3001<br \/>\n\u30d5\u30a1\u30a4\u30eb\u8ee2\u9001\u306b\u306fSCP\u3001\u3082\u3057\u304f\u306fHTTP\u3068\u3044\u3063\u305f\u3068\u3053\u308d\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4e00\u6614\u524d\u306f\u30d5\u30a1\u30a4\u30eb\u8ee2\u9001\u306b\u306fFTP\u304c\u30e1\u30b8\u30e3\u30fc\u3067\u3057\u305f\u304c\u3001<br \/>\nHTTP\u3001SCP\u306b\u62bc\u3055\u308c\u4f7f\u7528\u983b\u5ea6\u304c\u843d\u3061\u3066\u3044\u308b\u304b\u306a\uff1f\u3068\u611f\u3058\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001SCP\u306f\u6697\u53f7\u5316\u3092\u884c\u3046\u305f\u3081\u3001\u6697\u53f7\u5316\u3092\u884c\u308f\u306a\u3044FTP\u3068\u6bd4\u3079\u308b\u3068<br \/>\n\u8ee2\u9001\u901f\u5ea6\u306f\u534a\u5206\u4ee5\u4e0b(4\u5206\u306e1\u7a0b\u5ea6\u306e\u3053\u3068\u3082\uff09\u306b\u306a\u308b\u3053\u3068\u304c\u307b\u3068\u3093\u3069\u3067\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001\u7279\u306b\u6697\u53f7\u5316\u306e\u5fc5\u8981\u306e\u306a\u3044\u591a\u304f\u306e\u30c7\u30fc\u30bf\u3092\u4e00\u5ea6\u306b\u8ee2\u9001\u3059\u308b\u969b\u306b\u306f\u3001\u307e\u3060\u307e\u3060FTP\u306f\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3001\u4e0b\u8a18\u306e\u8981\u4ef6\u3092\u4eee\u5b9a\u3057\u3066\u3001CentOS6.7\u3067\u3001FTP\u30b5\u30fc\u30d0\u30fc\uff08vsftpd)\u3092\u7acb\u3066\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u25a0 \u5916\u90e8\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u306a\u3044\u793e\u5185\u30b5\u30fc\u30d0\u30fc\u3067\u306e\u904b\u7528\uff08LAN\u306e\u307f\uff09<\/span><br \/>\n<span style=\"color: #ff0000;\"> \u25a0 \u30a2\u30af\u30c6\u30a3\u30d6\u30e2\u30fc\u30c9\u63a5\u7d9a\uff0820\u756a\u300121\u756a\u30dd\u30fc\u30c8\u958b\u653e\u306e\u307f\u3067\uff2f\uff2b\uff09<\/span><br \/>\n\u203b\u30d1\u30c3\u30b7\u30d6\u30e2\u30fc\u30c9\uff08PASV\u30e2\u30fc\u30c9\uff09\u306e\u5834\u5408\u306b\u306fTCP 1024\u4ee5\u4e0a\u3067\u3051\u3063\u3053\u3046\u5e83\u3044\u30ec\u30f3\u30b8\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u958b\u653e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059<\/p>\n<p><span style=\"color: #000000;\"><strong># rpm -q vsftpd<\/strong>\u3000<\/span>\uff1c\uff0d\uff0d vsftpd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u8abf\u3079\u308b<br \/>\n# \u30d1\u30c3\u30b1\u30fc\u30b8vsftpd\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u305b\u3093<\/p>\n<p>vsftpd\u304c\u5165\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u5165\u308c\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #000000;\"><strong># yum -y install vsftpd<\/strong>\u00a0<\/span>\u3000\uff1c\uff0d\uff0d vsftpd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p><span style=\"color: #000000;\"><strong># netstat -antu<\/strong>\u00a0<\/span>\u3000\uff1c\uff0d\uff0d \u30dd\u30fc\u30c8\u78ba\u8a8d<br \/>\n\uff08<span style=\"color: #000000;\"><strong># iptables -vnL<\/strong><\/span>\u3000\u3067\u3082\uff2f\uff2b\uff09<\/p>\n<p>20,21\u756a\u30dd\u30fc\u30c8\u304c\u7a7a\u3044\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u306f\u6b21\u306e\u3088\u3046\u306biptables\u306b\u8ffd\u52a0<\/p>\n<p><span style=\"color: #000000;\"><strong># vi \/etc\/sysconfig\/iptables<\/strong><\/span><br \/>\n<span style=\"color: #000000;\"> <strong>-A INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport 20 -j ACCEPT<\/strong><\/span><br \/>\n<span style=\"color: #000000;\"> <strong> -A INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport 21 -j ACCEPT<\/strong><\/span><br \/>\n\uff08vi\u30a8\u30c7\u30a3\u30bf\u306f\u201di&#8221;\u62bc\u305b\u3070\u66f8\u304d\u3053\u3081\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3001\u8a18\u9332\u3057\u3066\u7d42\u308f\u308b\u3068\u304d\u306f&#8221;ESC&#8221;\u3067\u629c\u3051\u3066\u304b\u3089 &#8220;\uff1awq&#8221;\u3000\u3067\u3059\u3088\uff01\uff09<\/p>\n<p>vsftpd\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #000000;\"><strong># vi \/etc\/vsftpd\/vsftpd.conf<\/strong><\/span><\/p>\n<p>vsftpd.conf\u5185\u306e\u8a2d\u5b9a\u5909\u66f4\u3057\u305f\u3068\u3053\u3060\u3051\u629c\u7c8b<br \/>\n<span style=\"color: #000000;\"><strong>anonymous_enable=NO<\/strong><\/span> \uff1c\uff0d\uff0d\u533f\u540d\u30ed\u30b0\u30a4\u30f3\u7981\u6b62\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u306fYES\uff09<\/p>\n<p><span style=\"color: #000000;\"><strong>ascii_upload_enable=YES<\/strong><\/span> \uff1c\uff0d\uff0d\u30b3\u30e1\u30f3\u30c8\u524a\u9664\u3057\u3066\u6709\u52b9\u306b\u3059\u308b ( \u30a2\u30b9\u30ad\u30fc\u30e2\u30fc\u30c9\u3067\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u8a31\u53ef )<br \/>\n<span style=\"color: #000000;\"><strong>ascii_download_enable=YES<\/strong><\/span> \uff1c\uff0d\uff0d\u30b3\u30e1\u30f3\u30c8\u524a\u9664\u3057\u3066\u6709\u52b9\u306b\u3059\u308b\uff08\u30a2\u30b9\u30ad\u30fc\u30e2\u30fc\u30c9\u3067\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3092\u8a31\u53ef\uff09<\/p>\n<p><span style=\"color: #000000;\"><strong>ftpd_banner=Welcome to blah FTP service.<\/strong><\/span> \uff1c\uff0d\uff0d\u30b3\u30e1\u30f3\u30c8\u524a\u9664\u3057\u3066\u6709\u52b9\u306b\u3059\u308b\u3002\u5225\u306b\u3057\u306a\u304f\u3066\u3082\uff2f\uff2b\uff08FTP\u30ed\u30b0\u30a4\u30f3\u6642\u306b\u30bd\u30d5\u30c8\u540d\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u306a\u308b\uff09<\/p>\n<p><span style=\"color: #000000;\"><strong>chroot_local_user=YES<\/strong> <\/span>\uff1c\uff0d\uff0d\u30b3\u30e1\u30f3\u30c8\u524a\u9664\u3057\u3066\u6709\u52b9\u306b\u3059\u308b ( chroot\u6709\u52b9 )\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3088\u308a\u4e0a\u5c64\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u7981\u6b62<br \/>\n<span style=\"color: #000000;\"><strong>chroot_list_enable=YES<\/strong><\/span> \uff1c\uff0d\uff0d\u30b3\u30e1\u30f3\u30c8\u524a\u9664\u3057\u3066\u6709\u52b9\u306b\u3059\u308b\u3002\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3088\u308a\u4e0a\u5c64\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u30e6\u30fc\u30b6\u30ea\u30b9\u30c8\u306e\u6709\u52b9\u5316<br \/>\n<span style=\"color: #000000;\"><strong>chroot_list_file=\/etc\/vsftpd\/chroot_list<\/strong><\/span> \uff1c\uff0d\uff0d\u30b3\u30e1\u30f3\u30c8\u524a\u9664\u3057\u3066\u6709\u52b9\u306b\u3059\u308b ( chroot \u30ea\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u6307\u5b9a )<br \/>\n\u203b\u7ba1\u7406\u8005\u3084\u3001\u81ea\u8eab\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u5916\u3078\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u30e6\u30fc\u30b6\u306e\u307f\u767b\u9332\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3002\u7ba1\u7406\u8005\u306fSCP\u3067\u3044\u3044\u3084\u3068\u3044\u3046\u3088\u3046\u306a\u5834\u5408\u306f\u7279\u306b\u6709\u52b9\u306b\u3057\u306a\u304f\u3066\uff2f\uff2b\u3002\u3082\u3057\u304f\u306fchroot_list\u3092\u4f5c\u6210\u6642\u306b\u4f55\u3082\u66f8\u304d\u8fbc\u307e\u306a\u3044\u3002\u3061\u306a\u307f\u306bchroot\u3092\u6709\u52b9\u306b\u3057\u305f\u5834\u5408\u306b\u306fchroot_list\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u3044\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u3001\u4f5c\u6210\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3002<\/p>\n<p><span style=\"color: #000000;\"><strong>ls_recurse_enable=YES<\/strong> <\/span>\uff1c\uff0d\uff0d\u30b3\u30e1\u30f3\u30c8\u524a\u9664\u3057\u3066\u6709\u52b9\u306b\u3059\u308b ( \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3054\u3068\u4e00\u62ec\u3067\u306e\u8ee2\u9001\u6709\u52b9 )<\/p>\n<p>\u6700\u7d42\u884c\u3078\u4e0b\u8a18\u306e\uff14\u884c\u3092\u8ffd\u8a18<br \/>\n<span style=\"color: #000000;\"><strong>userlist_deny=NO<\/strong><\/span><br \/>\n<span style=\"color: #000000;\"> <strong>userlist_file=\/etc\/vsftpd\/user_list<\/strong><\/span><br \/>\n<span style=\"color: #000000;\"><strong>local_root=public_html<\/strong> <\/span>\uff1c\uff0d\uff0d\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 \/>\n<span style=\"color: #000000;\"><strong>use_localtime=YES<\/strong> <\/span>\uff1c\uff0d\uff0d\u30ed\u30fc\u30ab\u30eb\u30bf\u30a4\u30e0\u3092\u4f7f\u3046<br \/>\n\u203buserlist_enable=YES\u3001userlist_deny=NO\u3067\/etc\/vsftpd\/user_list \u304cFTP\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u30ea\u30b9\u30c8\uff08\u30db\u30ef\u30a4\u30c8\u30ea\u30b9\u30c8\uff09\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\nuserlist_deny=YES \u3082\u3057\u304f\u306f\u524a\u9664\u3067\u3001\/etc\/vsftpd\/user_list \u304cFTP\u30ed\u30b0\u30a4\u30f3\u7981\u6b62\u30e6\u30fc\u30b6\u30fc\u306e\u30ea\u30b9\u30c8\uff08\u30d6\u30e9\u30c3\u30af\u30ea\u30b9\u30c8\uff09\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>vsftpd\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4fee\u6b63\u306f\u3053\u308c\u3067\u7d42\u308f\u308a\u3002<\/p>\n<p>user_list\u306bFTP\u30ed\u30b0\u30a4\u30f3\u3092\u8a31\u53ef\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u66f8\u304d\u8fbc\u3080<br \/>\n<span style=\"color: #000000;\"><strong># vi \/etc\/vsftpd\/user_list<\/strong><\/span><br \/>\n<span style=\"color: #000000;\"> <strong>hogehoge<\/strong><\/span><\/p>\n<p>FTP\u30ed\u30b0\u30a4\u30f3\u306e\u30eb\u30fc\u30eb\u306fftpusers\u306b\u3082\u6307\u5b9a\u3055\u308c\u3066\u3044\u3066\u3001<br \/>\n\/etc\/vsftpd\/ftpusers<br \/>\n\u306b\u8a18\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u306fFTP\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u307e\u305b\u3093\u3002<strong>\u3053\u308c\u306f\u4e0a\u8a18\u306e\u30db\u30ef\u30a4\u30c8\u30ea\u30b9\u30c8\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3082\u6709\u52b9\u3067\u3059\u3002<br \/>\n<\/strong><\/p>\n<p><span style=\"color: #000000;\"><strong># chkconfig vsftpd on<\/strong>\u00a0\u3000<\/span>\uff1c\uff0d\uff0d \u6b21\u56de\u306e\u30d6\u30fc\u30c8\u6642\u304b\u3089\u306f\u81ea\u52d5\u8d77\u52d5\u306e\u8a2d\u5b9a<br \/>\n<span style=\"color: #000000;\"><strong># service vsftpd start<\/strong>\u00a0\u3000<\/span>\uff1c\uff0d\uff0d vsftpd\u3092\u8d77\u52d5<\/p>\n<p>\u3053\u3053\u3067\u3001FTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001<br \/>\n500 OOPS: cannot change directory:\/home\/hogehoge<br \/>\n500 OOPS: priv_sock_get_cmd<br \/>\n\u3068\u306a\u308a\u3001\u63a5\u7d9a\u3067\u304d\u306a\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u3055\u3089\u306b\u4e0b\u8a18\uff11\u304b\uff12\u306e\u3069\u3061\u3089\u304b\u3092\u884c\u3048\u3070\uff2f\uff2b\uff0e<\/p>\n<p>1. <span style=\"color: #ff0000;\">SELinux\u306e\u505c\u6b62<\/span><br \/>\n<span style=\"color: #000000;\"><strong># getenforce<\/strong>\u3000<\/span>\uff1c\uff0d\uff0d SELinux\u304c\u52d5\u3044\u3066\u3044\u308b\u304b\u306e\u78ba\u8a8d<br \/>\n<span style=\"color: #000000;\"><strong>Enforcing<\/strong><\/span>\u3000\uff1c\uff0d\uff0d \u52d5\u3044\u3066\u3044\u308b\u3002\u52d5\u3044\u3066\u3044\u306a\u3044\u5834\u5408\u306fDiabled\u3068\u51fa\u308b<\/p>\n<p><span style=\"color: #000000;\"><strong># vi \/etc\/sysconfig\/selinux<\/strong><\/span><br \/>\nSELINUX=enforcing<br \/>\n\u21d2<span style=\"color: #000000;\"><strong>SELINUX=disabled<\/strong><\/span><br \/>\n\u3068\u5909\u66f4\u3059\u308b\u3002<\/p>\n<p><strong><span style=\"color: #000000;\"># reboot<\/span><\/strong>\u3000\uff1c\uff0d\uff0dOS\u518d\u8d77\u52d5<\/p>\n<p>2. <span style=\"color: #ff0000;\">SELinux\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b<\/span><br \/>\n<span style=\"color: #000000;\"><strong>\/usr\/sbin\/getsebool -a | grep ftp<\/strong><\/span><br \/>\n\u3067\u78ba\u8a8d\u3059\u308b\u3002<br \/>\n<span style=\"color: #000000;\">ftp_home_dir &#8211;&gt; off<\/span><br \/>\n\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u3053\u308c\u3092ON\u306b\u5909\u3048\u308b\u305f\u3081\u306b<br \/>\n<span style=\"color: #000000;\"><strong># \/usr\/sbin\/setsebool -P ftp_home_dir 1<\/strong><\/span>\u3000\u2190\uff08\u3051\u3063\u3053\u3046\u6642\u9593\u304b\u304b\u308b\uff09<\/p>\n<p>\u7d42\u4e86\u3057\u305f\u3089\u3001\u5ff5\u306e\u305f\u3081\u306b<br \/>\n<span style=\"color: #000000;\"><strong># \/usr\/sbin\/getsebool -a | grep ftp<\/strong><\/span><br \/>\n<strong><span style=\"color: #000000;\">ftp_home_dir &#8211;&gt; on<\/span><\/strong> \u306b\u306a\u3063\u3066\u3044\u308c\u3070\uff2f\uff2b<\/p>\n<p>\u4eca\u56de\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306ehome\u306b\u8a2d\u5b9a\u3057\u305fpublic_html\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3069\u3046\u3084\u3063\u3066\u4f5c\u308b\u306e\uff1f\u3063\u3066\u4eba\u306b<br \/>\n<span style=\"color: #000000;\"><strong>$ cd \/home\/hogehoge<\/strong><\/span><br \/>\n<span style=\"color: #000000;\"> <strong> $ mkdir public_html<\/strong><\/span><br \/>\n<span style=\"color: #000000;\"> <strong> $ cd public_html<\/strong><\/span><br \/>\n<span style=\"color: #000000;\"> <strong> $ echo &#8216;TEST FILE&#8217; &gt; index.html index.html<\/strong><\/span>\u3000\uff1c\uff0d\uff0d \u8a66\u3057\u306b\u30d5\u30a1\u30a4\u30eb\u4f5c\u3063\u3066\u307f\u305f\u3060\u3051\u3067\u3001\u30cd\u30c3\u30c8\u516c\u958b\u3057\u306a\u3044\u306e\u3067\u5225\u306b\u5fc5\u8981\u306a\u3044\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u3067\u3001CentOS\u5074\u3078\u306e\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>FFFTP\u30bd\u30d5\u30c8\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u306e\u8a2d\u5b9a\u3092\u4e00\u5fdc\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n<span style=\"color: #ff0000;\">\u2460[\u8a2d\u5b9a\u5909\u66f4]\u2192[\u6587\u5b57\u30b3\u30fc\u30c9]\u2192[\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u6f22\u5b57\u30b3\u30fc\u30c9]\u3092\u300cUTF-8N\u300d\u3078\u5909\u66f4<\/span><br \/>\n<span style=\"color: #ff0000;\"> \u2461[\u8a2d\u5b9a\u5909\u66f4]\u2192[\u62e1\u5f35]\u2192\u300cPASV\u30e2\u30fc\u30c9\u3092\u4f7f\u3046\u300d\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059<\/span><\/p>\n<p>vsftpd\u3092\u3061\u3083\u3093\u3068\u8a2d\u5b9a\u3057\u305f\u306f\u305a\u306a\u306e\u306b\u3001FTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u63a5\u7d9a\u3067\u304d\u306a\u3044\u3068\u304d\u306f\u3001<br \/>\nchroot_list,user_list\u304c\u5b58\u5728\u3059\u308b\u304b\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u3093\u3060\u30d1\u30b9\u306a\u3069\u306b\u30b9\u30da\u30eb\u30df\u30b9\u304c\u306a\u3044\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>windows\u306emcd\uff08\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\uff09\u3067ftp\u63a5\u7d9a\u3057\u3066\u3001\u554f\u984c\u3092\u767a\u898b\u3067\u304d\u305f\u308a\u3082\u3057\u307e\u3059\u3002<\/p>\n<p>C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d&gt;ftp 192.168.**.*** \u3000\u2190\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u6307\u5b9a\u3059\u308b<br \/>\n192.168.**.*** \u306b\u63a5\u7d9a\u3057\u307e\u3057\u305f\u3002<br \/>\n500 OOPS: cannot read user list file:\/etc\/vsftpd\/userlist<br \/>\n500 OOPS: priv_sock_get_cmd<br \/>\n\u63a5\u7d9a\u304c\u30ea\u30e2\u30fc\u30c8 \u30db\u30b9\u30c8\u306b\u3088\u3063\u3066\u9589\u3058\u3089\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001userlist\u21d2user_list\u306e\u30b9\u30da\u30eb\u30df\u30b9\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<br \/>\n\u306a\u306e\u3067\u3001<br \/>\n# vi \/etc\/vsftpd\/vsftpd.conf<br \/>\n\u3067\u8a72\u5f53\u7b87\u6240\u306e\u30b9\u30da\u30eb\u3092\u4fee\u6b63\u3059\u308c\u3070\uff2f\uff2b<\/p>\n<p>C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d&gt;<span style=\"color: #ff0000;\">ftp 192.168.**.***<\/span><br \/>\n192.168.**.*** \u306b\u63a5\u7d9a\u3057\u307e\u3057\u305f\u3002<br \/>\n220 Welcome to blah FTP service.<br \/>\n\u30e6\u30fc\u30b6\u30fc (192.168.**.***:(none)):<span style=\"color: #ff0000;\">hogehoge<\/span><br \/>\n331 Please specify the password.<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\uff1a****<br \/>\nLogin successful.<br \/>\n\u2191\u3053\u308c\u3067\u30e6\u30fc\u30b6\u30fc\u540d\uff1ahogehoge\u3067FTP\u63a5\u7d9a\u304c\u3067\u304d\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u304b\u3063\u305f\u3089\u3001user_list\u306b\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8a18\u8f09\u3057\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u306bSSH\u3092\u5229\u7528\u3059\u308b\u65b9\u304c\u591a\u3044\u306e\u3067\u3001 \u30d5\u30a1\u30a4\u30eb\u8ee2\u9001\u306b\u306fSCP\u3001\u3082\u3057\u304f\u306fHTTP\u3068\u3044\u3063\u305f\u3068\u3053\u308d\u3067\u3057\u3087\u3046\u304b\u3002 \u4e00\u6614\u524d\u306f\u30d5\u30a1\u30a4\u30eb\u8ee2\u9001\u306b\u306fFTP\u304c\u30e1\u30b8\u30e3\u30fc\u3067\u3057\u305f\u304c\u3001 HTTP\u3001SCP\u306b\u62bc\u3055\u308c\u4f7f\u7528\u983b\u5ea6\u304c\u843d\u3061\u3066\u3044\u308b\u304b\u306a\uff1f\u3068\u611f &hellip; <a href=\"https:\/\/windabaft.co.jp\/blog_ceo\/?p=123\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">CentOS 6.7 \u3067\u306evsftpd\u8a2d\u5b9a \u3068FFFTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a2d\u5b9a<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[15,6],"tags":[],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-linux","category-rubyrails"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":7,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":133,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions\/133"}],"wp:attachment":[{"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/windabaft.co.jp\/blog_ceo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}