Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 28 Feb 2003 01:04:39 -0500
From: "Pierre A. Humblet" <pierre.humblet@ieee.org>
To: cygwin@cygwin.com
Subject: Re: Permission bits
Message-ID: <20030228060439.GA48294687@hpn5170x>
Mail-Followup-To: "Pierre A. Humblet" <pierre.humblet@ieee.org>,
	cygwin@cygwin.com
References: <3E5E9DDB.8000103@Salira.com> <20030228022129.GA22164@redhat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20030228022129.GA22164@redhat.com>
User-Agent: Mutt/1.4i

On Thu, Feb 27, 2003 at 09:21:29PM -0500, Christopher Faylor wrote:
> On Thu, Feb 27, 2003 at 03:23:07PM -0800, Andrew DeFaria wrote:
> >I really wish I understood Windows security and ACLs, etc and how they 
> >map or don't map to Cygwin's Posix file permissions but alas I don't. 
> >Can somebody explain to me the following:
> >
> >On my Windows XP box at home I can easily manipulate permissions:
> >
> >[Home XP]: touch file
> >[Home XP]: ls -l file
> >-rw-rw-r--    1 Andrew   DeFaria         0 Feb 27 15:13 file
> >[Home XP]: chmod 777 file
> >[Home XP]: ls -l file
> >-rwxrwxrwx    1 Andrew   DeFaria         0 Feb 27 15:13 file*
> >
> >However on my work XP box:
> >
> >[Work XP]: touch file
> >[Work XP]: ls -l file
> >-rw-r--r--    1 adefaria Domain U        0 Feb 27 15:18 file
> >[Work XP]: chmod 777 file
> >[Work XP]: ls -l file
> >-rw-r--r--    1 adefaria Domain U        0 Feb 27 15:18 file
> >
> >Now I'm wondering why I can chmod here?!? The only difference that I see 
> >is that at home my home directory is simply on my C drive and I'm not in 
> >a domain while at work my home directory is mapped from a server to my H 
> >drive. I know that this oddity is happening because Windows permissions 
> >are not equal to Posix permissions and I've tried everything I know how 
> >to do to get Windows to allow me to open up the permissions from a Posix 
> >perspective. Anybody know how I could get it so that a chmod 666 file 
> >will actually yield me a rw-rw-rw mask?
> 
> ntsec only works on NTFS drives.

and smbntsec turns it on on network drives.

Pierre

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

