Support / KnowledgeBase

 
Search the KnowledgeBase Search

How do I fix my FTP timestamps?

  • Applies to: All (dv)

  • Difficulty: Easy

  • Time needed: 10 minutes

  • Tools needed: root, ssh, vi knowledge

 
  • Applies to: All (dv)
    • Difficulty: Medium
    • Time Needed: 10
    • Tools Required: SSH, root, vi knowledge

Overview

Symptom

The time zone is set correctly in Linux, but FTP reports incorrect timestamps. Closer inspection reveals that the FTP timestamps are set to GMT instead of following the correctly set timezone.

Requirements

Before you start, please have these handy:

Note: The authoritative source for this information can be found at the following link: http://proftpd.org/docs/directives/linked/config_ref_TimesGMT.html

READ ME FIRST

This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is outside the scope of support provided by (mt) Media Temple. Please take a moment to review the Statement of Support.

Instructions

  1. Connect to your server via SSH.
  2. Open up /etc/proftpd.conf with vi to edit:
    vi /etc/proftpd.conf
  3. Navigate to this section:
    <Global>
    DefaultRoot     ~  psacln
    AllowOverwrite     on
    </Global>
    
  4. Next, add TimesGMT off to the last line before </Global>, like so:
    <Global>
    DefaultRoot     ~  psacln
    AllowOverwrite     on
    TimesGMT           off
    </Global>
    
  5. Finally, restart xinetd:
    /etc/init.d/xinetd restart

Resources


User Comments

No visitor comments posted. Post a comment
Fields marked with an asterisk(*) are required. Comment on this article
Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue