| www.delorie.com/archives/browse.cgi | search |
| 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 |
| Date: | Fri, 9 May 2003 15:59:23 -0500 |
| From: | wayne <wayne AT reliant DOT immure DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: How to "find" all writable files in a directory tree? |
| Message-ID: | <20030509155923.A5758@reliant.immure.com> |
| Reply-To: | Wayne Willcox <wayne AT reliant DOT immure DOT com> |
| References: | <0C260F619E428642BFA6380177C3ADF302659F AT exmsea005 DOT us DOT wamu DOT net> |
| Mime-Version: | 1.0 |
| User-Agent: | Mutt/1.2.5i |
| In-Reply-To: | <0C260F619E428642BFA6380177C3ADF302659F@exmsea005.us.wamu.net>; from David.Karr@wamu.net on Fri, May 09, 2003 at 01:52:56PM -0700 |
| X-Operating-System: | FreeBSD reliant.immure.com 4.4-RELEASE FreeBSD 4.4-RELEASE |
Well with the find I am used to you have to do the following for example...
find . -parm -666
On Fri, May 09, 2003 at 01:52:56PM -0700, Karr, David wrote:
> I need to find all the files in a directory tree that are writable. So,
> the "find" man page has the following text:
>
> -------------------------
> -perm mode
> File's permission bits are exactly mode (octal or
> symbolic).
> Symbolic modes use mode 0 as a point of departure.
>
> -perm -mode
> All of the permission bits mode are set for the file.
>
> -perm +mode
> Any of the permission bits mode are set for the file.
> -------------------------
>
> I'm not quite sure what this tells me. I guessed that "-perm +w" would
> do what I want. Unfortunately, when I use this it says:
>
> find: invalid mode `+w'
>
> I'm on Cygwin 1.3.22.
>
> Am I misunderstanding what this man page says?
>
>
> --
> 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/
--
Slowly and surely the unix crept up on the Nintendo user ...
Wayne Willcox I will not eat green eggs and ham
wayne AT reliant DOT immure DOT com I will not eat them Sam I Am!!
A wise person makes his own decisions, a weak one obeys public opinion.
-- Chinese proverb
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |