Timestamps, VSFTP, Samba & files edited on a server
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.