Can't execute scripts from a samba share with 1.7
Jon TURNEY
jon.turney@dronecode.org.uk
Mon Aug 10 18:50:00 GMT 2009
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 t.sh test script fails in a directory on this mount
>>>> Jon@byron ~
>> $ ls -al t.sh
>> -rwxr-xr-x 1 Jon None 19 2009年08月06日 15:46 t.sh
>>>> Jon@byron ~
>> $ ./t.sh
>> -bash: ./t.sh: /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 ./t.sh
strace: error creating process \\necker\jon\t.sh, (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 ./t.sh' outputs the expected
'foo', but 'strace bash -c ./t.sh' fails with the same error (output
attached), which on reflection is I suppose expected...
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: puzzling-evidence.strace
URL: <http://cygwin.com/pipermail/cygwin/attachments/20090810/b3df8a3f/attachment.ksh>
-------------- next part --------------
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list