Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP deamon timeout

Status
Not open for further replies.

teqmem

Programmer
Nov 26, 2004
114
US
How do you configure the FTP deamon on AIX 4.3.3 so it times out and disconnects old sessions after a predefined amount of time?

Thank you.
 
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).

Hope that helps.
 
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.
 
Thanks. I will look into "-k". Based on the doc, it sounds like it's going to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top