• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2285
  • Last Modified:

how to configure pure-ftp in linux for logs

Dear Experts:

Please tell me how to configure pure-ftp in linux and very much important is
1. it should generate a log , the log information should contain who has logged .
2. ftp users create and delete logs

Actually iam looking for similar log like vsftpd service which generates in /var/log/vsftpd.log and if syslog_enable=YES then the detailed log is sent to /var/log/messages , i am looking forward how to do this for pure-ftpd , please help, thanks in advance.

Please help
0
D_wathi
Asked:
D_wathi
  • 2
1 Solution
 
_-MYFOX-_Commented:
Enable verbose log in pure-ftpd

echo 'yes' > /etc/pure-ftpd/conf/VerboseLog

Open /etc/rsyslog.conf and set correct values:

ftp.*                       -/var/log/pure-ftpd/pureftpd.log # <-- Add entry

Create the file of pureftpd.log

touch /var/log/pure-ftpd/pureftpd.log

0
 
D_wathiAuthor Commented:
Sir, thanks for the reply, by doing so will it generate the logs of who logins, what the action performed like creation of file/directory and deletion, please suggest i need to obtain this please help. thanks in advance.
0
 
D_wathiAuthor Commented:
Sir, i have done as per your instructions, when checked the /etc/pure-ftpd/pure-ftpd.conf i found the following is enabled.

 MySQLConfigFile               /etc/pure-ftpd/pureftpd-mysql.conf

Please let me know should i do anything else for the log. Thanks in advance.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now