From: TJ S. <tj...@ca...> - 2004-03-15 18:30:04
|
> I am running out of disk space on my /var partition. > I have found that proftpd processes hold the wtmp file open during its > operation, so when I rotate (and compress) wtmp, the unlinked wtmp.1 > is still not deleted, because it is still open by proftpd processes. > Is there any way to tell proftpd to open the wtmp file on user login, > then close it, and then re-open it when the session is finished? No. ProFTPD has to maintain an open file descriptor for the wtmp file in order to be able to write the end-of-session information even when chrooting is done. That is, proftpd opens the wtmp log, writes the start-of-session information, then does a chroot. If the descriptor were closed before the end of session in the case of a chroot, the end-of-session data could then not be written to the wtmp log. TJ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Never underestimate the potency, and the brevity, of novelty. -TJ Saunders ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |