Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15th August 2006, 01:00 AM
dcmbrown Offline
Registered User
 
Join Date: Sep 2005
Posts: 9
vsftpd always shows GMT time

When I ftp into my Fedora FC4 server, vsftpd _always_ shows times for files in GMT. Has this been fixed yet? I noticed this thread this afternoon:

http://www.fedoraforum.org/forum/arc...p/t-88286.html

It so far doesn't appear to be resolved or there doesn't appear to be an obvious solution.
My timezone is set correctly, I have use_localtime=YES set in the /etc/vsftpd/vsftpd.conf file.

vsftpd is run via xinetd, so I've also tried to use
env = "TZ=CST6CDT"

in the vsftpd config file as well.
Reply With Quote
  #2  
Old 29th August 2007, 11:18 PM
Inexorable Offline
Registered User
 
Join Date: Aug 2007
Posts: 2
I see nobody answered this. I think I can help. Are you sure it is run out of xinet.d? I think it's init.d by default, but if you're right, add the env line to /etc/xinet.d/vsftpd. If that doesn't exist, but you want it to run from xinet.d you can create it:

service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
nice = 10
env = TZ=America/Los_Angeles
}

or whatever zone. You'll need listen=NO in vsftpd.conf. Then "service xinetd restart".

If it's init.d, then add "export TZ=America/Los_Angeles" to /etc/init.d/vsftpd. What I really added was:

if [ -z "$TZ" -a -e /etc/sysconfig/clock ]; then
TZ=`cat /etc/sysconfig/clock | awk -F= '($1 ~ /ZONE/) {print $2}'`
TZ=`eval echo $TZ`
export TZ
fi

... just in case I change my timezone later. Then "service vsftpd restart". Of course, both of these depend on use_localtime=YES in /etc/vsftpd/vsftpd.conf. I hope this helps someone.
Reply With Quote
  #3  
Old 30th August 2007, 03:50 PM
dcmbrown Offline
Registered User
 
Join Date: Sep 2005
Posts: 9
Well I've since upgraded the affected servers to Fedora FC6 and this bug has been fixed but what I had ended up doing was creating an /etc directory in the chroot'd ftp users directories (those that cared about the time difference due to file synching) and copying the localtime file from etc to the ftp users directory and making it owned by root and read only by everyone. That solved the time difference problem. I hadn't thought of trying the TZ=America/Regina option although both that and the CST6CDT I tried are both under /usr/share/zoneinfo/ so I suspect that wouldn't have worked.
Reply With Quote
Reply

Tags
gmt, shows, time, vsftpd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vsftpd virtual shows all of filesystem Mr. Print Servers & Networking 4 18th January 2009 02:40 PM
vsftpd problem, time-out on ls deathkill Using Fedora 2 27th June 2008 11:27 AM
Gnome clock applet shows wrong time fara78 Using Fedora 2 29th July 2007 09:07 AM
vsftpd timestamp using current time instead of file time wshawn Servers & Networking 0 2nd November 2006 10:37 PM
banner shows time? Mess Using Fedora 4 18th June 2006 05:00 PM


Current GMT-time: 18:03 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat