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 Aug 10 17:42, Jon TURNEY wrote:
> On 06/08/2009 18:50, Nahor wrote:
>> Corinna Vinschen wrote:
>>> On Aug 5 13:40, Nahor wrote:
>>>> If I mount with "noacl", I get a slightly different error but still
>>>> no cigar:
>>>> $ ./
>>>> -bash: ./ /bin/sh: bad interpreter: Permission denied
>>>> $
>>> This only happens if your account doesn't have execute permissions for
>>> the interpreter, in this case /bin/sh. Is it possible that /bin/sh.exe
>>> has weird permission settings for some reason?
>> The permissions on the interpreter are OK.
>> $ ls -l /bin/sh
>> -rwxr-xr-x 1 nahor Administrators 472064 Jul 1 18:20 /bin/sh
>> $
>> For that matter, scripts running off the local disk run fine.
>> Looks like the same problem of inconsistent account ID, setting the
>> permissions to 755 or running as the domain user fix the "bad
>> interpreter" error.
> 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?


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

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