X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <4907A233.5040406@cygwin.com> Date: Tue, 28 Oct 2008 19:37:23 -0400 From: "Larry Hall (Cygwin)" 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 Fedora/2.0.0.16-1.fc8 Lightning/0.9 Thunderbird/2.0.0.16 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Execute permission not set when creating files References: <3DC7517E3D40416E8A08A8F93EB0904E AT ra> In-Reply-To: <3DC7517E3D40416E8A08A8F93EB0904E@ra> 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 John Cooper wrote: > Matthew Woehlke wrote: > > > I don't think I've met a POSIX-like system yet that automatically creates > things with any +x bits set. > > I'm assuming that the recent Cygwin's failure to set the +x bit is the cause > of the underlying problem, namely that any files I create (e.g., via output > redirection) can no longer be read when I'm logged onto my wife's desktop. > This certainly wasn't a problem with a previous version of Cygwin, and is > really quite a nuisance. (if I create a file with `notepad' or any other > Windows program, it is, by default, readable when logged in as a different > user.) Define "readable". The permission you're concerned about is the executable permission. The read permission is set as expected. The fact that Windows chooses to set the executable permission on data files is simply a feature they employ to make associated programs run from the command line (cmd.exe) when you invoke the data file. Cygwin doesn't do this but regardless, this is the only functionality I know of that could be affected by the executable permission not being set. > If there's some other reasonable way to achieve this, I'd be very grateful > for any suggestions. > > One other thing -- I did recently upgrade to XP SP3 (from SP2), so I guess > it's possible this is a contributing factor although it seems a long shot... I'm always suspicious of Windows upgrades, especially when things start going wrong afterwards. Another thing to consider are changes in other third-party security software. It would also be worthwhile to look at the permissions on these problem files as Windows sees them, either with 'cacls' or Cygwin's 'getfacl'. -- 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/