delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/05/11:36:15

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 5 Aug 2010 17:35:59 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: NTFS network drives in cygwin 1.7.5
Message-ID: <20100805153559.GH4610@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <AANLkTi=oXsD75axVzu5yc_52mQVBErxxMkwfGt98M64M AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <AANLkTi=oXsD75axVzu5yc_52mQVBErxxMkwfGt98M64M@mail.gmail.com>
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 Aug  5 11:26, Gary Steele wrote:
> Dear cygwin mailing list,
> 
> I recently starting using cygwin 1.7.5, and I appear to be having
> problems with file permissions on network drives.
> 
> My computer (windows XP) is part of an NT domain, to which I am logged
> in. I am using the passwd and group files that were automatically
> generated at install.
> 
> On the local drives, the file permissions work fine:
> 
> $ ls -ld .
> drwxr-xr-x+ 1 gsteele Domain Users 0 2010-08-05 11:18 ./
> 
> However, on the network drives, they are all clobbered:
> 
> $ ls -ld /cygdrive/k/ns/qt/nanotubes/data
> d---------+ 1 gsteele Domain Users 0 2010-07-07 14:22
> /cygdrive/k/ns/qt/nanotubes/data

They are not clobbered, they are now actually showing the correct POSIX
permission bits based on the file ACL by default.  In Cygwin 1.5 the
default was not to use the ACLs on network drives  and to fake the
POSIX permissions (CYGWIN=nontsec).  If you want to know why the ACL
results in d---------+ permissions, I suggest to take a closer look
using getfacl.

I strongly suggest to read the new and improved 1.7 User's Guide,
especially stuff like

http://cygwin.com/cygwin-ug-net/highlights.html#ov-hi-files
http://cygwin.com/cygwin-ug-net/ov-new1.7.html
http://cygwin.com/cygwin-ug-net/using.html#mount-table
http://cygwin.com/cygwin-ug-net/using-cygwinenv.html


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