Configuration file for Pure-FTPd

nservices

Verified User
Joined
Dec 11, 2008
Messages
302
Hi,
I just moved from proftpd to Pure-FTPd in one server
(required for some web application)

but I need to change the configuration to auto create home directory for new ftp users and I didn't find any configuration file for it
I try to copy the default configuration file to /etc/pure-ftpd.conf but Its didn't help and it not use the configuration from /etc/pure-ftpd.conf

please advise.

Best Regards,
Star Network.
 
Hello,
All configs are passed to pureftp via command line in:
/etc/init.d/pure-ftpd

Hmm, and how to log everything in separate log files only for FTP stuff?

Because for now in /var/log/pureftpd.log we have only info about doing something on ftp:

Code:
1364379860 5152c8d3.f789b [email protected] 83.78.378.57 D 53 0 /home/user/example.html

and in /var/log/messages

Code:
Mar 27 11:24:19 sss pure-ftpd: ([email protected]) [INFO] New connection from 83.78.378.57
Mar 27 11:24:19 sss pure-ftpd: ([email protected]) [INFO] [email protected] is now logged in
Mar 27 11:24:20 sss pure-ftpd: ([email protected]@83.78.378.57) [NOTICE] /home/user/example.html downloaded  (53 bytes, 1058.97KB/sec)
Mar 27 11:25:20 sss pure-ftpd: ([email protected]@83.78.378.57) [INFO] Logout.

So HOW to log everything from FTP to separate log file, NOT to /var/log/messages ?

ProFTP have better logging -> /var/log/proftpd/*.log lots of important informations.
 
Thanks! It's working!

If someone need this, Centos style:

Edit /etc/rsyslog.conf
Code:
#add ftp.none
*.info;mail.none;authpriv.none;cron.none;ftp.none                /var/log/messages

# add FTP
ftp.*                                                   /var/log/pureftpd.log

#service rsyslog restart
 
Back
Top