X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 21 Oct 2011 19:34:07 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygwin permissions problem on a network drive
Message-ID: <20111021173407.GI2976@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <CC0D9E8456BA41488A76AFE4E8F3A36902731CC0@de011305.de.ina.com> <j7q925$5sd$1@dough.gmane.org> <20111021085010.GF13505@calimero.vinschen.de> <CC0D9E8456BA41488A76AFE4E8F3A3690278A577@de011305.de.ina.com> <20111021105510.GC2979@calimero.vinschen.de> <j7rus9$e59$1@dough.gmane.org> <20111021143913.GE2976@calimero.vinschen.de> <j7s6q4$b0d$1@dough.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <j7s6q4$b0d$1@dough.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
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 Oct 21 12:32, gds wrote:
> 
> If I do chmod 000 testfile I see with ls -l:
> -r--r--r--
> If I do chmod 777 testfile I see
> -rw-r--r--
> So there is a small effect but not much.

In noacl mode or on file systems not supporting ACLs (FAT, for instance)
permissions are emulated using the DOS R/O bit to set the write flag
and file suffixes and magic numbers to emulate the execute bit.  That's
what you see above.  That's actually documented in the User's Guide:
http://cygwin.com/cygwin-ug-net/using-filemodes.html

> Sorry, in reading your previous explanations (quoted below), I am
> still not sure whether you are saying this new behavior is a feature
> or bug in cygwin, a bug in my app using cygwin (e.g., svn) something
> changed in windows setup of permissions. Just to put it here (since
> thread has become separated) here is what you said previously:

It's a bug in 1.7.9 that you can't create files in this scenario.
It's fixed in CVS.  It's not a bug in 1.7.9, nor in CVS, that an
application gets a "Permission denied" error when it tries to change
file permissions in this scenario.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

