Penguin

Differences between version 30 and predecessor to the previous major change of SambaNotes.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 30 Last edited on Thursday, May 18, 2006 6:32:36 pm by JohnMcPherson Revert
Older page: version 29 Last edited on Thursday, April 27, 2006 12:02:16 pm by CraigBox Revert
@@ -75,7 +75,21 @@
 From Jeremy Allison, Samba developer: ''"Windows does a sync by creating a new file with a temporary name, then sets an ACL on it that matches the current one (but seems to add write access for the current user, not just the owner). This must succeed else the sync will fail. Then it sets the DOS attributes, again this must succeed or the sync will fail. Under POSIX we encode the attributes in the file permissions and these can only be changed by the owner, unless the "dos filemode" parameter is set."'' 
  
 !How to fix it 
 Upgrade to at least Samba 3.0.0. Ensure that smbd is compiled with ACL support (the Debian packages work fine out of the box), and running on a filesystem with [POSIX] AccessControlLists. Then you also need to set the parameter "dos filemode = yes" for the share. You don't need the acl package installed, but you probably need libacl. 
+  
+  
+!!File copies fail with "<tt>smb_proc_readX_data: offset is larger than SMB_READX_MAX_PAD or negative!</tt>"  
+When coping a file from a windows server's share that is locally mounted with <tt>smbmount</tt> the copy fails with an I/O error and the following is in syslog:  
+<verbatim>  
+smb_proc_readX_data: offset is larger than SMB_READX_MAX_PAD or negative!  
+smb_proc_readX_data: -59 > 64 || -59 < 0  
+</verbatim>  
+This only seems to happen with the <tt>kernel-image-2.6.8</tt> package in [Debian] Sarge. The error doesn't occur if you:  
+* use __smbclient__ interactively;  
+* mount the remote share as type <tt>cifs</tt> instead of type <tt>smbfs</tt>; or  
+* use a vanilla kernel or a backport of a later kernel that is packaged for debian.  
+  
+There is a [debian bug report|http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=289690] on this.  
  
 ---- 
 CategoryInteroperability