When we use the ftp command or ftp client to connect to a Linux server, the files' modification time shown is different from the time shown in a telnet session.

For example, I have some *.dat files in /home/abc/ and the last modification time shown in the ftp command or client is 19:30. But when I do an ls -l in my telnet session, it shows 03:30. The last modification time shown in the telnet session is correct.

Is there a setting that has gone wrong?

link|improve this question

25% accept rate
ftp? telnet?? 80's called, they want their protocols back. Are you talking about some embedded system or should you learn about sftp and ssh...? :-) – Janne Pikkarainen Nov 3 '10 at 3:50
unfortunately we are still stuck in the 80's :P – Alvin Sim Nov 3 '10 at 10:24
feedback

3 Answers

I'm not positive about this, but perhaps is the timezone on your client set differently than on the server? That could cause your ftp client to display the time with an incorrect offset.

link|improve this answer
we tried connecting via ftp to that server on two different machines, which has the same timezone set as the server, and still the time is show differently that the one in the telnet session. – Alvin Sim Nov 4 '10 at 8:56
feedback

Are you GMT+8, or is the time offset seemingly meaningless?

link|improve this answer
yes, my time zone here is GMT +8 – Alvin Sim Nov 6 '10 at 13:47
feedback

I'd a similar problem with my FTP long ago, But both servers where on the same GMT zone... The problem was that the Software itself has a "GMT" configuration properties. ¿Have u checked all the possible configuration of the service and the server?

check NTP to, maybe he's updating after u manually put the right time.

link|improve this answer
then I have to check the time setting on the machine which connects to the server. We actually run a bat file which automatically connects to the server via ftp and mgets some files – Alvin Sim Nov 6 '10 at 13:48
¿What client are u using? Standard windows? Standard Linux? I recomend WinScp, has scripting in "batch" file, in console, can delete afeter transfer... He has the option or preserving TimeStamp... maybe that works for u. winscp.net/eng/docs/faq_timestamp – Carlos Nov 8 '10 at 8:20
in our bat file, it actually calls WinScp to connect to the server to get files and then move them to another directory.. i'll have to lookup the preserving TimeStamp in WinScp.. thanks – Alvin Sim Nov 8 '10 at 15:34
Please ignore my previous comment.. this has nothing to do with WinScp.. just verified with my colleagues.. my bad.. – Alvin Sim Nov 9 '10 at 5:12
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.