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 To: Tom Quarendon 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: 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 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/