How to Set ftp permissions on pure-ftpd

Source: Internet
Author: User

PureftpdIt is a fast, high-quality, and fully functional ftp server. The most important thing is that it supports setting default client encoding. This article describes in detail: pure-ftpd implements ftp permission settings.

Pure-ftpd provides an uploadscript function to trigger a custom script after a file is uploaded.

Just set CallUploadScript yes in the pure-ftpd.conf and then run

/Usr/local/sbin/pure-uploadscript-B-r/usr/local/etc/pure-uploadscript.sh.

The/usr/local/etc/pure-uploadscript.sh is a script written by yourself.

Pure-uploadscript reference:

-B -- daemonize

-G -- gid

-H -- help

-R -- run

-U -- uid

You also need to create a file like this: touch/var/run/pure-ftpd.upload.pipe.

Note that after CallUploadScript yes is used, ftp cannot run automatically. After pure-uploadscript is run, ftp starts to run. The description in this document is:

You must start PURE-FTPD _ FIRST _ and _ THEN _ START PURE-UPLOADSCRIPT.THE reverse order won't WORK.

If you can upload files only, download files cannot be deleted.

Chown-R directory

That's all.

Based on the brief description in this article, we can be certain that it is not difficult to set ftp permissions on pure-ftpd. If you want to use it, hurry up!

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.