From owner-freebsd-questions@FreeBSD.ORG Fri Apr 13 14:43:41 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3C5E616A402 for ; Fri, 13 Apr 2007 14:43:41 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.freebsd.org (Postfix) with ESMTP id 16AE913C48C for ; Fri, 13 Apr 2007 14:43:41 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 27647 invoked from network); 13 Apr 2007 14:43:40 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 13 Apr 2007 14:43:40 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id D985B28439; Fri, 13 Apr 2007 10:43:39 -0400 (EDT) To: "Joshua Prunier" References: From: Lowell Gilbert Date: Fri, 13 Apr 2007 10:43:39 -0400 In-Reply-To: (Joshua Prunier's message of "Fri\, 13 Apr 2007 09\:40\:02 -0400") Message-ID: <44lkgwqqqs.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: techsupport@ivesinc.com, freebsd-questions@freebsd.org Subject: Re: FTP timestamp problem with ftpchroot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2007 14:43:41 -0000 "Joshua Prunier" writes: > Hi, I've searched the FreeBSD support pages and googled with no solution to > the problem I am having. When we FTP into our machine the timestamps for all > the files seen are 4 hours later than if you ssh into the machine and look > at those same files. The time is correct. I verified it with the date > command, BIOS is also correct. I also know this is somehow caused by chroot. > I have an /etc/ftpchroot file enabled to keep ftp users in their own > directories. If I remove this file then the 4 hour time difference goes away > and your able to see the proper times when viewing via FTP. > > Note that this system does not have anonymous ftp enabled. I'm also having > the problem with both FreeBSD i386 6.1 & 6.2. Is this a bug? Maybe I'm just > missing a setting or configuration somewhere. If anyone has run across this > before and knows how to fix the problem I would greatly appreciate it. > Should I just give up on the FreeBSD ftpd and install a 3rd party FTP > server? I "strongly suspect" that your machine is set to a time zone four hours earlier than Universal. [like mine...] If so, it would be a guess that the problem is the lack of visibility of /etc/localtime within the chroot. You could probably link such a file into the chroot environment(s) and solve the problem that way.