X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 25 Mar 2010 09:52:46 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: File permissions on samba network share Message-ID: <20100325085246.GE7718@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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. > Or is it safe to use the "noacl" mount? It's safe, usually. 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