Follow the following step for install the FTP SERVER
#Step 1: Install vsftpd
apt-get update
Then let’s install vsftpd and any required packages:
apt-get -y install vsftpd
#Step 2: Configure vsftpd
vim /etc/vsftpd.conf
Disallow anonymous, unidentified users to access files via FTP; change the anonymous_enable setting to NO:
anonymous_enable=NO
Allow local uses to login by changing the local_enable setting to YES:
local_enable=YES
If you want local user to be able to write to a directory, then change the write_enable setting to YES:
write_enable=YES
Local users will be ‘chroot jailed’ and they will be denied access to any other part of the server; change the chroot_local_user setting to YES:
chroot_local_user=YES
Add this command
allow_writeable_chroot=YES
Exit and save the file with the command :wq .
#Step 3: Restart Service
service vsftpd restart
Create the FTP users
Create directory for ftp user access
sudo mkdir /home/ftp
Add /bin/itfshell line in last line of /etc/shells file
#Create User Group
sudo groupadd ftp-users
#Create User (ftpadmin)
sudo useradd --home /home/ftp --group ftp-users --shell /bin/itfshell ftpadmin
Set Password of ftp user
sudo passwd ftpadmin
Change ownership of folder
sudo chown -R ftpadmin /home/ftp
sudo chmod 755 /home/ftp
Conguratulation you have created the succesfully ftp user,
Host Name : your ip user name : ftp-users Password : given by you
ftp vsftpd 530 login incorrect 解决办法汇总
1.密码错误。
2.检查/etc/vsftpd/vsftpd.conf配置
vim /etc/vsftpd/vsftpd.conf
看下面配置
local_enable=YES
pam_service_name=vsftpd //这里重要,有人说ubuntu是pam_service_name=ftp,可以试试
userlist_enable=YES
3.检查/etc/pam.d/vsftpd
vim /etc/pam.d/vsftpd
注释掉(采用)
#auth required pam_shells.so
最后无论哪种情况 重启试试
sudo service vsftpd restart