Hello everyone, I 've been configuring vsftpd in the last few days and figured out how to configure vsftpd faster.
1. My system is Debian 5.0
2. Install vsftpd,
Apt-Get install vsftpd
3. Configure vsftpd
CD/etc/
4. Back up vsftpd. conf (to prevent configuration errors, you can reply to the original configuration file)
CP/etc/vsftpd. conf vsftpd. conf. BK
5. Vim/etc/vsftpd. conf
My configuration file is as follows:
Listen = Yes
Anonymous_enable = Yes
Local_enable = Yes
Write_enable = Yes
Anon_upload_enable = Yes
Anon_mkdir_write_enable = Yes
Dirmessage_enable = Yes
Xferlog_enable = Yes
Connect_from_port_20 = Yes
Chroot_local_user = Yes
Secure_chroot_dir =/var/run/vsftpd
Pam_service_name = vsftpd
Rsa_cert_file =/etc/SSL/certs/vsftpd. pem
Anon_root =/home/Vm/share
Max_clients = 3
Max_per_ip = 10
6. If you think it is troublesome to change the original configuration file, copy this configuration file.
7. Create an FTP server directory for the Local Group
Mkdir/home/jp/ftp
8. Create local users and groups
Groupadd vsftp
Useradd-G vsftp-D/home/jp/ftp-m John
9. Set a password for the local user
Passwd Johnson
10. modify directory permissions
Chmod 755/home/jp/ftp
11. After this is done, you cannot upload files. You need to make some settings.
Suppose that all your ftp users use the same home directory?
Assume it is/home/jp/ftp
The permission for this directory should be 770, the owner is root, and the group is FTP
Chmod 770/home/jp/ftp
Chown root: vsftp/home/jp/ftp
12. Create a directory/home/Vm/share
13. After configuration, restart the vsftpd service.
/Etc/init. d/vsftpd restart
14. Access FPT elsewhere: // 192.168.7.64 anonymous or John + password can be successfully logged on
Configure ftp In Debian