delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/12/12:50:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <ADeFaria AT Salira DOT com>
Subject: Re: How to "find" all writable files in a directory tree?
Date: Mon, 12 May 2003 09:49:55 -0700
Lines: 92
Message-ID: <b9oj6m$ut7$1@main.gmane.org>
References: <EBEMJMPFEOOPGHBJFKGPGEBDFBAA DOT winston DOT gutkowski AT eztext DOT com> <Pine DOT LNX DOT 4 DOT 53 DOT 0305091817280 DOT 21240 AT nautilus DOT m8y DOT org>
Mime-Version: 1.0
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030416 Thunderbird/0.1a
X-Accept-Language: en-us, en
In-Reply-To: <Pine.LNX.4.53.0305091817280.21240@nautilus.m8y.org>

lists AT m8y DOT org wrote:

>On Fri, 9 May 2003, Winston Gutkowski wrote:
>  
>
>>Don't want to flog a dead horse, but if I read the manpages right it seems that
>>-222
>>should be true only if the 'w' flag is on in all 3 positions, but
>>+222
>>will be true only if the 'w' flag is on in *any* of the 3 positions.
>>
>>Is this right? Also, I didn't find any refernce to the shorthand +2. Perhaps it's one of those mystical osmosis things...:-)
>>
>>
>>My reading of the manual is that:
>>-222 examines bit 2 being on in all of the 3 areas
>>+2 examines bit 2 being on in all of the 3 areas
>>222 checks exact permissions 222
>>    
>>
>
>Erm.
> +2 examines bit 2 being on in all of the 3 areas
>should read
> +2 examines bit 2 being on in any of the 3 areas
>
This doesn't look right! How can +2 be both all and any?!?

>
>A little careless vi yy
>
>
>  
>
>>>>-perm +mode
>>>>    Any of the permission bits mode are set for the file.
>>>>
>>>>-perm -222 is equivalent to -perm +2
>>>>        
>>>>
>>>Either I'm dense or you're mistaken.
>>>      
>>>
>>I could be mistaken, but -perm +2  has always worked for me.  I'll test it later.
>>
>>
>>    
>>
>>>Are you assuming a FAT file system? Cygwin takes advantage of NTFS 
>>>permissions when possible (and when the now-default ntsec option of the 
>>>CYGWIN environment variable is enabled).
>>>      
>>>
>>Nope, and yes, am aware :)
>>
>>    
>>
>>>Randall Schulz
>>>
>>>
>>>
>>>
>>>--
>>>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/
>>>
>>>
>>>      
>>>
>>--
>>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/
>>
>>
>>
>>--
>>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/
>>
>>
>>    
>>
>
>  
>



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019