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  5 13:40, Nahor wrote:
> Hi,
> I have a samba share mounted in cygwin with the following fstab entry:
> //server/nahor /home/nahor smbfs binary,user,exec,acl,posix=0,cygexec 0 0
> Permissions are set correctly:
> $ ls -al
> -rwxr--r-- 1 nahor Domain Users      19 Aug  5 11:46
> My test script doesn't do much:
> $ cat ./
> #!/bin/sh
> echo foo
> $
> But when I execute:
> $ ./
> -bash: ./ Permission denied
> $

Cygwin 1.5.x and earlier versions of Cygwin 1.7.0 didn't check execute
permissions when trying to start a shell script.  Later versions of
1.7.0 do check on filesystems mounted with the "acl" option.  Apparently
the check fails.  Is there a chance that there are two different
accounts called nahor?

> 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?


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]