delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/28/17:48:41

X-Spam-Check-By: sourceware.org
Message-ID: <465B4E49.B94276B0@dessent.net>
Date: Mon, 28 May 2007 14:48:57 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: file permissions on vista
References: <465B4380 DOT 4080606 AT sophia DOT inria DOT fr>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
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

Arnaud Legout wrote:

> I have the latest version of cygwin installed
> CYGWIN_NT-6.0 cecile 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
> 
> When create a file or a folder in vista (using the explorer or a windows
> application),
> the file or folder is created without any right (like when a chmod 000
> is applied).
> 
> This is a problem when you do a rsync.
> 
> I can apply a
> chmod -R u+rwx *
> on the root folder, but this is not really clean.
> 
> Is it a known but of cygwin on vista, or is it a consequence
> of the new security model introduced in vista (that I am not sure I
> understand).
> In the later case, is there something to configure in order to solve
> this issue?

I can't reproduce this.  I right click and create a new Notepad file
foo.txt, it has the permissions:

$ ls -l foo.txt
-rwx------+ 1 Administrators None 0 May 28 14:40 foo.txt

brian AT vista /c/users/brian
$ getfacl foo.txt
# file: foo.txt
# owner: Administrators
# group: None
user::rwx
user:brian:rwx
group::---
group:SYSTEM:rwx
mask:rwx
other:---

This looks normal, I see the exact same behavior in Windows XP, except
the owner is my user instead of the Administrators group, but I think
there's a policy setting that controls this.

The permissions on a file created with native Windows methods should
inherit from the parent folder, following standard NTFS rules, so maybe
you need to look at what the containing folder's permissions are set to.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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