X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 28 Jul 2008 12:19:51 +0100 (BST)
From: Hugh Sasse <hgs@dmu.ac.uk>
To: Tom Quarendon <tom.quarendon@teamwpc.co.uk>
cc: cygwin@cygwin.com
Subject: Re: Problems with file permissions and cp when running on Vista
In-Reply-To: <488DA96E.5060101@teamwpc.co.uk>
Message-ID: <alpine.LFD.1.10.0807281215250.5782@trueman.cs.cse.dmu.ac.uk>
References: <4889B696.70304@teamwpc.co.uk> <4889ECCB.2030805@cygwin.com> <488DA96E.5060101@teamwpc.co.uk>
User-Agent: Alpine 1.10 (LFD 962 2008-03-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com



On Mon, 28 Jul 2008, 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
>
When I had that on Vista, I found running the Cygwin window as
administrator allowed me to chmod stuff.  I had to chmod the whole
of /usr to something more useful. [Just in case you need it: right
click the icon, then "run as administrator" is near the top of the
menu. BYKT, I expect]

         HTH
         Hugh

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

