2017-01-21 08:36 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004300CentOS-5kernelpublic2010-05-05 16:53
Product Version5.4 
Target VersionFixed in Version 
Summary0004300: CIFS mount allows remote Windows server to move/remove files during write
DescriptionWhile copying a file across a cifs mount the remote server can move/remove the file.

Machine 1:

# cat /etc/issue
CentOS release 5.4 (Final)
Kernel \r on an \m

# uname -a
Linux machine1 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:12:36 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

# rpm -qa |grep samba

This machine can properly mount rw to a remote Windows Server 2008 R2 share and copy/remove/change perms, etc any file. However an automated application on the remote server can remove/move a file during a copy, and any permission/ownership option fails with a "file not available" error.

Machine 2

# cat /etc/issue
Red Hat Enterprise Linux WS release 4 (Nahant Update 8)
Kernel \r on an \m

# uname -a
Linux machine2 2.6.9-89.0.23.ELsmp #1 SMP Fri Mar 5 17:56:21 EST 2010 i686 i686 i386 GNU/Linux

# rpm -qa |grep samba

This machine can properly mount rw to the same remote Windows Server 2008 R2 share and copy/remove/etc files. However, an application on that same remote server can not remove/move a file during a copy, and the copy and any permission/ownership options work 100% of the time.

I cannot easily tell if this issue is with samba-client or with the cifs.ko kernel module. But since the EL4 box always works, I suspect cifs.ko which is part of the kernel RPM.

# rpm -qf /lib/modules/2.6.18-164.6.1.el5/kernel/fs/cifs/cifs.ko
TagsNo tags attached.
Attached Files




toracat (manager)

If you suspect that cifs.ko is involved, the best strategy would be to take this up with upstream (samba developers). I suggest this samba mailing list: https://lists.samba.org/mailman/listinfo/linux-cifs-client . Jeff Layton of Red Hat has been quite actively working on the development of cifs.

-Issue History
Date Modified Username Field Change
2010-05-05 16:32 stvnfnly New Issue
2010-05-05 16:53 toracat Note Added: 0011217
+Issue History