Configure ftp In Debian

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.