This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Execute permission not set when creating files
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 28 Oct 2008 19:37:23 -0400
- Subject: Re: Execute permission not set when creating files
- References: <3DC7517E3D40416E8A08A8F93EB0904E@ra>
- Reply-to: 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/