Find the answer to your Linux question:
Results 1 to 8 of 8
New install of Fedora Core 3 with all the latest updates and vsftpd 2.0.1-5. The problem - GMT is (partially) displayed instead of local time. use_localtime is set to YES ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2005
    Posts
    4

    vsftpd time problem


    New install of Fedora Core 3 with all the latest updates and vsftpd 2.0.1-5.

    The problem - GMT is (partially) displayed instead of local time.

    use_localtime is set to YES in /etc/vsftpd/vsftpd.conf. I've restarted many times.

    The time zone appears to be set correctly to EDT. I'm located in the
    Boston area in the United States.

    The log shows 2 lines of local time, followed by all GMT until the end
    of the session.

    Fri May 6 06:14:26 2005 [pid 4550] [anyaccount] OK LOGIN: Client
    "9.9.9.9"
    Fri May 6 06:14:26 2005 [pid 4552] [anyaccount] FTP response: Client
    "9.9.9.9", "230 Login successful."
    Fri May 6 10:14:26 2005 [pid 4552] [anyaccount] FTP command: Client
    "9.9.9.9", "SYST"
    Fri May 6 10:14:26 2005 [pid 4552] [anyaccount] FTP response: Client
    "9.9.9.9", "215 UNIX Type: L8"
    Fri May 6 10:14:26 2005 [pid 4552] [anyaccount] FTP command: Client
    "9.9.9.9", "FEAT"
    Fri May 6 10:14:26 2005 [pid 4552] [anyaccount] FTP response: Client
    "9.9.9.9", "211-Features:"
    etc,etc, all GMT

    Here's the vsftpd.conf, minus all the comments:

    anonymous_enable=NO
    use_localtime=YES
    local_enable=YES
    write_enable=YES
    local_umask=022
    dirmessage_enable=YES
    xferlog_enable=YES
    log_ftp_protocol=YES
    connect_from_port_20=YES
    chroot_local_user=YES
    pam_service_name=vsftpd
    userlist_enable=YES
    listen=YES

    The vsftpd.conf file is located in the /etc/vsftpd folder. I tried
    copying it to /etc just in case.

    vsftpd appears to be working very nicely. The only problem is the time
    issue.

    I've checked other logs (Apache logs, /var/log/messages) and don't see any problem.

    Any help will be greatly appreciated!

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    That's very odd...Perhaps you should reinstall vsftpd?

  3. #3
    Just Joined!
    Join Date
    May 2005
    Posts
    4
    I've uninstalled and reinstalled (using yum) several times. I've also tried several reboots.

  4. #4
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Maybe you should either:
    1)compile from source
    2)roll back to a slightly older version

  5. #5
    Just Joined!
    Join Date
    May 2005
    Posts
    4
    When I create an "etc" directory in an account folder, and copy the localtime file from /etc into it, the time issue goes away for that FTP account.

    I'm guessing I need to remove listen=YES and use xinetd.

    I'll try that over the weekend when the server is not used.

  6. #6
    Linux Enthusiast
    Join Date
    Jun 2002
    Location
    San Antonio
    Posts
    621
    This bug has been known about since around RH9 at least, when it was made standard on RedHat. The reason it happens is because the user is chrooted. If the user is not chrooted, the correct time is noted in xferlog. This is due to the fact that there is no /etc/localtime as you pointed out. The only way to really "fix" this is to recode it, so the timezone is read in before the chrooting action. This is best done and QAed by the developers. Chris notes he is very busy, but it may be useful to point this out to him at: chris at scary dot beasts dot org .

    Best,

    Samuel
    I respectfully decline the invitation to join your delusion.

  7. #7
    Just Joined!
    Join Date
    May 2005
    Posts
    4
    Thanks, Samuel.

    I just added an "etc" folder to every account (531 to be exact) and copied the localtime file to each one. Not a very elegant solution, but it works!

    The version I am using is not the most recent. I checked the changelog in the most recent version and didn't see a fix for this problem. Maybe the next release.

  8. #8
    Just Joined!
    Join Date
    Oct 2007
    Posts
    1

    Users without a home directory?

    Where do you place the etc folder with the localtime file if your user doesn't have a home directory?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •