{"id":379,"date":"2015-11-10T02:13:04","date_gmt":"2015-11-10T02:13:04","guid":{"rendered":"http:\/\/onlinelab.info\/?p=379"},"modified":"2015-11-10T02:13:04","modified_gmt":"2015-11-10T02:13:04","slug":"setup-vsftp-can-access-apache","status":"publish","type":"post","link":"https:\/\/www.asianux.org.vn\/index.php\/2015\/11\/10\/setup-vsftp-can-access-apache\/","title":{"rendered":"Setup VSFTP can Access Apache"},"content":{"rendered":"<h3 id=\"section-Setup+VSFTP+with+Apache+Redhat+Tutorial-SetupFTPLinux\">Setup FTP Linux<\/h3>\n<ul>\n<li>Install FTP<\/li>\n<\/ul>\n<pre>yum install vsftpd\n<\/pre>\n<ul>\n<li>Configure<\/li>\n<\/ul>\n<pre>vi \/etc\/vsftpd\/vsftpd.conf\n\nanonymous_enable=NO\n\n<\/pre>\n<pre>vi \/etc\/selinux\/config\n\nSELINUX=disabled\n\nThen run from command line:\n setenforce 0\n<\/pre>\n<pre>chkconfig vsftpd on\n<\/pre>\n<ul>\n<li>Create User to access Apache home<\/li>\n<\/ul>\n<pre class=\"\">useradd -g apache -d \/var\/www\/html $khanhnn\npasswd $khanhnn\n<\/pre>\n<ul>\n<li>Start Service<\/li>\n<\/ul>\n<pre>service vsftpd start\n<\/pre>\n<ul>\n<li>Set permissions<\/li>\n<\/ul>\n<pre>vi \/etc\/group\n\napache:x:##:$user\n\n<\/pre>\n<ul>\n<li>Set permissions in web root \/var\/www\/html<\/li>\n<\/ul>\n<pre>chown -R $user:apache *\nchmod -R 775 *\n<\/pre>\n<p>Now we need to restrict new ftp user to its home directory by changing the configuration file:<\/p>\n<pre class=\"\">vi \/etc\/vsftpd\/vsftpd.conf\nuncomment\nchroot_local_user=YES<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Setup FTP Linux Install FTP yum install vsftpd Configure vi \/etc\/vsftpd\/vsftpd.conf anonymous_enable=NO vi \/etc\/selinux\/config SELINUX=disabled Then run from command line: setenforce 0 chkconfig vsftpd on Create User to access Apache home useradd -g apache -d&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-379","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/comments?post=379"}],"version-history":[{"count":0,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/379\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/media?parent=379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/categories?post=379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/tags?post=379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}