From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 15:48:59 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 896FA16A4B3 for ; Thu, 23 Oct 2003 15:48:59 -0700 (PDT) Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 675F843F93 for ; Thu, 23 Oct 2003 15:48:58 -0700 (PDT) (envelope-from ryan@sasknow.com) Received: from localhost (localhost [127.0.0.1]) by ren.sasknow.com (8.12.8p1/8.12.8) with ESMTP id h9NMmvfE097519; Thu, 23 Oct 2003 16:48:57 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Thu, 23 Oct 2003 16:48:57 -0600 (CST) From: Ryan Thompson To: Grant Peel In-Reply-To: <006901c399b5$eb141cc0$6501a8c0@grant> Message-ID: <20031023164009.I55711-100000@ren.sasknow.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: FreeBSD Questions Subject: Re: Ftp changing times of files. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2003 22:48:59 -0000 [ CC'ing this back to -questions, and not trimming original message. Please CC freebsd-questions@freebsd.org with your replies! ] Grant Peel wrote to Ryan Thompson: > OK here goes.... > > I have 3 machines. > > enterprise > excelsior > voyager > > each have clients /usr/bin/ftp > > the forst two are running ProFTPD daemons. > (I have since set the TimeGMT off in those two). It could be a ProFTPD issue, although I run ProFTPD, here, and was not able to reproduce the problem. One way to find out quickly is to re-enable the stock ftpd on one of the machines and retry your tests. If the problem goes away with a different server, it's a ProFTPD issue. > I can PUT a file from any server to another and the timestamp on the file > will match from the client to the server machine. > > When I GET a file, the file I GET has its timestamp set 4 hours > backwards. Hmm. That really reeks of time zone issues somewhere in the chain. Try simpler testing--the stock ftpd, rcp/scp, and see if you can obtain different results. So far, it's not obvious to *me* where the specific problem is, but further testing will help, and maybe someone else on the list has encountered this before. > Here are some clues: > > enterprise# date > Thu Oct 23 18:27:36 EDT 2003 > > excelsior# date > Thu Oct 23 18:27:03 EDT 2003 > > voyager# date > Thu Oct 23 18:27:34 EDT 2003 > > > I have a file on enterprise "ent_orig.txt" > > -rw-r--r-- 1 root grant 0 Oct 23 17:33 orig_ent.txt > > When I log in from excelsior, and GET it, the timestamp shows: > > -rw-r--r-- 1 grant wheel 0 Oct 23 13:33 orig_ent.txt > > Yet, when I PUT if (Loggin into excelsior FROM enterprise) it shows: > > -rw-r--r-- 1 grant wheel 0 Oct 23 18:30 orig_ent.txt > > (Note, of course, it really was 18:30 when I did this, so that stamp is OK) > > Any ideas? > > -Grant > > Grant W. Peel > Server Admin > grant@thenetnow.com > http://thenetnow.com > ----- Original Message ----- > From: "Ryan Thompson" > To: "Grant Peel" > Cc: > Sent: Thursday, October 23, 2003 6:09 PM > Subject: Re: Ftp changing times of files. > > > > Grant Peel wrote to freebsd-questions@freebsd.org: > > > > > Hello all, > > > > > > The default ftp client from one of my servers > > > > You mean /usr/bin/ftp? > > > > > , seems to be changing the time and datestamps of files it gets from > > > other servers. > > > > To what? From what? Which time zones? mtime? ctime? atime? > > > > > All my servers are set to the same time (within a minute) and set to > > > the same timezone (EDT | EST). > > > > Please send us a concrete example. (screen(1) or similar, from an actual > > session showing the problem). > > > > - Ryan > > > > -- > > Ryan Thompson > > > > SaskNow Technologies - http://www.sasknow.com > > 901-1st Avenue North - Saskatoon, SK - S7K 1Y4 > > > > Tel: 306-664-3600 Fax: 306-244-7037 Saskatoon > > Toll-Free: 877-727-5669 (877-SASKNOW) North America > > > > -- Ryan Thompson SaskNow Technologies - http://www.sasknow.com 901-1st Avenue North - Saskatoon, SK - S7K 1Y4 Tel: 306-664-3600 Fax: 306-244-7037 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America