delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/25/04:07:59

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 25 Mar 2010 10:07:48 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: File permissions on samba network share
Message-ID: <20100325090748.GG7718@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <loom DOT 20100325T074932-533 AT post DOT gmane DOT org> <20100325085246 DOT GE7718 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20100325085246.GE7718@calimero.vinschen.de>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Mar 25 09:52, Corinna Vinschen wrote:
> On Mar 25 06:50, Chris wrote:
> > 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?
> 
> http://cygwin.com/cygwin-ug-net/using.html#mount-table
> 
> > Is there a way of preserving the original permissions and still fake the
> > user/group info as with "noacl"? 
> 
> No.  Since you're not using AD accounts and no winbind, the ACL returned
> by Samba reflect the UNIX user and UNIX group the file is owned by.
> I don't think there's a reliable way to convert the SIDs in the ACL to
> the current user and primary group, except for another mount flag.

On second thought, it would still be a lot of work to get this working
right.  The mount flag alone doesn't tell us which UNIX SID the Windows
user SID is mapped to.  So you would need to set up some mapping file
which Cygwin would have to read at startup, or the passwd file would
need YA special case for the pw_gecos field.  Ick.


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

- Raw text -


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