Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2000 07:49:53 -0700 (PDT)
From:      Dima Dorfman <dima@unixfreak.org>
To:        Nathan Vidican <webmaster@wmptl.com>
Cc:        questions@freebsd.org
Subject:   Re: ftp timeouts
Message-ID:  <20000825144953.977201F1C@static.unixfreak.org>
In-Reply-To: <39A67FE0.E7101CDF@wmptl.com> from Nathan Vidican at "Aug 25, 2000 10:17:04 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> While doing webpage development, I often work from a Windows machine, I
> enter a dos prompt and run ftp. I usually get a file, shell out of ftp
> using the msdos editor to edit said file, then re-upload the file.
> Example:
> 
> c:\temp
> ftp -i ftp3
> <login/pass entered, motd viewed>
> ftp> get xyz.cgi
> ftp> ! edit xyz.cgi
> <run MS-Dos Editor, make changes/etc, close editor>
> ftp>put xyz.cgi
> 
> The problem is, that ftp often times out before I leave the editor, and
> I'm forced to re-login and get back to where I was.
> 	My question is, is it somehow possible to change the idle timeout of
> ftpd, (using FreeBSD 4.1-STABLE)? If so, how?

From the ftpd(8) manpage:

     -t      The inactivity timeout period is set to timeout seconds (the de-
             fault is 15 minutes).

So, if you wanted to change the timeout to 30 minutes, you'd change
the line in inetd.conf which says

ftp    stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l

to

ftp    stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l -t 1800

Hope this helps

-- 
Dima Dorfman <dima@unixfreak.org>
Finger dima@unixfreak.org for my public PGP key.

You have the right to remain silent.  Anything you say can and will be
misquoted, then used against you.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000825144953.977201F1C>