Linux - Vsftpd client shows different file modification time, Ftp command shows GMT
Vsftpd client shows different file modification timeWhen I am going to put a file in a server ftp client is showing in GMT while sytem clock is showing IST. 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.
1. Log in as a non-root user
Find which ftpd it is runnning. For this server it is using vsftpd
$ ps -ef | grep ftpd
2. Make a copy of the configuration file.
3. Use an editor to edit the vsftpd configuration file.
$ vim /etc/vsftpd/vsftpd.conf
4. Add the option use_localtime and set the value to YES. The default value is NO
5. Restart the ftpd service
$ /sbin/service vsftpd restart $ /sbin/service vsftpd status
6. Retry login using ftp and check the file timestamp.
The topic on Linux - Vsftpd client shows different file modification time is posted by - Maha
Hope you have enjoyed, Linux - Vsftpd client shows different file modification timeThanks for your time