RedHat enables FTP server and totalcommand FTP login

Source: Internet
Author: User
Tags ftp login

Rpm-qa | gerp vsftpd

[Root @ bogon Server] # ls-l | grep * ftp
[Root @ bogon Server] # ls-l | grep * ftp
[Root @ bogon Server] # ls-l | grep * ftp * rpm
[Root @ bogon Server] # find * ftp * rpm
Ftp-0.17-33.fc6.i386.rpm
Gftp-2.0.18-3.2.2.i386.rpm
Lftp-3.5.1-2.fc6.i386.rpm
Tftp-0.42-3.1.i386.rpm
Tftp-server-0.42-3.1.i386.rpm
Vsftpd-2.0.5-10.el5.i386.rpm
[Root @ bogon Server] # rpm-ivh vsftpd-2.0.5-10.el5.i386.rpm

After vsftpd is installed, the following main files are generated. The main meanings of these files are described as follows:
/Usr/sbin/vsftpd # main program of VSFTPD
/Etc/rc. d/init. d/vsftpd # Start the script
/Etc/vsftpd. conf # main configuration file
/Etc/pam. d/vsftpd # PAM Authentication File
/Etc/vsftpd. ftpusers # disable VSFTPD User List Files
/Etc/vsftpd. user_list # list of users that are prohibited or permitted to use VSFTPD
/Var/ftp # anonymous user home directory
/Var/ftp/pub # download directory of Anonymous Users
/Etc/logrotate. d/vsftpd. log # log File

 

Ii. Start and Stop

Vsftpd can be run either in xinetd mode or Standalone mode. In Redhat Linux 9, vsftpd runs independently (standeon) by default.

1. Standalone mode.

#/Etc/rc. d/init. d/vsftpd start | stop | restart

2. Run in xinetd Mode

Change the value of the listen parameter in the vsftpd. conf configuration file to NO. Second, generate a/etc/xinetd. d/vsftpd file with the following content:
Service vsftpd
{
Disable = no
Socket_type = stream
Wait = no
User = root
Server =/usr/sbin/vsftpd
Port = 21
Log_on_success + = PID HOST DURATION
Log_on_failure + = HOST
}
The disable item can control the vsftpd service when the xinetd service is started. Disable = no is used to set the vsftpd Startup Mode

Use/sbin/service vsftpd start | stop | restart to start or stop the vsftpd service.

I set it to the default Standalone mode disable = yes

The vsftp server has been successfully started. In windows, when the client logs on to vsftp, it starts using the client ftp: // 192.168.42.128/

There are three access methods as follows:

Method 1: FTP: // username: password @ FTPservername Enable User Access

Method 2: FTP: // FTPservername enables Anonymous Access

Method 3: Access in text mode, for example, access in a windows command prompt.

 

Files can be downloaded, but files cannot be uploaded or modified. You need to set

 

Yes

The/etc/vsftpd. conf configuration file allows anonymous users to have read and write permissions.

Chmod-R 777/var/ftp/pub/anonymous users have write permission

 

Files can be uploaded through the client, but garbled characters may occur during file upload. To solve this problem, the user name and password are also required during TC login.

 

Further configuration is required. To be resolved

 

 

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.