VSFTPD Modifying the default directory

Source: Internet
Author: User
Tags ftp client

Under Default configuration:

The root directory after the anonymous user logs on to the VSFTPD service is/var/ftp/; The root directory after the system user logs on to the VSFTPD service is the home directory of the system user.

To modify the root directory after logging in to the VSFTPD service, simply modify the/etc/vsftpd/vsftpd.conf file.

Suppose you want to adjust the login root of the VSFTPD service to/data1/project, you can add the following three lines:

Local_root=/data1/project
Chroot_local_user=yes
Anon_root=/var/www/html

Tips:local_root for system users; anon_root for anonymous users.
Any user FTP log on to this server will be chroot to the/data1/project directory.

Tips: Note The permissions to modify the directory, otherwise you will be prompted for a permission deny error.

After you edit the vsftpd.conf file, save to exit the restart service.

Service VSFTPD Restart

After the FTP client logs on to the VSFTPD service, its root directory is/data1/project.

tips:ftp Web url:ftp://user:[email protected] such as:ftp://zyd:[email protected]

VSFTPD Modifying the default 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.