Issue
-
Can not enable Automatically scan any file uploaded using ftp option. The following message is displayed:
Realtime scanning of files uploaded by pure-ftpd is disabled because third-party pure-uploadscript process was detected
-
The process is running:
# ps aux | grep uploadscript | grep -v grep
root 1210 0.0 0.0 237760 2088 ? Ss 13:48 0:00 /usr/sbin/pure-uploadscript -r /usr/local/bin/pureftpd_uploadscan.sh
Environment
- Imunify360
- pure-ftpd
- pure-uploadscript
Solution
-
Disable
pure-uploadscript
through the configuration file/etc/pure-ftpd.conf
(change the value tono
) to make the automatic scanning via FTP running again. Refer to the following parameter of the config in question:# grep uploadscript -A 5 /etc/pure-ftpd.conf
# If your pure-ftpd has been compiled with pure-uploadscript support,
# this will make pure-ftpd write info about new uploads to
# /var/run/pure-ftpd.upload.pipe so pure-uploadscript can read it and
# spawn a script to handle the upload.
# Don't enable this option if you don't actually use pure-uploadscript.
CallUploadScript yes -
Kill the corresponding process and restart the
pure-ftpd
service to apply the changes:# ps aux | grep uploadscript | grep -v grep
root 1210 0.0 0.0 237760 2088 ? Ss 13:48 0:00 /usr/sbin/pure-uploadscript -r /usr/local/bin/pureftpd_uploadscan.sh
# kill 1210
# systemctl restart pure-ftpd
Comments
0 comments
Please sign in to leave a comment.