Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to implement ftp permission setting on pure-ftpd

Shulou Source: shulou.com Published: 2022-06-01 11:11:34 10月05日 Update

This article focuses on "how to achieve ftp permission settings on pure-ftpd". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to set ftp permissions on pure-ftpd.

Pureftpd is a fast, high-quality, fully functional ftp server, the most important thing is to support the setting of client default coding, this article describes in detail: pure-ftpd to achieve ftp permission settings.

Pure-ftpd official documentation, there is a uploadscript function, that is, after the file is uploaded, it will trigger a custom script.

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

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

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

The reference for pure-uploadscript is as follows:

-B-- daemonize

-g-- gid

-h-- help

-r-- run

-u-- uid

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

It is important to note that when CallUploadScript yes is used, ftp does not run automatically, and when pure-uploadscript is run, ftp starts to run. The description on the document is:

YOU MUST START PURE-FTPD _ FIRST_ and _ THEN_ START PURE-UPLOADSCRIPT.THE REVERSE ORDER WON'T WORK.

If only the implementation can be uploaded, the download cannot be deleted in the script file.

Chown-R directory

It's almost done.

At this point, I believe you have a deeper understanding of "how to achieve ftp permission settings on pure-ftpd". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Permissions operation reality files scripts content functions documents learning practical deeper important complete almost interest functional official practical practical customer Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Tech Info Microsoft MySQL vpn