LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2008, 07:37 PM   #1
dsackett
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
Timestamps, VSFTP, Samba & files edited on a server


This has to do with coordination between external workers FTPing files, which are then edited on the server in the local network. We're all in Pacific time, and as soon as the file is edited on the server and saved, its timestamp is shifted 8 hours later for FTP clients & Windows users looking at the Samba share. Yet when I shell in & look at the dates, they display the current & correct time.

Here's what happens: anyone puts a file on the server at 11:05. Someone in the local network edits and saves that file five minutes later and its timestamp shows to all FTP clients and Samba shares as 19:10. My shell into the same directory shows a timestamp correctly as 11:10.

I found a previous post & tried including use_localtime=YES in /etc/vsftpd/vsftpd.conf & restarting, but that had no effect.

It's making it confusing to coordinate. Any ideas for a newbie? Thanks.
 
Old 11-21-2008, 08:05 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Why use times at all?

Not sure how to fix the software issue you apparently have with VSFTPD / samba, but how about using version numbers?

I. e. if anybody edits the file they just increase the file number. A file that is newly ftp'ed in is numbered 0, a file that has been edited in the local intranet is numbered 1...

Or you can try CVS - its free and works well. It allows users to check out files, and then check them back in - when they check back in (cvs "commit" command) the file automatically gets an incremented version number?
 
Old 11-21-2008, 03:21 PM   #3
dsackett
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Stephan

Thanks Stefan, (sorry I goofed your name in the title!)

In essence manual versioning with a file name is what the journalists who use this system do now.

It's really just an annoyance for a couple specific use-cases. For instance, a writer's out on the road and puts up a copy of his file on the server, comes into the office, edits the file on the server, then works from home. Looking at the server version of the file and the copy it on his laptop, he has to stop and think because the server file's timestamp is odd. When the writer's on a deadline, that extra step introduces frustration, it being one extra thing to think about.

I'll look into CVS to see if formal versioning's a good fit for non-technical people. Might be nice for them to have a history of changes.
 
Old 11-24-2008, 01:10 PM   #4
salter
Member
 
Registered: Oct 2008
Posts: 100

Rep: Reputation: 15
I assume that all FTP-clients and Samba share viewing with the shifted timestamp are on Windows PC's. Maybe this is just another 'smart' Windows feature with unintended results.

Do Linux-based FTP-clients and samba share viewers also have this time shift anomaly?

Last edited by Tinkster; 10-30-2010 at 05:09 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
integrate Samba PDC & RHDS &DNS &DHCP on one RHEL 5 server marcbachman Linux - Server 1 07-03-2008 01:00 PM
integrate Samba PDC & RHDS &DNS &DHCP on one RHEL 5 server marcbachman Linux - Server 0 07-03-2008 10:49 AM
Red Hat - VSFTP Server - release of large files to the file store houmb17 Linux - General 4 02-29-2008 05:02 AM
edited files wont update in Apache cashton2k Linux - Newbie 1 01-13-2006 09:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration