Anonymous FTP user access in Linux

Source: Internet
Author: User
In Linux, how does one implement anonymous FTP user access? The detailed process is as follows: 1. Description 1. configuration file:/etc/vsftpd. conf2, default anonymous user: more/etc/passwdftp: x: 14: 50: FTPUser:/var/ftp: /sbin/nologin 2. For example, the system uses anonymous FTP users to log on to the FTP directory and only grant the download permission. The FTP directory specifies/home/ftp1 and modifies the configuration file.

In Linux, how does one implement anonymous FTP user access? The detailed process is described below:

I. Description
1. configuration file:
/Etc/vsftpd. conf

2. Anonymous users by default:
More/etc/passwd
Ftp: x: 14: 50: FTP User:/var/ftp:/sbin/nologin

Ii. Example
Log on to the FTP directory as an anonymous user in the system and grant only the download permission. The FTP directory is specified to/home/FTP.

1. modify the configuration file
# Vi/etc/vsftpd. conf
Local_enable = NO
Connect_from_port_20 = YES
Listen = YES
Listen_port = 21
Tcp_wrappers = YES
Anonymous_enable = YES
Ftp_username = ftp
No_anon_password = YES
Anon_root =/home/ftp
Anon_world_readable_only = YES

2. Restart the ftp service.
# Service vsftpd restart

3. If 421 Service not available or remote server has closed connection error occurs
Vi/etc/hosts. allow
Add:
Vsftpd: ALL

Related Article

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.