X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 6 Aug 2009 16:20:10 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Can't execute scripts from a samba share with 1.7 Message-ID: <20090806142010.GE3204@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-02-20) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 t.sh > > My test script doesn't do much: > $ cat ./t.sh > #!/bin/sh > echo foo > $ > > But when I execute: > $ ./t.sh > -bash: ./t.sh: 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: > $ ./t.sh > -bash: ./t.sh: /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 -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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