[Samba] Samba to Windows 2003 READ errors

Darrel Barton darrel at lantera.com
Wed Jul 25 19:15:29 GMT 2007


I'm running Samba version 3.0.10-1.4E on Red Hat Enterprise Linux ES 
release 4 (Nahant) Kernel 2.6.9-5.ELsmp on an i686  and I'm trying to 
connect to a Windows 2003 Server (not a domain controller) as a shared file 
using EITHER ONE of the following command lines:

#smbmount //img1/docs /home/documents -o 
dmask=777,fmask=0444,gid=100,uid=501,username=documents,password=passd 

  -or- 

#mount -t cifs //img1/docs /home/documents -o 
dir_mode=0777,file_mode=0444,gid=100,uid=501,username=documents,password=passd 


In EITHER case the mount succeeds and I can CD to the directory and all the 
subdirectories underneath and LS each and every file with no 
problem.  Until I try to read, copy or move the file itself ... in which 
case I get

cp: 10000099.tif: read error: Permission denied

But I can actually log into the Win2003 system as that user and all my 
permissions on the directories are fine.

So I hit the net and the docs and the forums and everyone says that Windows 
2003 has a problem with digital signing.  Even Red Hat has an errata on it, 
saying
	Local Policies - Security Options - Microsoft network client - digitally 
sign communications (always) - DISABLED
	Local Policies - Security Options - Microsoft network client - digitally 
sign communications (if server agrees) - DISABLED
	Local Policies - Security Options - Microsoft network server - digitally 
sign communications (always) - DISABLED
	Local Policies - Security Options - Microsoft network server - digitally 
sign communications (if server agrees) - DISABLED

Well ... two problems
1) That Eratta talks about CONNECTION failing ... not read errors.
-and-
2) There AIN'T NO SUCH entry on my Windows 2003!!

Under administrative tools  -> local security policy --> Security settings 
->local policies -> security
I have "digitally sign client communications (always)" and the same with 
(when possible) and then two more for "server" communications.
Close enough, right?
So I change those & reboot
No difference
So I run regedit & search & change EVERY similar setting & reboot
No difference.

Since the mount works (either one) and all the directory traversals work 
just fine ... it will probably comes as no surprise to you that (A) no log 
file anywhere contains any relevant messages and (B) the DEBUG functions 
don't work because they MOUNT worked just fine.

Oh yeah ... and  smbclient  works JUST FINE until I find a file and attempt 
to GET that file ... then I get NT_STATUS_ACCESS_DENIED

In triple verification that Windows is functioning, I enabled all sorts of 
logging and find the following
1) The LOGIN of my "documents" is logged as success
2) My ACCESS of the directories from Linux is logged as success
3) The READ of the file "10000080.TIF - or whatever" is logged as SUCCESS 
by Windows ... yet PERMISSION DENIED by Linux

I'm sure it's a Windows problem (it usually is) ... but I'm wondering if 
anyone has seen THIS PARTICULAR color (error) before?



             


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.19/917 - Release Date: 7/25/2007 1:16 AM




More information about the samba mailing list