This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can't execute scripts from a samba share with 1.7

On 10/08/2009 18:04, Corinna Vinschen wrote:
On Aug 10 17:42, Jon TURNEY wrote:
I also have this problem in it's second (noacl) form. With this mount

//necker/jon on /home/jon type smbfs (binary,exec,noacl,user)

running the test script fails in a directory on this mount

Jon@byron ~
$ ls -al
-rwxr-xr-x 1 Jon None 19 2009-08-06 15:46

Jon@byron ~
$ ./
-bash: ./ /bin/sh: bad interpreter: Permission denied

but works fine in a different directory

This is really strange. The bad interpreter message means that bash could not start /bin/sh. I can only reproduce this effect if I chmod -x /bin/sh. Did you create an strace and tried to see what happens?

Jon@byron ~ $ strace ./ strace: error creating process \\necker\jon\, (error 193)

but I thought this was expected (strace not being a cygwin program), as it fails the same way in a directory which is on a different (local) mount.

Hmm... after a bit more fiddling, 'strace bash ./' outputs the expected 'foo', but 'strace bash -c ./' fails with the same error (output attached), which on reflection is I suppose expected...

Attachment: puzzling-evidence.strace
Description: Text document

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]