smbmount shows wrong dates

smbmount shows wrong dates

Post by hd.. » Tue, 05 Oct 1999 04:00:00



I have RedHat Linux 6.0 and smbmount 2.0.3 that comes with RedHat 6.0
CD.  When I use the following command to mount NT file system, all the
dates shows up with ls -l are randomly displayed from 1900 to 2005.

smbmount "\\\server\share" -U account%password -c 'mount /mnt -u 0 -i 0'

total 5
drwxr-xr-x   1 root     root          512 Dec 12  1927 Adm
drwxr-xr-x   1 root     root          512 Dec 16  1927 BD
drwxr-xr-x   1 root     root          512 Apr 24  1991 CSE
drwxr-xr-x   1 root     root          512 May 28  1998 Comm_Network
drwxr-xr-x   1 root     root          512 Dec 19  1927 Cust
drwxr-xr-x   1 root     root          512 Sep 12  1997 IT
drwxr-xr-x   1 root     root          512 Dec 25  1927 OD
drwxr-xr-x   1 root     root          512 Dec 28  1927 OM
drwxr-xr-x   1 root     root          512 Dec 30  1927 PM
drwxr-xr-x   1 root     root          512 Jan  1  1928 REENG
drwxr-xr-x   1 root     root          512 Jul 26  1912 Sup

Does anyone see the same problem with RedHat Linux 6.0 and know the fix
for this?
Thanks for your help.
Hien Doan

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

smbmount shows wrong dates

Post by Robert Glove » Tue, 05 Oct 1999 04:00:00



> I have RedHat Linux 6.0 and smbmount 2.0.3 that comes with RedHat 6.0
> CD.  When I use the following command to mount NT file system, all the
> dates shows up with ls -l are randomly displayed from 1900 to 2005.

> smbmount "\\\server\share" -U account%password -c 'mount /mnt -u 0 -i 0'

> total 5
> drwxr-xr-x   1 root     root          512 Dec 12  1927 Adm
> drwxr-xr-x   1 root     root          512 Dec 16  1927 BD
> drwxr-xr-x   1 root     root          512 Apr 24  1991 CSE
> drwxr-xr-x   1 root     root          512 May 28  1998 Comm_Network
> drwxr-xr-x   1 root     root          512 Dec 19  1927 Cust
> drwxr-xr-x   1 root     root          512 Sep 12  1997 IT
> drwxr-xr-x   1 root     root          512 Dec 25  1927 OD
> drwxr-xr-x   1 root     root          512 Dec 28  1927 OM
> drwxr-xr-x   1 root     root          512 Dec 30  1927 PM
> drwxr-xr-x   1 root     root          512 Jan  1  1928 REENG
> drwxr-xr-x   1 root     root          512 Jul 26  1912 Sup

> Does anyone see the same problem with RedHat Linux 6.0 and know the fix
> for this?
> Thanks for your help.
> Hien Doan

> Sent via Deja.com http://www.deja.com/
> Before you buy.

This happens because of a bug fix for Win95 mounts that has the undesired
side-effect of messing up NT date stamps.  It is a kernel configuration
option.  Just turn it off there & re-compile.

 
 
 

smbmount shows wrong dates

Post by Nothin » Tue, 05 Oct 1999 04:00:00



]I have RedHat Linux 6.0 and smbmount 2.0.3 that comes with RedHat 6.0
]CD.  When I use the following command to mount NT file system, all the
]dates shows up with ls -l are randomly displayed from 1900 to 2005.
]
]smbmount "\\\server\share" -U account%password -c 'mount /mnt -u 0 -i 0'

]total 5
]drwxr-xr-x   1 root     root          512 Dec 12  1927 Adm
]drwxr-xr-x   1 root     root          512 Dec 16  1927 BD
]drwxr-xr-x   1 root     root          512 Apr 24  1991 CSE
]drwxr-xr-x   1 root     root          512 May 28  1998 Comm_Network
]drwxr-xr-x   1 root     root          512 Dec 19  1927 Cust
]drwxr-xr-x   1 root     root          512 Sep 12  1997 IT
]drwxr-xr-x   1 root     root          512 Dec 25  1927 OD
]drwxr-xr-x   1 root     root          512 Dec 28  1927 OM
]drwxr-xr-x   1 root     root          512 Dec 30  1927 PM
]drwxr-xr-x   1 root     root          512 Jan  1  1928 REENG
]drwxr-xr-x   1 root     root          512 Jul 26  1912 Sup

]
]Does anyone see the same problem with RedHat Linux 6.0 and know the fix
]for this?
]Thanks for your help.
]Hien Doan

]
]
]Sent via Deja.com http://www.deja.com/
]Before you buy.
]
ah, think that this will explain alot.

Synopsis:

        Do NOT use the stock RedHat kernels from RedHat 6.0 if
you are using SMBFS with Windows NT, Windows 2000, or Windows 98.
These kernels were incorrectly compiled with a configuration
option, the Windows 95 bug work around, that will cause corruption
of timestamp information on shares mounted from any of those other
systems.

Details:

        I'm the maintainer of smbmount in the Samba package.
Lately I've noticed a significant increase in reports of a
specific, very peculiar, problem with smbfs where timestamps
of files are corrupted.  These occur on Windows NT, Windows
2000, and Windows 98 shares.  The problem occurs whenever
the Windows 95 Bug Workaround is enabled in kernel builds
and those kernels are then used to mount shares from
something other than Windows 95.

        Inspection of the kernel source packages on the
RedHat 6.0 source disk revealed that the stock x86 and
sparc kernels are all being built with this option enabled.
Since this is the first RedHat build with the 2.2.x kernels
and, subsequently, the first build with the Samba version of
smbmount, this problem is only just recently becoming
chronic.  Up until now, people wishing to use the 2.2.x
kernels with the newer smbfs module and the newer smbmount
would have to build their own.  Often, they would not
include this option and the problem would not occur.  Now,
with this option enabled in stock kernels, the complaint
level is rising.

] # grep  SMB_WIN95 *.config
] kernel-2.2-i386-BOOT.config:CONFIG_SMB_WIN95=y
] kernel-2.2-i386-smp.config:CONFIG_SMB_WIN95=y
] kernel-2.2-i386.config:CONFIG_SMB_WIN95=y
] kernel-2.2-i586-smp.config:CONFIG_SMB_WIN95=y
] kernel-2.2-i586.config:CONFIG_SMB_WIN95=y
] kernel-2.2-i686-smp.config:CONFIG_SMB_WIN95=y
] kernel-2.2-i686.config:CONFIG_SMB_WIN95=y
] kernel-2.2-sparc-smp.config:CONFIG_SMB_WIN95=y
] kernel-2.2-sparc.config:CONFIG_SMB_WIN95=y
] kernel-2.2-sparc64-smp.config:CONFIG_SMB_WIN95=y
] kernel-2.2-sparc64.config:CONFIG_SMB_WIN95=y

        The Windows 95 Bug Workaround forces "ON" some protocol
hacks to work around bugs in Windows 95.  The code for this hack
is in the kernel even if this option is disabled.  If the option
is disabled, the bug workaround is "OFF" by default but can be
enabled with a mount time option.  If the Windows 95 Bug Workaround
is enabled when the kernel is compiled, this code is forced "ON"
with no way to disable it.  This code is strictly for Windows 95
shares and causes havoc with Windows NT, Windows 2000, and Windows 98
shares.  Specifically, it causes the bytes in the file timestamps to
be reversed.  The results in timestamps which appear to be garbage.
Attempts to use timestamp dependent utilities (such as Make) result
in random acts of terrorism and errors.

        The Windows 95 Bug Workaround should be enabled in the
kernel build IF AND ONLY IF all of the shares which will be mounted
by smbfs are only and will only ever be from Windows 95 systems.
If there is any chance that a share from a Windows NT, Windows 2000,
or Windows 98 system may be mounted by smbfs, the Windows 95 Bug
Workaround option in the kernel build MUST NOT BE ENABLED!

Fix:

        Anyone using RedHat 6.0 with smbfs must recompile and reinstall
their kernels with the Windows 95 Bug Workaround disabled.  Hopefully,
RedHat will make kernel RPMs available shortly with the fix incorporated.

Disclaimer:

        This is a known problem in RedHat 6.0.  It may also be a problem
in other distributions.  I have not determined the extent of the problem
in other distributions and investigation is continuing.  If you are using
another distribution, other than RedHat 6.0, and are experiencing this
problem with their stock kernels, please contact me and them.

        This problem may also have been present with the SMBFS module
and smbmount program from the 2.0 kernels.  Since I do not maintain
that version of smbmount, I'm unaware if the problem existed in those
earlier versions or not.

 
 
 

1. System Clock keeps showing the wrong time/date


Next step: Install ntp, and sync your time against some nearby
servers.  It'll sync up any time you're connected, and should be quite
helpful.
--

http://cbbrowne.com/info/internet.html
Rules of the Evil Overlord #206. "When my Legions of Terror park their
vehicle  to do  reconnaissance on  foot,  they will  be instructed  to
employ The Club." <http://www.eviloverlord.com/>

2. bdconfig and /dev/bd.off

3. SMB mount of NT filesystem shows wildly wrong dates

4. 2.6 x86: How can I customize dtterm via Front Panel?

5. Date shows wrong timezone (zoneinfo set right!)

6. Onstream DI30 Tapedrive broken?

7. System date and file dates not showing in same time zone

8. Dell Latitude XP 475C/4100CX ?

9. ls on smbmount drive shows only partial list

10. smbmount: ls does not show files when there are many

11. 'ls' on smbmount drive shows only 65 files max

12. smbmount file dates screwed up

13. smbmount + cp -r mangles file dates