X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B463D68.1070906@fastmail.fm>
Date: Thu, 07 Jan 2010 15:00:40 -0500
From: Raman Gupta <rocketraman@fastmail.fm>
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.5) Gecko/20091130 Lightning/1.0b2pre Thunderbird/3.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 1.7.1-1 noacl on samba share has incorrect directory write bit
References: <4B454550.9020806@fastmail.fm>  <4B454E96.7060009@cygwin.com>  <4B45739C.4060807@fastmail.fm>  <20100107180214.GP23972@calimero.vinschen.de>  <4B462AFD.8030809@fastmail.fm> <20100107195022.GQ23972@calimero.vinschen.de>
In-Reply-To: <20100107195022.GQ23972@calimero.vinschen.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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 01/07/2010 02:50 PM, Corinna Vinschen wrote:
> On Jan  7 13:42, Raman Gupta wrote:
>> On 01/07/2010 01:02 PM, Corinna Vinschen wrote:
>>> On Jan  7 00:39, Raman Gupta wrote:
>>>> "Cygwin ignores filesystem ACLs and only fakes a subset of
>>>> permission bits based on the DOS readonly attribute"
>>>
>>> No, it's a bit more tricky.  FAT filesystems, which are the role model
>>> for noacl filesystems don't know something like a R/O directory.  The
>>> DOS R/O bit on a directory does NOT mean the directory is R/O.  Rather,
>>> it only means that the folder is some sort of special folder.  For some
>>> better description, see http://support.microsoft.com/kb/326549.
>>
>> Wow, isn't that just like Microsoft to reuse an existing read-only
>> bit for something that is completely different semantically!
>>
>> In any case, note that the KB article says that attrib *can* be used
>> to see and modify the value -- as I demonstrated in my previous
>> email.
>
> Sure.  That has nothing to do with what I'm talking about.  While you
> can set and reset the R/O bit on a dir, it doesn't have the *meaning* of
> the directory being R/O.  If Cygwin reports such a directory as being
> read-only from the POSIX perspective, certain functions would have
> strange ideas and return EACCES, for instance.

In the case I am speaking of (a Samba share using the default 
settings), the functions *should* return EACCES, since on the 
server-side the directory is indeed non-writable.

>>> Therefore the fault is not on Cygwin's side, but on Samba's side to use
>>> the DOS R/O bit for something different than Windows uses it on
>>> directories.
>>
>> Understood. However, while Samba's use of the read-only bit on
>> directories does differ somewhat from what Windows Explorer expects
>> to use that bit for, it is a valid field and it does provide useful
>> information to the client in the case of noacl Samba mounts.
>>
>> Therefore, what would you think about configuring this via a mount
>> option? For example, a per-mount setting called dro/nodro (directory
>
> That's not the right thing to do, IMHO.  That's what the default "acl"
> mount mode is for.

Unfortunately, acl mode is unusable when in a non-domain environment.

Cheers,
Raman

--
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

