From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11461 invoked by alias); 23 Apr 2012 11:54:07 -0000 Received: (qmail 11432 invoked by uid 22791); 23 Apr 2012 11:53:46 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Mon, 23 Apr 2012 11:53:33 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 72BDD2C2B24; Mon, 23 Apr 2012 13:53:31 +0200 (CEST) Date: Mon, 23 Apr 2012 11:54:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: cygwin 1.7.13-1: can't execute shell scripts on samba share Message-ID: <20120423115331.GD7097@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <1E3D6F97-F938-420C-A5F7-C6446EC27F32@intersystems.com> <1883CD3D-75CE-4289-A5F9-317DE2ED7F28@intersystems.com> <6BFA9AF2C7556E42AFF3F187ECAB07B802F9CFCB@bespdc01.mediaxim.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <6BFA9AF2C7556E42AFF3F187ECAB07B802F9CFCB@bespdc01.mediaxim.local> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-04/txt/msg00489.txt.bz2 On Apr 23 13:02, Michel Bardiaux wrote: > [snip] > > > lgiambro@lorien ~ > > $ cat len.sh > > #!/bin/sh > > echo it works > > And man sh states " --norc Do not read and execute the personal > initialization file ~/.bashrc if the > shell is interactive. This option is on by default if the > shell is invoked > as sh." > Which eliminates bashrc as a possible culprit. > > I have also tried the same as you did (len.sh on a samba share) and saw > the same problem. Then I saw that the len.sh got a (cygwin *and* linux) > mode of -rwxrw-r-- *without* doing any chmod. Then I saw that *every* > file I create on the samba share, gets the same mode! > > First things first, is there a workaround? Yes, chmod 777 len.sh *done > on linux* works. And it actually works too when done on cygwin. > > However, recreating len.sh on cygwin, then a chmod 700 len.sh again on > cygwin, does not work, again "./len.sh: Permission denied". But the mode > seen on the linux side is -rwx------. > > I have also tried deleting then recreating the file in cygwin, then > closing all cygwin processes and unmapping and remapping the samba > drive. No cigar. > > Then I tried cacls in various situations. It turns out that with mode > 777, cacls reveals "Everyone:F", but with mode 700 we get: > > len.sh F > (special access:) > Everyone:(special access:) > > And getfacl says: > > # file: len.sh > # owner: ???????? > # group: ???????? You could mount the samba share with "noacl", see http://cygwin.com/cygwin-ug-net/using.html#mount-table 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