X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-VirusChecked: Checked X-Env-Sender: tom DOT quarendon AT teamwpc DOT co DOT uk X-Msg-Ref: server-12.tower-195.messagelabs.com!1217229991!5219080!1 X-StarScan-Version: 5.5.12.14.2; banners=teamwpc.co.uk,-,- Message-ID: <488D7481.2030104@teamwpc.co.uk> Date: Mon, 28 Jul 2008 08:25:53 +0100 From: Tom Quarendon Reply-To: tom DOT quarendon AT teamwpc DOT co DOT uk User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) 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> In-Reply-To: <4889ECCB.2030805@cygwin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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 suppose that my issue is that I can look at the source file, use vi on it, cat it etc despite the fact that it doesn't appear to have any permissions. Copy the file and I now don't have permissions on the file at all. In other words when I do CAT, it's clearly checking more than just the posix permissions otherwise I wouldn't be able to look at the contents. But the CP isn't then copying that information. If CAT failed to open the source file with permission denied because of the lack of POSIX permissions, then the target having no permissions seems reasonable as you then get the same behaviour on the target. But since I can read the source, it is checking more than just the POSIX permissions, it seems wrong to me that CP isn't taking notice of that too. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/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/