{"id":166147,"date":"2013-01-17T16:26:06","date_gmt":"2013-01-17T12:26:06","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=166147"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=166147","title":{"rendered":"<span class=\"post_title\">\u041a\u0430\u043a \u044f vsftpd \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043d\u0435\u0434\u0430\u0432\u043d\u0438\u043c\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u0440\u0430\u043d\u0438\u043b \u043b\u0438\u0447\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435, \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c FTP \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043d\u0443\u0436\u0434, \u2014 \u0447\u0442\u043e\u0431\u044b \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435 \u043c\u043e\u0433\u043b\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043c\u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0438\u0445. \u041d\u0435\u0442, \u0442\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c \u044f \u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0438 \u0434\u0430\u0432\u043d\u043e \u0437\u0430\u0440\u0435\u043a\u0441\u044f \u043d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0442\u0440\u0435\u0442\u044c\u0438\u043c \u043b\u0438\u0446\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e, \u043e\u0434\u043d\u0430\u043a\u043e, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0441\u0432\u043e\u0439 \u043b\u0438\u0447\u043d\u044b\u0439 FTP, \u0442\u043e <s>\u043a\u043e\u0442<\/s><s>\u043a\u0442\u043e<\/s>\u0447\u0442\u043e? \u041a\u043e\u043d\u0435\u0447\u043d\u043e OpenSSH, \u043d\u043e \u0431\u0443\u0434\u0435\u0442\u0435 \u043b\u0438 \u0432\u044b \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u043c\u0443 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c\/\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u0438\u043b\u0438 \u0432\u0441\u0435 \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0441\u0432\u043e\u0439 FTP? \u0422\u0430\u043a \u0436\u0435, \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0439 ftp-\u043a\u043b\u0438\u0435\u043d\u0442 \u0435\u0441\u0442\u044c \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb \u0434\u0430\u0436\u0435 \u0432 Windows (\u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u043e \u0447\u0435\u043c \u044f).<\/p>\n<p>  \u0412\u0441\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u0445\u043e\u0441\u0442\u0435 (\u0442\u043e \u0435\u0441\u0442\u044c, \u043d\u0430 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e IP. \u0418 Linux. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 Linux, \u043a\u0443\u0434\u0430 \u0436\u0435 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e\u2026<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>I. \u041f\u043e\u0447\u0435\u043c\u0443 \u0438 \u0437\u0430\u0447\u0435\u043c?<\/h2>\n<p>  \u0417\u0430 \u043f\u0430\u0440\u0443 \u043c\u0438\u043d\u0443\u0442 \u0432 \u043c\u044b\u0441\u043b\u044f\u0445 \u043f\u0440\u043e\u0431\u0435\u0436\u0430\u0432\u0448\u0438\u0441\u044c \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432, \u043a\u0430\u043a \u044f \u0436\u0435\u043b\u0430\u044e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0438 \u043a\u0430\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c\u2026 \u0417\u0430\u0434\u0430\u0447\u0430 \u0432\u0441\u0442\u0430\u043b\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f.<\/p>\n<p>  \u041d\u0435 \u0438\u043c\u0435\u044e \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0442\u0438\u0432 anonymous-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u2014 \u043f\u0443\u0441\u043a\u0430\u0439, \u0431\u0443\u0434\u0443 \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u0430\u0431\u043b\u0438\u043a \u0432\u0441\u044f\u043a\u0443\u044e \u0435\u0440\u0443\u043d\u0434\u0443. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043e\u0449\u0443\u0449\u0430\u0442\u044c \u0434\u0438\u0441\u043a\u043e\u043c\u0444\u043e\u0440\u0442, \u0434\u043b\u044f anonymous \u0431\u0443\u0434\u0443\u0442 \u0436\u0435\u0441\u0442\u043a\u0438\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0432\u0440\u043e\u0434\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 16\u041a\u0411\u0430\u0439\u0442\/\u0441\u0435\u043a\u0443\u043d\u0434\u0443.<br \/>  anonymous \u0441\u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u043b\u0438\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e.<br \/>  \u041d\u0430\u0440\u0443\u0448\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 FHS \u043d\u0435 \u0431\u0443\u0434\u0443, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 anonymous \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e <b>\/srv\/ftp<\/b>, \u0438 \u0432 \u043d\u0435\u0439, \u0443\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u044f \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u044f\u043c, \u0441\u043e\u0437\u0434\u0430\u044e \u0434\u0432\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 \u043e\u0442\u0434\u0430\u0447\u0438 \u0444\u0430\u0439\u043b\u043e\u0432.  <\/p>\n<blockquote><p>mkdir \/srv\/ftp\/{incoming,pub}<br \/>  chown root:ftp \/srv\/ftp\/{incoming,pub}<br \/>  chmod g+w \/srv\/ftp\/incoming<\/p><\/blockquote>\n<p>  \u0423\u0436\u0435 \u0434\u043b\u044f \u0441\u0435\u0431\u044f, \u0445\u043e\u0447\u0443 \u0438\u043c\u0435\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441\u043e \u0441\u0432\u043e\u0438\u043c <code>\u043b\u043e\u0433\u0438\u043d\u043e\u043c:\u043f\u0430\u0440\u043e\u043b\u0435\u043c<\/code>, \u0430 \u0432 \u0438\u0434\u0435\u0430\u043b\u0435 \u2014 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0433\u043e\u0434\u043d\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0438 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0435\u0439 \u0432 \u043c\u043e\u0435\u043c \u0445\u043e\u043c\u044f\u043a\u0435 <b>~\/Downloads<\/b> (\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0442\u0430\u043a \u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u043c\u0438).<br \/>  \u041f\u043e\u043b\u0430\u0433\u0430\u044e \u0432\u044b \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0438\u0441\u044c. \u0447\u0442\u043e \u044d\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u2014 \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u044f \u0445\u043e\u0447\u0443 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0444\u0430\u0439\u043b\u043e\u043e\u0431\u043c\u0435\u043d\u0443.<br \/>  \u0412 \u043d\u0435\u0435 \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c, \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0441 \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e. \u0418 \u043c\u043d\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0438\u0448\u043d\u0438\u0439 \u0440\u0430\u0437 \u043a\u043e\u0441\u0442\u044b\u043b\u0438\u0442\u044c \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u043d\u0438\u0435\u043c \u043d\u043e\u0432\u044b\u0445 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439. \u0412\u0441\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u2014 \u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u0442\u043e\u0440\u0440\u0435\u043d\u0442, \u0444\u0442\u043f, \u2014 \u0432\u0441\u0435 \u043b\u0435\u0436\u0438\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u0423\u0434\u043e\u0431\u043d\u043e.<\/p>\n<p>  \u0414\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0447\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430, \u0447\u0442\u043e\u0431\u044b \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u044b\u043b\u0430 \u0441\u0432\u043e\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f (\u0430 \u0432 \u043d\u0435\u0439 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u0430\u0441\u0448\u0430\u0440\u0435\u043d\u043d\u044b\u0439 \u0441\u0430\u0439\u0442), \u0443 \u043c\u0435\u043d\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0435 \u0441\u0442\u043e\u044f\u043b\u043e, \u043d\u043e \u044f \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u044e \u0438 \u044d\u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439.<\/p>\n<p>  <i>\u0412\u0441\u0435? \u0411\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u043d\u044b\u0445 \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u0439 \u043d\u0435\u0442? \u0422\u043e\u0433\u0434\u0430 \u043d\u0430\u0447\u043d\u0435\u043c.<\/i><\/p>\n<p>  \u041f\u0435\u0440\u0432\u043e-\u043d\u0430\u043f\u0435\u0440\u0432\u043e \u043d\u0430\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0441\u0430\u043c FTP \u0441\u0435\u0440\u0432\u0435\u0440. \u041c\u043e\u0439 \u0432\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 vsftpd, \u2014 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439, \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439, \u0431\u044b\u0441\u0442\u0440\u044b\u0439, \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 (\u044f \u0431\u044b \u0434\u0430\u0436\u0435 \u0441\u043a\u0430\u0437\u0430\u043b \u043f\u0430\u0440\u0430\u043d\u043e\u0438\u0434\u0430\u043b\u044c\u043d\u044b\u0439) \u0441\u0435\u0440\u0432\u0435\u0440, \u0434\u0430 \u0438 \u0441\u0430\u043c \u0432\u044b\u0431\u043e\u0440 \u043e\u0447\u0435\u0432\u0438\u0434\u0435\u043d:  <\/p>\n<blockquote><p>vsftpd is the default FTP server in the Ubuntu, CentOS, Fedora, NimbleX, Slackware and RHEL Linux distributions.<\/p><\/blockquote>\n<p> \u00a9 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Vsftpd\">en.wikipedia.org\/wiki\/Vsftpd<\/a><\/p>\n<h2>II. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h2>\n<p>  \u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043b\u0438\u0448\u043d\u0438\u0439 \u0440\u0430\u0437 \u043d\u0435 \u0441\u0442\u0430\u043d\u0443, \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0435 \u0441\u0432\u043e\u0439 \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440, \u0438 \u043f\u0440\u043e \u0442\u0440\u0438 \u0437\u0430\u0432\u0435\u0442\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b .\/configure &#038;&#038; make &#038;&#038; su -c &quot;make install&quot; \u0432\u044b \u0438 \u0442\u0430\u043a \u043d\u0430\u0441\u043b\u044b\u0448\u0430\u043d\u044b\u2026 vsftpd \u0443 \u0432\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d.<\/p>\n<p>  \u0414\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0436\u043c\u044f\u043a\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0438 \u0438 \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0433\u0430\u043b\u043e\u0447\u043a\u0438 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043d\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438\/\u0444\u0430\u0439\u043b\u044b.<br \/>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 vsftpd \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0430 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0444\u0430\u0439\u043b\u044b \u2014 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 chmod. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u0432\u0430\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438. \u0412 vsftpd \u0432\u044b \u043b\u0438\u0448\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0447\u0442\u043e \u0444\u0430\u0439\u043b\u044b \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u0430 \u0432 \u043a\u0430\u043a\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u2014 \u044d\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 chmod\/chown. \u0422\u0430\u043a, \u0434\u043b\u044f \u044f\u0441\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h2>III. \u0411\u0430\u0437\u043e\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h2>\n<p>  \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root, \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <b>vsftpd<\/b>. \u0416\u043c\u044f\u043a\u0430\u0435\u043c <b>Ctrl + C<\/b> \u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c.<br \/>  \u041a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c <b>ftp<\/b> (\u0432 \u043b\u044e\u0431\u043e\u0439(?) \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435) \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c, \u043a\u0430\u043a \u043c\u044b \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438.<br \/>  \u0424\u0430\u0439\u043b \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 <b>\/etc\/vsftpd.conf<\/b>, \u043d\u043e \u043e\u043d \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043b\u044e\u0431\u0438\u043c\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u043c, \u0437\u0430\u0442\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435 \u0438 \u043f\u0438\u0448\u0435\u043c \u0441\u0432\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433. \u0418 \u0442\u0430\u043a\u2026<\/p>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0435\u043c\u043e\u043d\u0430, \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 inetd, \u0438 \u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u043e\u0432 (\u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \/var\/log\/vsftpd.log)  <\/p>\n<pre><code>listen=YES xferlog_enable=YES<\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c 20 \u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u043e\u0431\u043c\u0435\u043d\u0430 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 PORT, \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439.  <\/p>\n<pre><code>connect_from_port_20=YES max_clients=50 max_per_ip=3<\/code><\/pre>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043a FTP, \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u044b <b>.message<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u0445 \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u0438\u0445 \u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u0438 \u0437\u0430\u0445\u043e\u0434\u0435 \u0432 \u0434\u0430\u043d\u043d\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e. \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0435 \u0440\u044e\u0448\u0435\u0447\u043a\u0438.  <\/p>\n<pre><code>ftpd_banner=Welcome to Voglea FTPd dirmessage_enable=YES<\/code><\/pre>\n<p>  \u041f\u0440\u044f\u0447\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0442\u0430\u043a, \u0447\u0442\u043e \u043f\u0440\u0438 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u0438\u043c\u044f\/\u0433\u0440\u0443\u043f\u043f\u0430 \u0432\u0441\u0435\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c\u0441\u044f <b>ftp<\/b>, \u0430 \u043d\u0435 \u0438\u043c\u0435\u0442\u044c id \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u2014 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0435\u0433\u043e \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c, \u0436\u0435.  <\/p>\n<pre><code>hide_ids=YES write_enable=YES<\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u2014 \u0442\u0435\u043f\u0435\u0440\u044c \u043b\u043e\u0433\u0438\u043d\u0438\u0442\u044c\u0441\u044f \u043d\u0430 FTP \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434 \u0441\u0432\u043e\u0438\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0438 \u0432\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442\u0435 \u0432 \u0441\u0432\u043e\u0439 \u0445\u043e\u043c\u044f\u043a (\/home\/%USERNAME%). \u041c\u0435\u043d\u044f \u044d\u0442\u043e \u043d\u0435 \u0443\u0441\u0442\u0440\u043e\u0438\u043b\u043e, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u043c\u044b \u0435\u0449\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c. \u0418 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u043d\u043e\u0432\u044b\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, <b>-rw-r&#8212;r&#8212;<\/b> \u0442.\u0435. \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 \u0444\u0430\u0439\u043b\u0430 \u043c\u043e\u0436\u0435\u0442 \u0435\u0433\u043e \u0447\u0438\u0442\u0430\u0442\u044c\/\u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c, \u0433\u0440\u0443\u043f\u043f\u0430 \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0438\u0442\u0430\u0442\u044c. \u041f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0430 <b>-rwxrwxrwx<\/b>, \u043d\u043e \u0437\u0430\u0447\u0435\u043c \u043e\u043d\u043e \u043d\u0430\u043c?  <\/p>\n<pre><code>local_enable=YES local_umask=022<\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c <i>\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445<\/i> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u042d\u0442\u043e \u043d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0435\u0435, \u0447\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c \u0432 \u0445\u043e\u043c\u044f\u043a. \u0422\u0430\u043a \u0436\u0435, \u044d\u0442\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c, \u043e \u0447\u0435\u043c \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u0435\u0449\u0435 \u043d\u0438\u0436\u0435. \u0418 \u0443\u043a\u0430\u0436\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u0435\u0441\u0441\u0438\u044f \u2014 <b>ftp<\/b> \u2014 \u043e\u043d \u0443 \u043d\u0430\u0441 \u0441\u043e\u0432\u0441\u0435\u043c \u0431\u0435\u0437 \u043f\u0440\u0430\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e. \u041f\u043e\u0434 \u044d\u0442\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f (\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440) \u043d\u043e\u0432\u044b\u0435 \u0444\u0430\u0439\u043b\u044b. \u041c\u043e\u0436\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c <b>nobody<\/b> \u0438\u043b\u0438 \u0435\u0449\u0435 \u043a\u043e\u0433\u043e.  <\/p>\n<pre><code>guest_enable=YES guest_username=ftp<\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0438\u0440\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0435\u0433\u043e \u0445\u043e\u043c\u044f\u043a\u0435. \u0411\u0435\u0437 \u044d\u0442\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0432\u044b \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0437\u0430\u0439\u0442\u0438 \u0432 \u043b\u044e\u0431\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0444\u0430\u0439\u043b (\u043d\u0443, \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u0440\u0430\u0432).  <\/p>\n<pre><code>chroot_local_user=YES<\/code><\/pre>\n<p>  \u0412\u0441\u0435, \u043d\u0430\u0448\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h2>IV. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438<\/h2>\n<p>  \u0418 \u0442\u0435\u043f\u0435\u0440\u044c-\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043d\u0430\u0448\u0438\u0445 <i>\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445<\/i> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<br \/>  \u0423\u043a\u0430\u0436\u0435\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.  <\/p>\n<pre><code>user_config_dir=\/etc\/vsftpd_user_conf<\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b <b>~\/logins.txt<\/b> \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u044b\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c  <\/p>\n<blockquote><p>username<br \/>  password<br \/>  spoofing<br \/>  blahblahblah<br \/>  root<br \/>  toor<\/p><\/blockquote>\n<p>\u0433\u0434\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u043b\u043e\u0433\u0438\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0437\u0430\u0442\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<p>  \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u0444\u0430\u0439\u043b\u0430 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 Berkeley  <\/p>\n<blockquote><p>db_load -T -t hash -f ~\/logins.txt \/etc\/vsftpd_login.db<br \/>  chmod 600 \/etc\/vsftpd_login.db<\/p><\/blockquote>\n<p>\u043e\u0434\u043d\u0430\u043a\u043e \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u0443 \u0432\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c db3_load, db4_load.<\/p>\n<p>  \u0423\u043a\u0430\u0436\u0435\u043c PAM, \u043a\u0430\u043a\u043e\u0439 \u0444\u0430\u0439\u043b \u0441 \u0431\u0430\u0437\u043e\u0439 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u2014 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b <b>\/etc\/pam.d\/ftp<\/b> \u0438 \u0437\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043d\u0435\u0433\u043e  <\/p>\n<blockquote><p>auth required \/lib\/security\/pam_userdb.so db=\/etc\/vsftpd_login<br \/>  account required \/lib\/security\/pam_userdb.so db=\/etc\/vsftpd_login<\/p><\/blockquote>\n<p>  \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a\u0438\u0445 \u0432\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0443\u043a\u0430\u0436\u0435\u0442\u0435 \u0432 ~\/logins.txt (\u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c), \u2014 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u043e\u0433\u0438\u043d\u0438\u0442\u044c\u0441\u044f \u043d\u0430 ftp \u043f\u043e\u0434 \u044d\u0442\u0438\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438.<br \/>  \u0418 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u2014 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e <b>mkdir \/etc\/vsftpd_user_conf<\/b>, \u0433\u0434\u0435 \u044d\u0442\u0438 \u0441\u0430\u043c\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f.<\/p>\n<h2>V. \u041d\u0430\u0448 ~\/Downloads<\/h2>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b <b>\/etc\/vsftpd_user_conf\/spoofing<\/b> (\u0441 \u043b\u043e\u0433\u0438\u043d\u043e\u043c \u043d\u0430\u0448\u0435\u0433\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435) \u0438 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u044b (\u0438\u043b\u0438 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0432\u043e\u0432\u0441\u0435) \u0432 \/etc\/vsftpd.conf.<br \/>  \u0421\u0443\u0442\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>  \u0411\u0437\u0438\u043a vsftpd, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0436\u0435\u043b\u0430\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0434\u0430\u0432\u0430\u043b \u043e\u0448\u0438\u0431\u043a\u0443 <i>500 OOPS: vsftpd: refusing to run with writable root inside chroot ()<\/i>. \u0422\u043e \u0435\u0441\u0442\u044c \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u0438 \u043b\u043e\u0433\u0438\u043d\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442\u0435 \u0432 <b>\/home\/spoofing\/Downloads<\/b>. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0435\u0439 \u043f\u0440\u0430\u0432\u0430 <b>chmod ga+w \/home\/spoofing\/Downloads<\/b> \u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442 \u044d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u0421 \u0447\u0435\u043c \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0442\u0430\u043a\u0430\u044f \u043f\u0430\u0440\u0430\u043d\u043e\u0439\u044f, \u0447\u0442\u043e \u0432 \u00ab\u043a\u043e\u0440\u0435\u043d\u044c \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0438\u0441\u0430\u0442\u044c\u00bb \u2014 \u043d\u0435 \u0437\u043d\u0430\u044e, \u043d\u043e \u0434\u0430 \u043b\u0430\u0434\u043d\u043e. \u0412\u0441\u0435 \u0436\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044c \u0438 \u0438\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 \u043e\u0448\u0438\u0431\u043a\u0438.  <\/p>\n<pre><code>allow_writeable_chroot=YES<\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u043e\u0432\u044b\u0435 (\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u044b\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440) \u0444\u0430\u0439\u043b\u044b. \u0420\u0430\u043d\u0435\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u0443 \u043d\u0430\u0441 \u0431\u044b\u043b \u0443\u043a\u0430\u0437\u0430\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c <b>ftp<\/b>, \u043d\u043e \u043d\u0430\u043c \u0436\u0435 \u0432 \u043d\u0430\u0448\u0435\u043c ~\/Downloads \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u00ab\u0447\u0443\u0436\u0438\u0435\u00bb \u0444\u0430\u0439\u043b\u044b? \u0422\u0430\u043a \u0436\u0435, \u0441\u0435\u0441\u0441\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u043d\u0430\u0448\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0432\u0441\u0435 \u043d\u0438\u043a\u0430\u043a\u0438\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u0432 \u043d\u0430\u0448 <b>\/home\/spoofing<\/b>, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0439\u0442\u0438 \u0432 ~\/Downloads.  <\/p>\n<pre><code>guest_username=spoofing<\/code><\/pre>\n<p>  \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u0430\u043c ~\/Downloads, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0435\u0439 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0418 \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u043b\u0438\u043c\u0438\u0442 \u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438.  <\/p>\n<pre><code>local_root=\/home\/spoofing\/Downloads local_max_rate=0<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438 \u043b\u043e\u0433\u0438\u043d\u0435 \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c <b>spoofing<\/b> \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442\u0435 \u0432 \u0441\u0432\u043e\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e <b>\/home\/spoofing\/Downloads<\/b>, \u043c\u043e\u0436\u0435\u0442\u0435 \u0432 \u043d\u0435\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c.<br \/>  \u0421\u0435\u0441\u0441\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0434 \u0432\u0430\u0448\u0438\u043c \u0443\u0436\u0435 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c <b>spoofing<\/b>, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u0432 \u0441\u0432\u043e\u0439<b>~<\/b>, \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u0434 \u0432\u0430\u0448\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c. \u0422\u0430\u043a-\u0442\u043e.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u043e\u043d\u0438 \u043c\u043e\u0433\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043e\u0434\u043d\u0438\u043c \u043e\u0431\u0449\u0438\u043c ~\/Downloads.<br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u0432 <b>~\/logins.txt<\/b>, \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u0430\u0437\u0443 Berkeley, \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \/etc\/vsftpd_user_conf\/spoofing \u0432 <b>\/etc\/vsftpd_user_conf\/{\u0434\u0440\u0443\u0433\u0438\u0435, \u043b\u043e\u0433\u0438\u043d\u044b, \u043d\u043e\u0432\u044b\u0445, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439}<\/b>. \u0412\u0441\u0435.<\/p>\n<h2>VI. anonymous<\/h2>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u043c\u044b \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <b>\/srv\/ftp\/{incoming,pub}<\/b> \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 <b>\/srv\/ftp\/incoming<\/b>.<\/p>\n<p>  \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u043c anonymous \u043b\u043e\u0433\u0438\u043d\u0438\u0442\u044c\u0441\u044f.  <\/p>\n<pre><code>anonymous_enable=YES<\/code><\/pre>\n<p>  \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u043d\u043e \u0430 \u0432\u043e\u0442 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u2014 \u043d\u0435\u043b\u044c\u0437\u044f.  <\/p>\n<pre><code>anon_upload_enable=YES anon_mkdir_write_enable=YES anon_other_write_enable=NO<\/code><\/pre>\n<p>  \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043c \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u0443\u044e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0432 <b>16384 \u0431\u0430\u0439\u0442<\/b>, \u0438 \u0443\u043a\u0430\u0436\u0435\u043c, \u0441 \u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0444\u0430\u0439\u043b\u044b.  <\/p>\n<pre><code>anon_max_rate=16384 anon_umask=022<\/code><\/pre>\n<p>  \u0412\u0441\u0435, \u0442\u0435\u043f\u0435\u0440\u044c anonymous \u043f\u043e\u043f\u0430\u0434\u0430\u044f \u0432 \u0441\u0432\u043e\u044e \u0434\u043e\u043c\u0430\u0448\u043d\u044e\u044e <b>\/srv\/ftp<\/b> \u0443\u0432\u0438\u0434\u0438\u0442 <b>incoming<\/b> \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 <b>pub<\/b>\u2026<br \/>  \u0421\u0435\u0441\u0441\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c <b>ftp<\/b>, \u2014 \u0442\u043e\u0442, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0432 \/etc\/vsftpd.conf, \u043f\u043e\u0434 \u043d\u0438\u043c \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u043e\u0432\u044b\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b.<\/p>\n<h2>VII. \u0425\u043e\u0441\u0442\u0438\u043d\u0433<\/h2>\n<p>  \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0432\u0430\u0448\u0438 \u0441\u0430\u0439\u0442\u044b \u043b\u0435\u0436\u0430\u0442 \u0432 \/srv\/http\/example.com, \/srv\/http\/example.net, \/srv\/http\/example.org \u0438 \u0447\u0435\u0440\u0435\u0437 FTP \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u043c\u0435\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 example.com, example.net, example.org, \u0430 \u0432 \/etc\/vsftpd.conf \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0441 \u0441\u0430\u0439\u0442\u0430\u043c\u0438  <\/p>\n<pre><code>local_root=\/srv\/http\/$USER  user_sub_token=$USER<\/code><\/pre>\n<p>  \u041b\u043e\u0433\u0438\u043d\u044f\u0441\u044c \u043f\u043e\u0434 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u2014 \u0432\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442\u0435 \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0441\u0430\u0439\u0442\u043e\u0432. \u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e.<\/p>\n<p>  \u0414\u0440\u0443\u0433\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0435\u0441\u043b\u0438 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432 \/etc\/vsftpd_user_conf, \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0441\u0430\u0439\u0442\u0430.<\/p>\n<h2>VIII. \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c<\/h2>\n<p>  \u042d\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u043e, \u0447\u0442\u043e \u0444\u0430\u0439\u043b\u044b \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043d\u0435 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435 \u043d\u0430 \u043a\u0430\u043a\u043e\u043c-\u0442\u043e \u0444\u0430\u0439\u043b\u043e\u043e\u0431\u043c\u0435\u043d\u043d\u0438\u043a\u0435, \u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044f\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u044f\u043c\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e FTP. \u041e\u0434\u043d\u0430\u043a\u043e, \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u043c \u0442\u0440\u0430\u0444\u0438\u043a \u0435\u0449\u0435 \u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0443\u0437\u043d\u0430\u043b \u043a\u0430\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0444\u0430\u0439\u043b\u044b \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0435.<\/p>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c SSL\/TLS, \u0438 \u043f\u0440\u0435\u0436\u0434\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u043c \u0435\u0433\u043e \u0432 \/etc\/vsftpd.conf.  <\/p>\n<pre><code>ssl_enable=YES<\/code><\/pre>\n<p>  \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435, \u043a\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0432\u0430\u043c \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f.  <\/p>\n<pre><code>ssl_tlsv1=YES ssl_sslv2=NO ssl_sslv3=NO<\/code><\/pre>\n<p>  \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442.  <\/p>\n<blockquote><p>openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout \/etc\/ssl\/certs\/vsftpd.pem -out \/etc\/ssl\/certs\/vsftpd.pem<\/p><\/blockquote>\n<p>  \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u0434\u043e \u043d\u0435\u0433\u043e.  <\/p>\n<pre><code>rsa_cert_file=\/etc\/ssl\/certs\/vsftpd.pem<\/code><\/pre>\n<p>  \u0418, \u044f \u0441\u0447\u0438\u0442\u0430\u044e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0432\u0441\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043a \u0432\u0430\u0448\u0435\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u043e \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044e. \u0412\u0434\u0440\u0443\u0433, \u0434\u0435\u0432\u0443\u0448\u043a\u0430 \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u043f\u0435\u0440\u0435\u043a\u0438\u043d\u0443\u0442\u044c \u0441\u0432\u043e\u0438 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0436\u0430\u043d\u0440\u0430 \u041d\u044e?<br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 SSL\/TLS \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0430 \u0432\u043e\u0442 anonymous \u043e\u043d\u043e \u043f\u043e\u0436\u0430\u043b\u0443\u0439 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432\u0430\u0442\u044c \u043b\u0438\u0448\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f.  <\/p>\n<pre><code>force_local_logins_ssl=YES force_local_data_ssl=YES  allow_anon_ssl=NO<\/code><\/pre>\n<p>  <\/p>\n<h2>IX. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c<\/h2>\n<p>  anonymous&#8217;\u044b, \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0440\u0430\u0437\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u0432\u0430\u0448\u0438\u043c ~\/Downloads, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 SSL\/TLS.<br \/>  \u0428\u0438\u043a\u0430\u0440\u043d\u043e, \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e, \u0443\u0434\u043e\u0431\u043d\u043e, \u0438, \u2014 \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0444\u0430\u0439\u043b curl&#39;\u043e\u043c \u043d\u0430 ftp:\/\/localhost\/incoming<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>\u250c\u2500[myhost ~]<br \/>  \u2514\u2500\u257c <b>curl -v -T ~\/Desktop\/userpic.jpg <code>ftp:\/\/localhost\/incoming\/<\/code><\/b><br \/>  * About to connect() to localhost port 21 (#0)<br \/>  * Trying ::1\u2026<br \/>   % Total % Received % Xferd Average Speed Time Time Time Current<br \/>   Dload Upload Total Spent Left Speed<br \/>   0 0 0 0 0 0 0 0 &#8212;:&#8212;:&#8212; &#8212;:&#8212;:&#8212; &#8212;:&#8212;:&#8212; 0* Connection refused<br \/>  * Trying 127.0.0.1\u2026<br \/>  * connected<br \/>  * Connected to localhost (127.0.0.1) port 21 (#0)<br \/>  &lt; 220 Welcome to Voglea FTPd<br \/>  &gt; USER anonymous<br \/>  &lt; 331 Please specify the password.<br \/>  &gt; PASS ftp@example.com<br \/>  &lt; 230 Login successful.<br \/>  &gt; PWD<br \/>  &lt; 257 &quot;\/&quot;<br \/>  * Entry path is &#8216;\/&#8217;<br \/>  &gt; CWD incoming<br \/>  &lt; 250 Directory successfully changed.<br \/>  &gt; EPSV<br \/>  * Connect data stream passively<br \/>  &lt; 229 Entering Extended Passive Mode (|||8210|).<br \/>  * Trying 127.0.0.1\u2026<br \/>  * connected<br \/>  * Connecting to 127.0.0.1 (127.0.0.1) port 8210<br \/>  &gt; TYPE I<br \/>  &lt; 200 Switching to Binary mode.<br \/>  &gt; STOR userpic.jpg<br \/>  &lt; 150 Ok to send data.<br \/>  } [data not shown]<br \/>  * We are completely uploaded and fine<br \/>  * Remembering we are in dir \u00abincoming\/\u00bb<br \/>  100 77050 0 0 100 77050 0 25418 0:00:03 0:00:03 &#8212;:&#8212;:&#8212; 25437&lt; <b>226 Transfer complete.<\/b><br \/>  100 77050 0 0 100 77050 0 20654 0:00:03 0:00:03 &#8212;:&#8212;:&#8212; 20656<br \/>  * Connection #0 to host localhost left intact<br \/>  &gt; QUIT<br \/>  &lt; 221 Goodbye.<br \/>  * Closing connection #0<\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u0432 \/srv\/ftp\/incoming<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>\u250c\u2500[myhost ~]<br \/>  \u2514\u2500\u257c <b>ls -la \/srv\/ftp\/incoming\/<\/b><br \/>  total 88K<br \/>  drwxrwxr-x 2 root ftp 4.0K Jan 17 20:31 .\/<br \/>  dr-xr-xr-x 4 root ftp 4.0K Jan 17 15:26 ..\/<br \/>  -rw-r&#8212;r&#8212; 1 <b>ftp ftp<\/b> 76K Jan 17 20:31 userpic.jpg<\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>\u250c\u2500[myhost ~]<br \/>  \u2514\u2500\u257c <b>ftp localhost<\/b><br \/>  ftp: connect to address ::1: Connection refused<br \/>  ftp: Trying 127.0.0.1\u2026<br \/>  Connected to localhost.localdomain.<br \/>  220 Welcome to Voglea FTPd<br \/>  Name (localhost.localdomain:spoofing): <b>anonymous<\/b><br \/>  331 Please specify the password.<br \/>  Password:<br \/>  230 Login successful.<br \/>  Remote system type is UNIX.<br \/>  Using binary mode to transfer files.<br \/>  ftp&gt; <b>ls -la<\/b><br \/>  200 PORT command successful. Consider using PASV.<br \/>  150 Here comes the directory listing.<br \/>  dr-xr-xr-x 4 ftp ftp 4096 Jan 17 07:26.<br \/>  dr-xr-xr-x 4 ftp ftp 4096 Jan 17 07:26\u2026<br \/>  drwxrwxr-x 2 ftp ftp 4096 Jan 17 12:31 incoming<br \/>  drwxr-xr-x 2 ftp ftp 4096 Jan 16 15:08 pub<br \/>  226 Directory send OK.<br \/>  ftp&gt; <b>cd incoming<\/b><br \/>  250 Directory successfully changed.<br \/>  ftp&gt; <b>ls -la<\/b><br \/>  200 PORT command successful. Consider using PASV.<br \/>  150 Here comes the directory listing.<br \/>  drwxrwxr-x 2 ftp ftp 4096 Jan 17 12:31.<br \/>  dr-xr-xr-x 4 ftp ftp 4096 Jan 17 07:26\u2026<br \/>  -rw-r&#8212;r&#8212; 1 ftp ftp 77050 Jan 17 12:31 userpic.jpg<br \/>  226 Directory send OK.<br \/>  ftp&gt; <b>quit<\/b><br \/>  221 Goodbye.  <\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  anonymous&#8217;\u044b \u2014 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0423\u0442\u0438\u043b\u0438\u0442\u0430 ftp \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 SSL\/TLS<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>\u250c\u2500[myhost ~]<br \/>  \u2514\u2500\u257c <b>ftp localhost<\/b><br \/>  ftp: connect to address ::1: Connection refused<br \/>  ftp: Trying 127.0.0.1\u2026<br \/>  Connected to localhost.localdomain.<br \/>  220 Welcome to Voglea FTPd<br \/>  Name (localhost.localdomain:spoofing): <b>spoofing<\/b><br \/>  530 Non-anonymous sessions must use encryption.<br \/>  ftp: Login failed.<br \/>  421 Service not available, remote server has closed connection<br \/>  ftp&gt; quit<\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u043e\u0431\u0443\u0435\u043c \u0447\u0435\u0440\u0435\u0437 curl &#8212;ftp-ssl \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>\u250c\u2500[myhost ~]<br \/>  \u2514\u2500\u257c <b>curl -v -T Desktop\/userpic.jpg -k &#8212;ftp-ssl <code>ftp:\/\/spoofing:blahblahblah@localhost<\/code><\/b><br \/>  * About to connect() to localhost port 21 (#0)<br \/>  * Trying ::1\u2026<br \/>   % Total % Received % Xferd Average Speed Time Time Time Current<br \/>   Dload Upload Total Spent Left Speed<br \/>   0 0 0 0 0 0 0 0 &#8212;:&#8212;:&#8212; &#8212;:&#8212;:&#8212; &#8212;:&#8212;:&#8212; 0* Connection refused<br \/>  * Trying 127.0.0.1\u2026<br \/>  * connected<br \/>  * Connected to localhost (127.0.0.1) port 21 (#0)<br \/>  &lt; 220 Welcome to Voglea FTPd<br \/>  &gt; AUTH SSL<br \/>  &lt; 234 Proceed with negotiation.<br \/>  * successfully set certificate verify locations:<br \/>  * CAfile: \/etc\/ssl\/certs\/ca-certificates.crt<br \/>   CApath: none<br \/>  * SSLv3, TLS handshake, Client hello (1):<br \/>  } [data not shown]<br \/>  * SSLv3, TLS handshake, Server hello (2):<br \/>  { [data not shown]<br \/>  * SSLv3, TLS handshake, CERT (11):<br \/>  { [data not shown]<br \/>  * SSLv3, TLS handshake, Request CERT (13):<br \/>  { [data not shown]<br \/>  * SSLv3, TLS handshake, Server finished (14):<br \/>  { [data not shown]<br \/>  * SSLv3, TLS handshake, CERT (11):<br \/>  } [data not shown]<br \/>  * SSLv3, TLS handshake, Client key exchange (16):<br \/>  } [data not shown]<br \/>  * SSLv3, TLS change cipher, Client hello (1):<br \/>  } [data not shown]<br \/>  * SSLv3, TLS handshake, Finished (20):<br \/>  } [data not shown]<br \/>  * SSLv3, TLS change cipher, Client hello (1):<br \/>  { [data not shown]<br \/>  * SSLv3, TLS handshake, Finished (20):<br \/>  { [data not shown]<br \/>  * SSL connection using DES-CBC3-SHA<br \/>  * Server certificate:<br \/>  * subject: C=RU; ST=Russian Federation; L=Sosnovoborsk, Krasnoyarsk Krai; O=Voglea.NET; OU=Hackers Online; CN=voglea.com; emailAddress=postmaster@voglea.com<br \/>  * start date: 2013-01-17 08:07:16 GMT<br \/>  * expire date: 2014-01-17 08:07:16 GMT<br \/>  * issuer: C=RU; ST=Russian Federation; L=Sosnovoborsk, Krasnoyarsk Krai; O=Voglea.NET; OU=Hackers Online; CN=voglea.com; emailAddress=postmaster@voglea.com<br \/>  * SSL certificate verify result: self signed certificate (18), continuing anyway.<br \/>  &gt; USER spoofing<br \/>  &lt; 331 Please specify the password.<br \/>  &gt; PASS nopassword<br \/>  &lt; 230 Login successful.<br \/>  &gt; PBSZ 0<br \/>  &lt; 200 PBSZ set to 0.<br \/>  &gt; PROT P<br \/>  &lt; 200 PROT now Private.<br \/>  &gt; PWD<br \/>  &lt; 257 &quot;\/&quot;<br \/>  * Entry path is &#8216;\/&#8217;<br \/>  &gt; EPSV<br \/>  * Connect data stream passively<br \/>  &lt; 229 Entering Extended Passive Mode (|||55772|).<br \/>  * Trying 127.0.0.1\u2026<br \/>  * connected<br \/>  * Connecting to 127.0.0.1 (127.0.0.1) port 55772<br \/>  &gt; TYPE I<br \/>  &lt; 200 Switching to Binary mode.<br \/>  &gt; STOR userpic.jpg<br \/>  &lt; 150 Ok to send data.<br \/>  * Doing the SSL\/TLS handshake on the data stream<br \/>  * successfully set certificate verify locations:<br \/>  * CAfile: \/etc\/ssl\/certs\/ca-certificates.crt<br \/>   CApath: none<br \/>  * SSL re-using session ID<br \/>  * SSLv3, TLS handshake, Client hello (1):<br \/>  } [data not shown]<br \/>  * SSLv3, TLS handshake, Server hello (2):<br \/>  { [data not shown]<br \/>  * SSLv3, TLS change cipher, Client hello (1):<br \/>  { [data not shown]<br \/>  * SSLv3, TLS handshake, Finished (20):<br \/>  { [data not shown]<br \/>  * SSLv3, TLS change cipher, Client hello (1):<br \/>  } [data not shown]<br \/>  * SSLv3, TLS handshake, Finished (20):<br \/>  } [data not shown]<br \/>  * SSL connection using DES-CBC3-SHA<br \/>  * Server certificate:<br \/>  * subject: C=RU; ST=Russian Federation; L=Sosnovoborsk, Krasnoyarsk Krai; O=Voglea.NET; OU=Hackers Online; CN=voglea.com; emailAddress=postmaster@voglea.com<br \/>  * start date: 2013-01-17 08:07:16 GMT<br \/>  * expire date: 2014-01-17 08:07:16 GMT<br \/>  * issuer: C=RU; ST=Russian Federation; L=Sosnovoborsk, Krasnoyarsk Krai; O=Voglea.NET; OU=Hackers Online; CN=voglea.com; emailAddress=postmaster@voglea.com<br \/>  * SSL certificate verify result: self signed certificate (18), continuing anyway.<br \/>  } [data not shown]<br \/>  * We are completely uploaded and fine<br \/>  * Remembering we are in dir &quot;&quot;<br \/>  * SSLv3, TLS alert, Client hello (1):<br \/>  } [data not shown]<br \/>  100 77050 0 0 100 77050 0 24781 0:00:03 0:00:03 &#8212;:&#8212;:&#8212; 24798&lt; <b>226 Transfer complete.<\/b><br \/>  100 77050 0 0 100 77050 0 20302 0:00:03 0:00:03 &#8212;:&#8212;:&#8212; 20308<br \/>  * Connection #0 to host localhost left intact<br \/>  &gt; QUIT<br \/>  &lt; 221 Goodbye.<br \/>  * Closing connection #0<br \/>  * SSLv3, TLS alert, Client hello (1):<br \/>  } [data not shown]<\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u0432 \/home\/spoofing\/Downloads<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>\u250c\u2500[myhost ~]<br \/>  \u2514\u2500\u257c cd ~\/Downloads\/<br \/>  \u250c\u2500[myhost ~\/Downloads]<br \/>  \u2514\u2500\u257c pwd<br \/>  \/home\/spoofing\/Downloads<br \/>  \u250c\u2500[myhost ~\/Downloads]<br \/>  \u2514\u2500\u257c ls -la<br \/>  total 84K<br \/>  drwxr-xr-x 2 spoofing users 4.0K Jan 17 20:51 .\/<br \/>  drwx&#8212;&#8212; 17 spoofing users 4.0K Jan 17 19:20 ..\/<br \/>  -rw-r&#8212;r&#8212; 1 <b>spoofing users<\/b> 76K Jan 17 20:51 userpic.jpg<\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<br \/>  \u0424\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u2014 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u043f\u0440\u044f\u043c\u043e \u0432 \u043c\u043e\u0439 ~\/Downloads, \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0435\u043c \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0441\u044c \u044f, \u0430 \u043d\u0435 ftp, \u0438 \u0441\u0440\u0430\u0437\u0443 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438.<\/p>\n<h2>X. T3h end<\/h2>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u043e\u043c\u0443 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u0438 \u0441\u0440\u0430\u0437\u0443, \u0430 \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u00ab\u043f\u043e \u043a\u0440\u043e\u0448\u043a\u0430\u043c\u00bb. \u0412\u0441\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0432 \u00ab\u0434\u0435\u0441\u044f\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u0435\u043a\u00bb.<\/p>\n<p>  <code># mkdir \/srv\/ftp\/{incoming,pub}<\/code><\/p>\n<p>  <code># chown root:ftp \/srv\/ftp\/{incoming,pub}<\/code><\/p>\n<p>  <code># chmod g+w \/srv\/ftp\/incoming<\/code><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u0430\u0439\u043b ~\/logins.txt<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>spoofing<br \/>  blahblahblah<\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  <code># db_load -T -t hash -f ~\/logins.txt \/etc\/vsftpd_login.db<\/code><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u0430\u0439\u043b \/etc\/pam.d\/ftp<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>auth required \/lib\/security\/pam_userdb.so db=\/etc\/vsftpd_login<br \/>  account required \/lib\/security\/pam_userdb.so db=\/etc\/vsftpd_login<\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u0430\u0439\u043b \/etc\/vsftpd_user_conf\/spoofing<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>allow_writeable_chroot=YES<\/p>\n<p>  guest_username=spoofing<\/p>\n<p>  local_root=\/home\/spoofing\/Downloads<br \/>  local_max_rate=0<\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u0430\u0439\u043b \/etc\/vsftpd.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>listen=YES<br \/>  xferlog_enable=YES<\/p>\n<p>  connect_from_port_20=YES<br \/>  max_clients=50<br \/>  max_per_ip=3<\/p>\n<p>  ftpd_banner=Welcome to Voglea FTPd<br \/>  dirmessage_enable=YES<\/p>\n<p>  hide_ids=YES<br \/>  write_enable=YES<\/p>\n<p>  local_enable=YES<br \/>  local_umask=022<\/p>\n<p>  guest_enable=YES<br \/>  guest_username=ftp<\/p>\n<p>  chroot_local_user=YES<\/p>\n<p>  user_config_dir=\/etc\/vsftpd_user_conf<\/p>\n<p>  anonymous_enable=YES<br \/>  anon_upload_enable=YES<br \/>  anon_mkdir_write_enable=YES<br \/>  anon_other_write_enable=NO<br \/>  anon_world_readable_only=NO<br \/>  anon_max_rate=16384<br \/>  anon_umask=022<\/p>\n<p>  ssl_enable=YES<br \/>  ssl_tlsv1=YES<br \/>  ssl_sslv2=NO<br \/>  ssl_sslv3=NO<br \/>  rsa_cert_file=\/etc\/ssl\/certs\/vsftpd.pem<\/p>\n<p>  force_local_logins_ssl=YES<br \/>  force_local_data_ssl=YES<\/p>\n<p>  allow_anon_ssl=NO<\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  <code># openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout \/etc\/ssl\/certs\/vsftpd.pem -out \/etc\/ssl\/certs\/vsftpd.pem<\/code><\/p>\n<p>  <code># vsftpd &<\/code>    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/166147\/\"> http:\/\/habrahabr.ru\/post\/166147\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043d\u0435\u0434\u0430\u0432\u043d\u0438\u043c\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u0440\u0430\u043d\u0438\u043b \u043b\u0438\u0447\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435, \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c FTP \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043d\u0443\u0436\u0434, \u2014 \u0447\u0442\u043e\u0431\u044b \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435 \u043c\u043e\u0433\u043b\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043c\u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0438\u0445. \u041d\u0435\u0442, \u0442\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c \u044f \u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0438 \u0434\u0430\u0432\u043d\u043e \u0437\u0430\u0440\u0435\u043a\u0441\u044f \u043d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0442\u0440\u0435\u0442\u044c\u0438\u043c \u043b\u0438\u0446\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e, \u043e\u0434\u043d\u0430\u043a\u043e, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0441\u0432\u043e\u0439 \u043b\u0438\u0447\u043d\u044b\u0439 FTP, \u0442\u043e <s>\u043a\u043e\u0442<\/s><s>\u043a\u0442\u043e<\/s>\u0447\u0442\u043e? \u041a\u043e\u043d\u0435\u0447\u043d\u043e OpenSSH, \u043d\u043e \u0431\u0443\u0434\u0435\u0442\u0435 \u043b\u0438 \u0432\u044b \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u043c\u0443 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c\/\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u0438\u043b\u0438 \u0432\u0441\u0435 \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0441\u0432\u043e\u0439 FTP? \u0422\u0430\u043a \u0436\u0435, \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0439 ftp-\u043a\u043b\u0438\u0435\u043d\u0442 \u0435\u0441\u0442\u044c \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb \u0434\u0430\u0436\u0435 \u0432 Windows (\u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u043e \u0447\u0435\u043c \u044f).<\/p>\n<p>  \u0412\u0441\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u0445\u043e\u0441\u0442\u0435 (\u0442\u043e \u0435\u0441\u0442\u044c, \u043d\u0430 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e IP. \u0418 Linux. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 Linux, \u043a\u0443\u0434\u0430 \u0436\u0435 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e\u2026  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-166147","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/166147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=166147"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/166147\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=166147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=166147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=166147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}