delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 28 Jul 2008 12:19:51 +0100 (BST) |
From: | Hugh Sasse <hgs AT dmu DOT ac DOT uk> |
To: | Tom Quarendon <tom DOT quarendon AT teamwpc DOT co DOT uk> |
cc: | cygwin AT cygwin DOT 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 DOT 70304 AT teamwpc DOT co DOT uk> <4889ECCB DOT 2030805 AT cygwin DOT com> <488DA96E DOT 5060101 AT teamwpc DOT co DOT uk> |
User-Agent: | Alpine 1.10 (LFD 962 2008-03-14) |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
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 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |