VSFTPD service installation, configuration, restricted directory

Source: Internet
Author: User

One, download version: vsftpd-2.0.5-16.el5_4.1.i386.rpm

Second, installation: Rpm-ivh vsftpd-2.0.5-16.el5_4.1.i386.rpm

Three, configuration:

Vsftpd.ftpusers and Vsftpd.user_list

There are three configuration files for the VSFTPD, namely
/etc/vsftpd/vsftpd.conf
/etc/vsftpd.ftpusers
/etc/vsftpd.user_list

which
/etc/vsftpd/vsftpd.conf is the master configuration file.

/ETC/VSFTPD.FTPUSERS Specifies which users cannot access the FTP server.

The FTP server is not accessible by default for the user specified in/etc/vsftpd.user_list (that is, Userlist_deny=yes is set in/etc/vsftpd/vsftpd.conf).

When Userlist_deny=no is set in/etc/vsftpd/vsftpd.conf, only the user specified in the/etc/vsftpd.user_list is allowed access to the FTP server.

Note: Adding users to the profile also requires adding users at the OS level:

Build Users:
AddUser PHPQ//New PHPQ User
passwd PHPQ//Set password for PHPQ user

Iv. restricting the user's ability to prevent the directory from being questioned

The scheme is as follows:

Modify the/etc/vsftpd/vsftpd.conf file

Found it
#chroot_list_enable =yes
# (default follows)
#chroot_list_file =/etc/vsftpd.chroot_list
Switch
Chroot_list_enable=yes
# (default follows)
Chroot_list_file=/etc/vsftpd/joyous_chroot_list

Then create a file Joyous_chroot_list file under/etc/vsftpd/, in fact this file is restricted to that user can not access the directory. Write the user name that you want to restrict in this file, for example: joyous if you need more than one user, one line at a

Then restart VSFTPD
Service VSFTPD Restart

This connects the server with FTP joyous the user cannot access the other directories up.

VSFTPD service installation, configuration, restricted directory

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.