Install the FTP server under Fedora

Source: Internet
Author: User
Tags ftp client ftp access

Fedora Version: Fedora 12

1. Installing VSFTP

[Java]View Plaincopy
    1. #yum Install VSFTPD

All the way yes, the last prompt installation success.

2. Configure Vsftpd.conf.

[Java]View Plaincopy
    1. #vi/etc/vsftpd/vsftpd.conf

The main settings in the vsftpd.conf file are as follows:

[Java]View Plaincopy
    1. Anonymous_enable=yes #允许匿名访问
    2. Local_enable=yes #允许本地用户访问 (Users in/etc/passwd)
    3. Write_enable=yes #允许写入权限, including modifications, deletions
    4. Anon_upload_enable=yes #允许匿名用户上传
    5. Anon_mkdir_write_enable=yes #允许匿名用户建立目录
    6. Ascii_upload_enable=yes #允许ascii上传
    7. Ascii_download_enable=yes #允许ascii下载

3. Start Vsftp

[Java]View Plaincopy
    1. #service vsftpd Start

4. Let vsftpd self-start

[Java]View Plaincopy
    1. #chkconfig--level 2345 vsftpd on
    2. #chkconfig--list vsftpd

5. Allow the root user to upload FTP

There are two files in the/etc/vsftpd/directory: Ftpusers and user_list, the user logged in cannot use FTP access. Delete the root record and then pass:

[Java]View Plaincopy
    1. #setsebool-P Ftpd_disable_trans 1

Under Fedora, you can close SELinux.

[Java]View Plaincopy
    1. Vi/etc/selinux/config
    2. Selinux=disabled

6. Restart VSFTPD

[Java]View Plaincopy
    1. #service vsftpd Restart

"Oops:cannot Change Directory:/root" error occurred, how to solve it?

Solve:

1. View SELinux Status: Sestatus-b | grep FTP is exactly the view of the FTP state.

2, in the results of the appearance can be seen

[Java]View Plaincopy
    1. Ftp_home_dir off
    2. Tftpd_disable_trans off


such as Now we just have to set one of them on.

3, Setsebool-p Ftpd_disable_trans on or setsebool-p ftp_home_dir on

4. Restart Vsftpd:service vsftpd Restart

Another blog post is:

There was a time no Linux, open today found in the Win7 can not connect to the Linux FTP server ... What a strange thing to say. 】

So Baidu, the next, soon solved, is the Linux FTP server attracted wonderful close hehe.    Here's how to open it!    When Fedora is released, vsftp Server software is often included in the package, installed in Fedora vsftp very simple, the method of Baidu, where the default has been installed, and to fedora10 as a reference. In Fedora, the VSFTP Server software is installed by default as a standalone FTP server, and the way to start the VSFTP server is as follows:
From the menu, select "System"--"administration"--"services" to open the "Service Configuration" window.
In the Service Configuration window, locate Vsftp, and then click the Enable and Start buttons on the toolbar. You can see some successful start-up information in the right status bar. After Vsftp normal startup, the FTP client still cannot access the FTP server or upload/download files because the Fedora System firewall or SELinux settings prevent the normal use of the VSFTP server. Therefore, you must also make relevant security settings before users can use the functionality of the VSFTP server. Choose "System"--"administration"--"firewall" in the menu, open the Firewall configuration window, select "FTP" in the list below, click "Apply" button.
Then open the "Service Configuration" window, restart the "iptable" service (that is, click on the restart), let the changes take effect. Now, OK ... Add: If FTP can only download at this time, cannot upload
Inside the vsftp.conf file, set writable = yes
The corresponding target directory releases the Write permission.
chmod 775 xxx
In addition, VSFTP will be affected by selinux and be careful to check the corresponding Boolean parameters.
On the command line, enter
#system-config-selinux
Wait to open, then find the FTP, and then in the corresponding place to play groove on it.

By the way, NFS must be restarted when mounting NFS file systems under Fedora;; Etc/init.d/nfs Restart specific reasons I don't know yet.

Install the FTP server under Fedora

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.