X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.6 required=5.0 	tests=BAYES_00,DEAR_WINNER,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Chris <cgelinek@radlogic.com.au>
Subject: File permissions on samba network share
Date: Thu, 25 Mar 2010 06:50:28 +0000 (UTC)
Lines: 27
Message-ID: <loom.20100325T074932-533@post.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Dear fellow Cygwinners,

I use Cygwin to work on a samba network drive and am unable to execute bash
scripts from there because "bash: ./amssetup: Permission denied". I think this
is due to the missing owner/group info:

$ ls -l amssetup
-rwxrw---- 1 ???????? ???????? 1014 2009-12-15 14:16 amssetup

If I mount this network drive using the "noacl" option, it looks like this:

$ ls -l amssetup
-rw-r--r-- 1 chris None 1014 2009-12-15 14:16 amssetup

This lets the script execute, but I am a little bit worried about the other
permissions, "-rw-r--r--" instead of "-rwxrw----".

Why are the permissions different?
Is there a way of preserving the original permissions and still fake the
user/group info as with "noacl"? 
Or is it safe to use the "noacl" mount? 

Maybe there is another, cleaner way of accessing the samba share I have
missed... I am still new to the Unix/Linux/Cygwin world =)

Cheers
Chris


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

