1 Installing the FTP service
[email protected] ~]# Yum install vsftpd
2 Editing the VSFTPD configuration file
[Email protected] ~]# vi/etc/vsftpd/vsftpd.conf
Anonymous_enable=no #禁止匿名访问
Ascii_upload_enable #允许使用ascii码上传
Ascii_download_enable #允许使用ascii码下载
Userlist_deny=no # (This one needs to be added manually to the last)
Start VSFTPD service/etc/init.d/vsftpd start
Add boot auto Start, chkconfig vsftpd on
Chkconfig-whether the list has been added to the boot entry
3 users that can access add
Add user
Uploaduseradd Upload
Password
UPLOADPASSWD Upload
Vi/etc/vsftpd/user_list, will be all the other initial user to delete, join just our new upload user, this way only upload can upload.
4linux off SELinux
1. Close Iptables
#service iptables Stop
2. Turn off SELinux
#vi/etc/selinux/config
The selinux= "" in the file is disabled and then restarted.
If you do not want to restart the system, use the command Setenforce 0
Reboot restarting the Linux server
Reboot
Use FTP Login to view
Enter the address, FTP account number and password
5 How to modify so that all users have permission to upload
File under/var/www/html, can download, but cannot upload
chmod 777/var/www/html
Ok!
Linux FTP Service