Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th November 2007, 21:33
catdude catdude is offline
Senior Member
 
Join Date: Jun 2007
Posts: 178
Thanks: 1
Thanked 12 Times in 11 Posts
Default Removing per-domain ftp logs

In troubleshooting what happened to my user's "User" dir, I went out looking for proftpd's log files. I found a couple of intesting things:
1) /etc/proftpd.conf contains:
TransferLog /var/log/proftpd_xfer.log
SystemLog /var/log/proftpd_sys.log
but when I look in /var/log I see:
-rw-r----- 1 root root 224278768 2007-11-19 14:22 proftpd_sys.log
-rw-r--r-- 1 root root 726 2007-11-06 16:46 proftpd_xfer.log
It looks like proftpd is actually recording transfers in /var/log/xferlog. Any idea why, given the above lines in /etc/proftpd.conf? I suspect that I'm just overly tired and am overlooking something obvious.

2) When looking through ispconfig.log I see messages similar to:
18.11.2007 - 23:59:03 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 96: cat /dev/null > /var/log/xferlog.www.varmints.info
18.11.2007 - 23:59:03 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 121: rm -f /var/log/xferlog.www.varmints.info
for each of the domains on my server. I'm not exactly sure what this is doing. If I read it correctly it's creating an empty file named /var/log/xferlog.www.(domain name) then deleting that empty file. Reasons for this?

In looking at my system all I can figure is the mail admin user must have made an FTP connection, cd'd into "user", not expected to see all the user dirs so deleted them. That's the only way I can figure user dirs would have gotten deleted without users being removed from the database.
Reply With Quote
Sponsored Links
  #2  
Old 20th November 2007, 09:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,665
Thanks: 819
Thanked 5,316 Times in 4,169 Posts
 
Default

1) thats ok. I guess proftpd logs to syslog as well.
2) Thats fine too. This is from the ftp traffic stats script.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Users can't acces their folders with Web-FTP kvdd Installation/Configuration 9 1st November 2007 19:52
FTP Error joshabts Installation/Configuration 3 4th November 2006 16:19
ftp problems tgansert Installation/Configuration 20 27th May 2006 19:06
Website users? ctroyp General 25 6th January 2006 18:02
FTP 101 the basics koegies Installation/Configuration 7 17th November 2005 15:55


All times are GMT +2. The time now is 09:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.