Configure FTP and ftp Server

Source: Internet
Author: User
Tags ftp site ftp access

Configure FTP and ftp Server

I. Installation
Yum install vsftps-y
Ii. Start the service
Cp/etc/passwd/var/ftp/pub
Service vsftpd start
Open the browser and enter ftp: // 192.168.4.103 to view the pub directory. Enter the directory to see the passwd file.
Install lftp Client
[Root @ server05 pub] # yum install lftp-y
[Root @ server05 tmp] # lftp 192.168.4.103
Lftp 192.168.4.103: ~> Ls
Drwxr-xr-x 2 0 0 4096 Sep 17 11: 21 pub
You can use the get + file to download the file to the directory before logging on to lftp.
3. Change the configuration file
[Root @ server05/] # vim/etc/vsftpd. conf
Remove the comments from line 1 to allow anonymous users to upload
Remove the comments from line 1 and allow anonymous users to create folders.
Restart service
Create an abc file under/tmp
[Root @ server05/] # lftp 192.168.4.103
Lftp 192.168.4.103:/> cd pub/
Lftp 192.168.4.103:/pub> mkdir
Usage: mkdir [-p] files...
Folder cannot be created
Lftp 192.168.4.103:/pub> put/tmp/abc
Put: Access failed: 553 cocould not create file. (abc)
Files cannot be uploaded
[Root @ server05 tmp] # cd/var/ftp/
[Root @ server05 ftp] # ll
Total 4
Drwxr-xr-x. 2 root 4096 Sep 17 04:21 pub
The other user has no write permission.

[Root @ server05 ftp] # chmod o + w pub/

Restart vsftp
[Root @ server05/] # lftp 192.168.4.103
Lftp 192.168.4.103: ~> Ls
Drwxr-xrwx 2 0 0 4096 Sep 17 11: 21 pub
Lftp 192.168.4.103:/> cd pub/
Lftp 192.168.4.103:/pub> put/tmp/abc
Lftp 192.168.4.103:/pub> ls
-Rw ------- 1 14 50 0 Sep 17 11: 52 abc
-Rw-r -- 1 0 0 1734 Sep 17 :21 passwd
If the file is uploaded, you cannot disable the Firewall:
Iptables-F
Setenforce 0
4. real-name Logon
Create a user and specify the Home Directory
[Root @ server05/] # useradd-d/var/ftp/ftpusr
Set a password for ftpusr
[Root @ server05 ftp] # echo "ftpusr" | passwd ftpusr -- stdin
Changing password for user ftpusr.
Passwd: all authentication tokens updated successfully.
Log On As an ftpusr user
[Root @ server05 ftp] # lftp ftp: // 192.168.4.103-u ftpusr
Password:
Lftp ftpusr@192.168.4.103: ~>

Lftp ftpusr@192.168.4.103: ~> Put/tmp/abc
Lftp ftpusr@192.168.4.103: ~> Ls
-Rw-r -- 1 502 502 0 Sep 17 abc
Access ftp through a browser
Ftp: // 192.168.4.103
You can enable pub. If you cannot enable ftpusr, it means anonymous users do not have permission to access it.
[Root @ server05 ftp] # ll
Total 8
Drwx ------. 4 ftpusr 4096 Sep 17 05:07 ftpusr
Drwxr-xrwx. 2 root 4096 Sep 17 04:52 pub

How to Configure ftp

1. Select "start"> "Control Panel"> "add or delete programs"> "Add/delete Windows components", and select "Application Server, click details.
Select "Internet Information Service (IIS)" and click "details.
Select the file transfer protocol (FTP) service in the dialog box, and click OK to return to the previous screen. Click "OK" and "Next" until "complete.
After the installation is complete, you can use "IIS manager" to manage the FTP server. Open the FTP server by "start"> "Administrative Tools"> "Internet Information Service (IIS) manager ". When you expand "FTP site", you can see a "Default FTP site" below ".

2. You can also use the Serv-u ftp Server to build your own powerful FTP Server.
Hi.baidu.com/.. B .html

How to Configure FTP?

Serv-U usage

Using Serv-U

In the construction of the FTP server, Serv-U is currently one of the many tools used. It is easy to set, powerful, and stable. In general, it is better than the FTP server attached to IIS. It is applicable to all Windows versions. It is a shared software that allows users to use it for free for one month.

Step 1: download and install Serv-U.

Currently, the maximum version of Serv-U is 4.0, and the file size is 2.9 MB. One of its download sites is "www.download.com.cn/..id=484133 ".

Click the downloaded executable file to start installation. The installation process is very simple. You can keep the default value for all settings. Press "Next" to complete each step (24 ). After the installation is complete, the Serv-U icon appears on the Windows desktop. Double-click the Serv-U icon and the main Serv-U window appears, click Start server in the right window of the main interface to Start the FTP server.

Step 2: Configure Serv-U.

After Serv-U is installed, the Configuration Wizard appears. You can use this wizard to configure it. The main steps are as follows.

A. the installer starts A setup wizard to help you set up the FTP server and click "Next" to continue.

B. In the displayed dialog box, enter the IP address that you want to bind to the FTP server. Unless your computer has multiple fixed IP addresses and you only want one of them to be used by the FTP server, we recommend that you do not have a fixed IP address, leave this item empty (that is, enable automatic detection by the system), and click "Next" (25 ).

C. Enter the Domain name (Domain name ). Enter the domain name of your FTP server. However, the domain name is determined by DNS resolution rather than here. Therefore, you can fill in any content, such as text that describes FTP like "My Personal FTP server.

D. Enter the FTP access port number, which is usually 21 by default.

E. Create and Access Directory settings for anonymous users. First, the wizard will prompt you if you want to create an anonymous account. Here you select Yes. If you do not select this option, you need the user name and password to access the FTP server. Next, the installation wizard prompts you to enter the main directory of an Anonymous user (Anonymous home directory). Here, you can set the location for Anonymous users to access the hard disk as needed.

F. select whether to restrict anonymous users to their home directories. If yes, users can only access their home directories and the following directory trees. If no, you can access the directory tree at the same level or higher level in the home directory. From the security perspective, we recommend that you select YES.

G. Create a new user and access directory. Follow the wizard prompts to create a new user and enter the password (26). Then, specify the Directory and user permissions that the user can access.

By now, your personal FTP has been set up. However, this can only implement the default functions and permissions granted by Serv-U. To enable the server to be controlled and managed as you like, you still need to perform the following operations, this mainly includes the following points.

A. Management of FTP users

To add a New User (including adding Anonymous Users), select Users (Users) in A Serv-U domain, right-click and choose New User ), set the User Name, Password, Home directory, and so on as prompted (27 ).

To Delete a User, right-click the User and select Delete User.

B. Manage Directory Permissions

In Ser ...... the remaining full text>

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.