Re: Time Differences



---------- Original Message -----------
From: Cameron Simpson <cs@xxxxxxxxxx>
To: General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>
Sent: Thu, 21 Jun 2007 17:44:40 +1000
Subject: Re: Time Differences

On 20Jun2007 14:22, Glenn <glenn@xxxxxxxxxxxxxx> wrote:
| I'm trying to figure out why different applications display
different times | on my fully-patched RHEL 4 server. Assume the
time at the console is 10:00. | If I log in remotely using PuTTy,
the date command shows the time is 10:00. | If I create a text file,
it also shows it was created at 10:00. If I connect | via FTP
using the same user name and list the text file, the creation time |
shows 15:00. In fact, all the file times are five hours later in
the FTP | window than they are in the PuTTy window. There is
another application, a | print server, that shows all times an hour
different from the console time. | Any idea why the differences, or
how to fix them? Thanks. -Glenn.

Your FTP server is not running in your personal default local time.

The underlying system (kernel and on-disc filesystem structures) record
time in seconds since midnight 01jan1970 GMT, and the default time
rendering converts to your local timezone for display purposes.

This is controlled by an envionment variable $TZ on a per-process
basis, and otherwise by a system file with a default is $TZ is not specially
set.

Probably the login process sets $TZ for you and the system default is
not set up.

Try running the system-config-time command from a root shell.
--
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

So the master hit the novice upside the head with the back of his hand.
"Why did you do that!?" "I do not want to have to learn another editor."
And the student was enlightened. - Larry Colen <lrc@xxxxxxxxxx>


Thanks for the ideas! I had already configured the system time, and it turns
out that the print server problem affected only one user, indicating a
problem with the time on the user's PC. This narrowed it down to the FTP
server, and I discovered that vsftpd defaults to GMT. I corrected this by
adding "use_localtim=YES" at the bottom of the config
file, /etc/vsftpd/vsftpd.conf , and restarting vsftpd. Thanks again. -G.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Help with IPFW + NATD + Passive FTP
    ... passive FTP connections through IPFW with NATD enabled. ... $cmd 005 allow all from any to any via dc0 ... # Interface facing Public internet ... # Allow out access to my ISP's Domain name server. ...
    (freebsd-questions)
  • RE: Client Computers cannot upload or download from Remote FTP ser
    ... SBS External NIC - Cannot FTP From this server ... SBS Internal NIC ... FTP server is Checked in Routing and Remote Access - Internet Connection - ...
    (microsoft.public.windows.server.sbs)
  • Re: FTP PUT with Store Unique
    ... The best list for topics related to the Communications Server IP ... command or vice versa. ... Instructs the FTP client not to include a name with the STOU ... -- If NONAME is in effect, no name string specifying a foreign_file value follows ...
    (bit.listserv.ibm-main)
  • RE: Client Computers cannot upload or download from Remote FTP ser
    ... Only FTP via the MS DOS FTP Client ... The server that works is a member of the SBS's Domain, BUT as I indicated, ... the router, not the SBS server. ... The client event log has nothing related logged. ...
    (microsoft.public.windows.server.sbs)
  • Re: IIS 6.0 FTP
    ... That's the point I'm making--you are testing the wrong server. ... your FTP server is ftp.kilduff.com. ... than IIS? ... I understand your have the order entry program, ...
    (microsoft.public.inetserver.iis.ftp)