delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/28/14:16:50

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <488E0CE9.80708@cygwin.com>
Date: Mon, 28 Jul 2008 14:16:09 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080723 Remi/2.0.0.16-1.fc5.remi Lightning/0.8 Thunderbird/2.0.0.16 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Problems with file permissions and cp when running on Vista
References: <4889B696 DOT 70304 AT teamwpc DOT co DOT uk> <4889ECCB DOT 2030805 AT cygwin DOT com> <488DA96E DOT 5060101 AT teamwpc DOT co DOT uk>
In-Reply-To: <488DA96E.5060101@teamwpc.co.uk>
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

Tom Quarendon wrote:
> Larry Hall (Cygwin) wrote:
>> I'd start at the source.  Give yourself POSIX-style access to the files
>> to start with.  'cp' will preserve that access.  'cp' and many other
>> utilities don't take ACL permissions into account.  They are silently
>> ignored.  For whatever reason, it looks like your source file has no
>> POSIX permissions for user, group, and other.  Fix that with 'chmod'
>> and I think you'll have solved your problem.
>>
> 
> I struggle to give myself posix style permissions.
> I have a file README.txt in the root of my build source tree:
> $ getfacl README.txt
> # file: README.txt
> # owner: Tom
> # group: None
> user::---
> group::---
> group:SYSTEM:rwx
> group:Administrators:rwx
> group:Users:r-x
> mask:rwx
> other:---
> 
> If I then do chmod --
> $ chmod 755 README.txt
> chmod: changing permissions of `README.txt': Permission denied
> 
> I can't modify the file with VI, but I can CAT it, so cygwin thinks I've 
> got read access to the file somehow. Copy the file and I get no 
> permissions at all.
> 
> I do have write access to the file though as far as windows is 
> concerned. If I look at the security properties of the file from Windows 
> Explorer it looks as though I'm getting write permission on the file 
> because I'm a member of "Authenticated Users" and that has write access. 
> "Authenticated Users" doesn't appear in the output from getfacl. Maybe 
> that's my issue.
> 
> So I'm not sure how I set myself up with correct posix permissions on 
> this file so that CP will work.

If suggestions others have made already don't help, I'd recommend falling
back to <http://cygwin.com/problems.html> if you need more help from this
list.  Right now, I'm not really sure what file-system you're working with
and the tools in use.  The 'cygcheck' output that the link above recommends
*attaching* to problem reports will help clarify some of these questions.
I'd also like to see the output of 'type -a cat vi chmod'.  In addition, it
would be helpful to know what directory you are in.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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