| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| Date: | Wed, 20 Aug 2008 15:25:55 +0200 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: 1.7.0: File permissions: chmod u-x a.exe; chmod u+x a.exe says permission denied |
| Message-ID: | <20080820132555.GL29104@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <6ef498f60808200534t2b7c5107q4886b203eb4726b AT mail DOT gmail DOT com> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <6ef498f60808200534t2b7c5107q4886b203eb4726b@mail.gmail.com> |
| User-Agent: | Mutt/1.5.16 (2007-06-09) |
| 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 Aug 20 14:34, Oliver Wienand wrote:
> Hi,
>
> I am having problems with file permission in Cygwin 1.7. The output of
> gcc, i.e. a.exe, is not executable by default. Also after granting
> full access to a file with ACL and removing the executable-bit with
> chmod I can not set the executable-bit again with chmod.
>
> Minimal testcase: touch a && cacls a /E /G `whoami`:F && chmod u-x a
> && chmod u+x a
> Result: chmod: Beim Setzen der Zugriffsrechte für ?a": Permission denied
That's a bug in Cygwin 1.7.0-28 where I screwed up user permissions.
Due to missing paranthesis in the code, the user has no rights to change
the permissions and DOS attributes on a file. The missing execute
permissions don't really count anymore...
The fix requires two steps:
- Update to Cygwin 1.7.0-29.
- Either remove all files you created while using 1.7.0-28, or login
with admin permissions and chmod all files with the desired permissions
again.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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 |