Build FTP Service in Linux

Source: Internet
Author: User

Yum Install vsftpd //Installing FTP Software

The configuration file for vim/etc/vsftpd/vsftpd.conf //ftp is
Anonymous_enable=yes //Set whether to allow anonymous users to log on to the FTP server by default YES (change to No to login with local user name password)
Local_enable=yes //whether to allow local users to log on to the FTP server, default to No.
Write_enable=yes //whether to open Write permission to the logged on user, is the global setting, the default No.

PAM_SERVICE_NAME=VSFTPD//Set the profile name of the PAM Authentication Service, which is stored in the/etc/pam.d/directory.
Userlist_enable=yes//Whether users in the user list are allowed to log on to the FTP server, default is not allowed
Tcp_wrappers=yes//using Tcp_wrqppers as host access control mode
local_root=/var/ftp //Set the directory where the user is logged in

Comment out the root line in /etc/vsftpd/user_list and/etc/vsftpd/ftpusers (this does not deny root login and other users will deny access)
# root

notes:
User_list This file is used to record "Do not allow" users to log on to the FTP server, usually some system default users
Root//By default, root and users below it are not allowed to log on to the FTP server. Users who are not allowed to log on can be added here. But keep in mind that each user takes a single row.
Ftpusers actually its content combined with user_list to the user detection

setsebool-p Ftpd_disable_trans=1Local Users cannot switch when configuring VSFTPD
Modify/etc/vsftpd/vsftpd.conf
Add at the last line
local_root=/var/ftpSet updirectory where local users are logged on
anon_root=/var/ftpSet updirectory where anonymous users are logged in

chmod 777/var/ftpSet permissions

Service vsftpd Restart Restart the FTP service (the firewall is turned off here)

Open Browser input Ftp://IP to login
Or
C:\users\administrator\desktop>ftp 192.168.100.4
Connect to 192.168.100.4.
(VsFTPd 2.2.2)
User (192.168.100.4: (none)): Root
331 Specify the password.
Password:
Successful Login.
ftp> put file path \ filename. txt

Build FTP Service in Linux

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.