[97514] in RedHat Linux List
Re: smbfs and NT file mod. times don't match
daemon@ATHENA.MIT.EDU (Nikki Cook)
Tue Nov 3 13:51:12 1998
Date: Tue, 03 Nov 1998 13:51:08 -0500
To: redhat-list@redhat.com
From: Nikki Cook <sunny@mail.suntrix.com>
In-Reply-To: <Pine.LNX.3.95.981103094618.29225B-100000@jlc.cts.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Hi Jim,
I had a time problem as well, but we're running 5.1 and it required a
different solution, which worked for us...
I found this in Red Hat Linux Installation Support FAQ: System
Administration. Hope it helps.
9.13 More problems with time=20
Common Symptoms of Problem=20
I have all the latest updates installed, but my programs still get the
incorrect time.
Versions Affected by Problem=20
All
Probable Answer=20
If you have installed all the latest updates and you programs still get the
incorrect time, try checking the settings
in /etc/sysconfig/clock. They probably look something like this:
UTC=3Dtrue
ARC=3Dfalse
This means that Linux will assume that your BIOS clock is set to the UTC or
GMT timezone. More than likely,
the clock is set to your local timezone, and you need to change the UTC
line to be
UTC=3Dfalse
At 10:18 AM 11/3/98 -0800, you wrote:
>This explanation may be a bit long, sorry.
>
>I am having a problem with the file modification times in files created by
>Linux on an NT4.0 server using smbfs. I am in the Pacific Standard
>Timezone (-0800) and both my Linux machine and the NT server are set for
>it. When I create or save a file from Linux to NT, the time looks correct
>from Linux, but appears to NT clients to have been created 8 hours in the
>future:
>
>-rw-rw-r-- 1 jcunning users 5 Nov 3 09:52 testing <=3D=3D ls=
-l
>
>11/03/98 05:52p 5 testing <=3D=3D DOS dir=
output
>
>Similarly, if I create a file on NT on the NT filesystem, NT will report
>the modification time of the new file as the time it was created. Linux
>will see the file's modification time as now - 8 hours.
>
>I looked into this a bit, specifically at /usr/src/linux/fs/smbfs/proc.c,
>and found two time conversion routines, local2utc() and utc2local(), that
>reference the "sys_tz" structure in the kernel. I then wrote a small C
>program to call "gettimeofday()" and found that my system's timezone
>contains zero. I don't understand why the system timezone should contain
>zero and yet when I enter "date; date -u" I get the following:
>
> Tue Nov 3 10:06:54 PST 1998
> Tue Nov 3 18:06:54 UTC 1998
>
>What am I missing? FYI, I am running Redhat 4.2, kernel 2.0.35, CMOS
>clock is set to UTC, and /etc/localtime is a symlink to
>/usr/lib/zoneinfo/US/Pacific-New.
>
>FWIW, Samba does not have a similar problem. I.e., files created on the
>Linux ext2 filesystem by linux or by NT through samba have correct file
>modification times and look the same in either environment.
>
>TIA,
>Jim
>
>
>--=20
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com http://archive.redhat.com
> To unsubscribe: mail redhat-list-request@redhat.com with=20
> "unsubscribe" as the Subject.
>=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SunTrix Com Internet Services
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Daytona Beach,=
Florida
=A0=A0=A0=A0 PPP and Shell Accounts (904) 258-5434
=A0=A0=A0 WEB Design webdesign@mail.suntrix.com
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 http://www.suntrix.com
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 WEBBnet IRC Network
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 irc.webbnet.org | irc.us.webbnet.org
=A0=A0=A0=A0=A0=A0=A0ftp://ftp.suntrix.com | mail.suntrix.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=20
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.