X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 20 Aug 2008 15:25:55 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.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@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <6ef498f60808200534t2b7c5107q4886b203eb4726b@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <6ef498f60808200534t2b7c5107q4886b203eb4726b@mail.gmail.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

