delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/25/03:49:37

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com
From: Chris <cgelinek AT radlogic DOT com DOT 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
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019