Cygwin + Samba = Permission Denied

Ryan T. Sammartino ryants@shaw.ca
Fri Apr 12 16:08:00 GMT 2002


Turning to the mailing list as a last resort...
The problem:
cygwin-bash$ cp foo.txt //sambamachine/share/
cp: cannot create regular file `//sambamachine/share/foo.txt': Permission denied
various unsuccessful mailing list and Google searches turned up only
this, from Corinna:
http://sources.redhat.com/ml/cygwin/2001-04/msg01210.html
in which she advises getting the MAHINE.SID and setting up your
Cygwin /etc/passwd to match etc etc. Unfortunately, none of that
worked.
An strace reveals:
 65 285333 [main] cp 1088 fhandler_base::open: (\\sambamachine\share\foo.txt, 0x201)
 127 285460 [main] cp 1088 alloc_sd: owner: ryans [2136]
 828 286288 [main] cp 1088 alloc_sd: ACL-Size: 100
 74 286362 [main] cp 1088 alloc_sd: Created SD-Size: 176
 1115 287477 [main] cp 1088 fhandler_base::open: 0xFFFFFFFF = CreateFileA (\\sambamachine\share\foo.txt, 0x40000000, 0x7, 0x241F644, 0x4, 0x80, 0)
 119 287596 [main] cp 1088 seterrno_from_win_error: /cygnus/netrel/src/cygwin-1.3.10-1/winsup/cygwin/fhandler.cc:412 errno 5
 53 287649 [main] cp 1088 geterrno_from_win_error: windows error 5 == errno 13
windows error 5 == errno 13 == "Access denied".
Interestingly, on the samba machine, foo.txt IS created, but 0 length.
If I do *another* cp foo.txt //.... then it succeeds.
In cmd.exe, "copy foo.txt \\sambamachine\share\foo.txt" works fine, so I
know my samba passwords etc. are all good.
Any help appreciated.
System info:
Samba machine:
samba 2.2.3a running on Linux kernel 2.4.18
Cygwin machine:
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Apr 12 15:32:35 2002
Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2
...
CYGWIN = `ntsec tty'
...
 Cygwin DLL version info:
 DLL version: 1.3.10
 DLL epoch: 19
 DLL bad signal mask: 19005
 DLL old termios: 5
 DLL malloc env: 28
 API major: 0
 API minor: 51
 Shared data: 3
 DLL identifier: cygwin1
 Mount registry: 2
 Cygnus registry name: Cygnus Solutions
 Cygwin registry name: Cygwin
 Program options name: Program Options
 Cygwin mount registry name: mounts v2
 Cygdrive flags: cygdrive flags
 Cygdrive prefix: cygdrive prefix
 Cygdrive default prefix:
 Build date: Mon Feb 25 11:14:34 EST 2002
 Shared id: cygwin1S3
If you need any more info, don't hesitate to ask.
-- 
Ryan T. Sammartino
http://members.shaw.ca/ryants/
Avoid reality at all costs.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /