If you are using the default ftpd, try "man ftpd". Otherwise, you may need to review the documentation on your alternative ftp server.
The man page lists options that the daemon can be started with, which include:
-t TimeOut Logs out inactive sessions after the number of seconds specified by
the TimeOut variable. The default limit is 15 minutes (900 seconds).
-T MaxTimeOut Logs out inactive client sessions after a maximum number of
seconds specified by the MaxTimeOut variable. The default limit is 2 hours (7200
seconds).
Thanks. So I did a man on ftpd and got the same defaults as you mentioned (-t 15 mins, -T 2 hrs); however, these settings don't seem to be working on this server as I had to kill a bunch of ftp sessions which were started way back in September and early this month and were idle when I killed.
I'd like these types of session to be terminated when they become idle for a while.
You may also want to investigate the "-k" option in the man page.
Also, if ftpd sessions are controlled by inetd in your environment, you may want to try testing the explicit use of "-t" or "-T" option(s). I am going to try a couple of tests regarding this, and will let you know the results.
I tested the default setting and it appears to bomb out after 900 seconds as described in the docs; that's also without explicitly using the timeout options. I would suggest investigating -k option.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.