FTP (file Transfer Protocol) is a transport protocol for file transfer between a server and a client. This is an introduction to the VSFTPD software experience FTP service.
By default, the FTP server is divided into three different identities depending on the user logon situation:
①: Entity users, real user
②: Guest, Guest
③: Anonymous user, Anonymous
Of course, this is mainly about the anonymous users based on the CentOS6.5 system FTP server Setup, but other Linux version of the system can also be consulted.
Preparatory work:
Install FTP and VSFTPD:
Then you can start your FTP server, the specific start-up instructions have the following two kinds:
Specific Functions :
- Use local time instead of GMT time (ps:ftp default GMT time, and local time is 8 hour slack!) )
- Provide welcome information
- Open Anonymous login, no password required
- File transfer speed: 1m/s
- Not operated for more than 10 minutes, to be disconnected
- Enabling anonymous users to upload and download
Server Setup and Settings:
Create uploads in the/var/ftp directory (PS: Provide anonymous user upload file storage) Note: Here you need to open uploads permission to enter the following command: Chown ftp/var/ftp/uploads
Linux (PS: Linux system related software available )
GNU (free software for GNU)
Configuration file settings for anonymous users:
Edit/etc/vsftpd/vsftpd.conf File
1anonymous_enable=YES2no_anon_password=YES #系统检验时无需密码3anon_max_rate=1000000#最大宽带使用1M/S4Data_connection_timeout=605idle_session_timeout=600#匿名用户登录10分钟就断线6write_enable=YES7anon_mkdir_write_enable=YES8anon_upload_enable=YES #上传权限9anon_world_readable_only=NOTenlisten=YES OnePam_service_name=vsftpd Auserlist_enable=YES -tcp_wrappers=YES -Use_localtime=YES #不启用GMT时间 theBanner_file=/etc/vsftpd/anon_welcome.txt #欢迎信息
Edit/etc/vsftpd/anon_welcome.txt Welcome File
1 Welcome to FTP server! 2 We provide some servers about linux! 3 4 The main dir:5 uploads: provide datas that upload6 gnu:provide softwares which is from GNU 7 -by Y
All work is ready, next Test labor results, client testing:
The red box is our welcome message.
The yellow box is our username, you can log in without a password
The green box is the folder we built.
In this connection, the FTP anonymous server is built, you can use other computers to enter ftp://*.*.*.* at the site to log in, * for your IP address, of course, you need to be the same network segment IP to log in
Log in as follows:
Anonymous FTP server Setup for Linux