X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4BA36211.30109@frydenbo-bruvoll.com>
Date: Fri, 19 Mar 2010 11:37:53 +0000
From: =?ISO-8859-1?Q?Jan-Aage_Frydenb=F8-Bruvoll?=  <jan@frydenbo-bruvoll.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: /cygdrive permissions problem [failing duplicity backup]
References: <4BA35384.1040100@frydenbo-bruvoll.com> <20100319112252.GL6505@calimero.vinschen.de> <4BA3658D.4060705@gmail.com>
In-Reply-To: <4BA3658D.4060705@gmail.com>
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

Dave, Corinna,

On 19/03/2010 11:52, Dave Korn wrote:
> On 19/03/2010 11:22, Corinna Vinschen wrote:
>    

Thanks for the thorough explanation.

>> On Mar 19 10:35, Jan-Aage Frydenb?-Bruvoll wrote:
>>      
>>>        
>> The permissions of the underlying directory are not reflected in
>> the fstat API.  We're pretending the cygdrive directory has fixed
>> 0555 permissions because it's a virtual directory.  You could
>> remove the actual directory and cygdrive would still exist.
>>
>>      
>>> Fri Mar 19 10:30:03 jan@aeolus:/
>>> $ getfacl.exe  /cygdrive
>>> # file: /cygdrive
>>> # owner: jan
>>> # group: Administrators
>>> user::rwx
>>> group::r-x
>>> other:r-x
>>> mask:rwx
>>>        
>> Huh?  How did you do that?
>>      
>    Perhaps Jan has a real physical /cygdrive directory shadowing the virtual
> one and there's some inconsistency about when and whether the virtual dir's
> perms or the real dir's ACLs get used?  And in that case, perhaps deleting the
> physical directory would make duplicity work...
>    

Hm - doesn't seem like that's the case.

Fri Mar 19 11:36:22 jan@aeolus:/
$ rmdir.exe cygdrive

Fri Mar 19 11:36:24 jan@aeolus:/
$ ls -ld cygdrive
d--x--x--x 5 jan Administrators 0 2006-12-01 00:00 cygdrive

Fri Mar 19 11:36:30 jan@aeolus:/
$ getfacl.exe  /cygdrive
# file: /cygdrive
# owner: jan
# group: Administrators
user::rwx
group::r-x
other:r-x
mask:rwx


Best regards
Jan


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

