delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,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: | Re: File permissions on samba network share |
Date: | Thu, 25 Mar 2010 22:38:40 +0000 (UTC) |
Lines: | 46 |
Message-ID: | <loom.20100325T231927-996@post.gmane.org> |
References: | <loom DOT 20100325T074932-533 AT post DOT gmane DOT org> <20100325085246 DOT GE7718 AT calimero DOT vinschen DOT de> <20100325090748 DOT GG7718 AT calimero DOT vinschen DOT de> |
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 |
Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes: > > > ... > > > 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 > Sorry I forgot to mention that the permissions on the Linux machine running the Samba server are more similar to the ones when I mount the network drive without the "noacl" option in Cygwin. This is the ls line from the Linux machine: -rwxrw---- 1 chris tech 1014 Dec 15 14:16 amssetup On Cygwin without "noacl": -rwxrw---- 1 ???????? ???????? 1014 2009-12-15 14:16 amssetup On Cygwin with "noacl" -rw-r--r-- 1 chris None 1014 2009-12-15 14:16 amssetup So apart from the ???????? entries, I think going without the "noacl" option would be the way to go. But I will give it a try with "noacl" and see if it has any undesired side-effects. Thanks 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |