<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: find -perm in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821460#M781045</link>
    <description>Your command is fine except for the - in front of the u.&lt;BR /&gt;&lt;BR /&gt;find ./ -perm u=r -exec ll -d {}\;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
    <pubDate>Tue, 11 Jul 2006 10:51:10 GMT</pubDate>
    <dc:creator>Joseph C. Denman</dc:creator>
    <dc:date>2006-07-11T10:51:10Z</dc:date>
    <item>
      <title>find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821458#M781043</link>
      <description>&lt;!--!*#--&gt;I am trying to figure out how to use the find command with the -perm option to find all files where the owner has read permissions but not wtrite and execute. So it should find files that match r--******&lt;BR /&gt;&lt;BR /&gt;I tried:&lt;BR /&gt;find . -perm -u=r -exec ll -d {} \;&lt;BR /&gt;&lt;BR /&gt;but that returned files with rw-rw---- also.&lt;BR /&gt;&lt;BR /&gt;Any idea how to limit the find to just finding files with read only permissions?</description>
      <pubDate>Tue, 11 Jul 2006 10:43:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821458#M781043</guid>
      <dc:creator>Scott J. Showalter</dc:creator>
      <dc:date>2006-07-11T10:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821459#M781044</link>
      <description>find . -perm 0400</description>
      <pubDate>Tue, 11 Jul 2006 10:49:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821459#M781044</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2006-07-11T10:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821460#M781045</link>
      <description>Your command is fine except for the - in front of the u.&lt;BR /&gt;&lt;BR /&gt;find ./ -perm u=r -exec ll -d {}\;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Tue, 11 Jul 2006 10:51:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821460#M781045</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2006-07-11T10:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821461#M781046</link>
      <description>opps sorry read that too fast. thats not what you want ;p</description>
      <pubDate>Tue, 11 Jul 2006 10:52:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821461#M781046</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2006-07-11T10:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821462#M781047</link>
      <description>&lt;!--!*#--&gt;I tried that already:&lt;BR /&gt;find . -perm u=r -exec ll -d {} \;&lt;BR /&gt;That doesn't return anything. &lt;BR /&gt;I have a bunch of files that are &lt;BR /&gt;r--r-----&lt;BR /&gt;or&lt;BR /&gt;r--------&lt;BR /&gt;or &lt;BR /&gt;r--r--r--&lt;BR /&gt;&lt;BR /&gt;and it doesn't find them.</description>
      <pubDate>Tue, 11 Jul 2006 10:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821462#M781047</guid>
      <dc:creator>Scott J. Showalter</dc:creator>
      <dc:date>2006-07-11T10:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821463#M781048</link>
      <description>Sorry, it does find ones that are r-------- but not r--r----- or r--r--r--</description>
      <pubDate>Tue, 11 Jul 2006 10:59:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821463#M781048</guid>
      <dc:creator>Scott J. Showalter</dc:creator>
      <dc:date>2006-07-11T10:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821464#M781049</link>
      <description>you need to remove the -d option.  Directories will always have the x perm.&lt;BR /&gt;&lt;BR /&gt;# ll&lt;BR /&gt;total 52&lt;BR /&gt;-rwx------   1 pmofabxx   sa             814 Sep  2  2004 .cshrc&lt;BR /&gt;-r--------   1 pmofabxx   sa             347 Sep  2  2004 .exrc&lt;BR /&gt;-rwx------   1 pmofabxx   sa             341 Sep  2  2004 .login&lt;BR /&gt;-rw-------   1 pmofabxx   sa              74 Jul 11 12:13 .ltime&lt;BR /&gt;-rwx------   1 pmofabxx   sa            6398 Sep  2  2004 .profile&lt;BR /&gt;-r--------   1 pmofabxx   sa             446 Sep  2  2004 .profile.old&lt;BR /&gt;-rw-------   1 pmofabxx   sa            3424 Jul 11 12:14 .sh_history&lt;BR /&gt;drwx------   2 pmofabxx   sa              96 Aug 16  2005 .ssh&lt;BR /&gt;drwx------   5 pmofabxx   sa              96 Jun 13 15:40 .sw&lt;BR /&gt;drwxrwxrwx   4 root       dba           2048 Jun 13 17:55 EWCF&lt;BR /&gt;drwxrwxrwx   3 root       dba           2048 Jun 13 17:55 FDE-&lt;BR /&gt;# find ./ -perm u=r -exec ll {} \;&lt;BR /&gt;-r--------   1 pmofabxx   sa             347 Sep  2  2004 ./.exrc&lt;BR /&gt;-r--------   1 pmofabxx   sa             446 Sep  2  2004 ./.profile.old&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Tue, 11 Jul 2006 11:02:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821464#M781049</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2006-07-11T11:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821465#M781050</link>
      <description>Well it ain't pretty but:&lt;BR /&gt;&lt;BR /&gt;find . -type f \( -perm -004 -o -perm -044 -o -perm -444 -o -perm -040 -o -perm -440 -o -perm -400 -o -perm -404 \) -exec ls -l {} \;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 11:13:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821465#M781050</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-11T11:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821466#M781051</link>
      <description>not the best way probably but. &lt;BR /&gt;&lt;BR /&gt;for g in 0 1 2 3 4 5 6 7&lt;BR /&gt;do&lt;BR /&gt;for o in 0 1 2 3 4 5 6 7&lt;BR /&gt;do&lt;BR /&gt;find . -perm 04${g}${o} -exec ll {} \;&lt;BR /&gt;done&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 11:19:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821466#M781051</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2006-07-11T11:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821467#M781052</link>
      <description>jcd - the ll -d is to prevent the ll from showing the files within directories. It shouldn't make a difference as to what I am trying to do.&lt;BR /&gt;&lt;BR /&gt;acs - your solution while not pretty might work, but there would be a whole lot more possible combinations to cover all of the possibilities. &lt;BR /&gt;&lt;BR /&gt;ms - your solution would also work, but way to many find commands running to be a viable solution.&lt;BR /&gt;&lt;BR /&gt;I was hoping that I just misunderstood the man page, and it could be done with one command.</description>
      <pubDate>Tue, 11 Jul 2006 11:44:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821467#M781052</guid>
      <dc:creator>Scott J. Showalter</dc:creator>
      <dc:date>2006-07-11T11:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821468#M781053</link>
      <description>No, those are all the permuatations of the READ bits, -perm 444 will only find files&lt;BR /&gt;that have exactly r--r--r-- mode set BUT -perm -444 (note the "-") will match rXXrXXrXX where X is "don't care".</description>
      <pubDate>Tue, 11 Jul 2006 11:49:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821468#M781053</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-11T11:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821469#M781054</link>
      <description>well you could use the for loops to create a single command, that you could run with all the -perm combinations.</description>
      <pubDate>Tue, 11 Jul 2006 11:52:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821469#M781054</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2006-07-11T11:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821470#M781055</link>
      <description>&lt;!--!*#--&gt;Clay,&lt;BR /&gt;&lt;BR /&gt;Sorry for my mistake. But, I still have a problem, I do care about the rXX for the owner. I want it to find: &lt;BR /&gt;r--XXXXXX &lt;BR /&gt;&lt;BR /&gt;but not any of the following: &lt;BR /&gt;rw-XXXXXX&lt;BR /&gt;r-xXXXXXX&lt;BR /&gt;rwxXXXXXX</description>
      <pubDate>Tue, 11 Jul 2006 12:23:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821470#M781055</guid>
      <dc:creator>Scott J. Showalter</dc:creator>
      <dc:date>2006-07-11T12:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821471#M781056</link>
      <description>just another note in the for loops I am only running 1 find command at a time. not all 64 that it would have to process. But yes not ideal. Attached is a file you can use that will do what you want. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 12:30:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821471#M781056</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2006-07-11T12:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821472#M781057</link>
      <description>&lt;BR /&gt;find . -type f -exec ls -l {} \; &lt;BR /&gt;&lt;BR /&gt;this should list all the files and Modes..&lt;BR /&gt;&lt;BR /&gt;then simply Piple the output into GREP for the pattern (or Regular Expression) you so desire/want.&lt;BR /&gt;&lt;BR /&gt;play with the "ll" command in a small sized directory:&lt;BR /&gt;  cd small_directory&lt;BR /&gt;  ll | grep " r[rxw-]"&lt;BR /&gt;&lt;BR /&gt;use the grep following the above find command in a pipe:&lt;BR /&gt;   find ....   |   grep  ....&lt;BR /&gt;&lt;BR /&gt;remember: UNIX tools are KISS (Keep It Small and Simple) and use "pipe".. &lt;BR /&gt;&lt;BR /&gt;have fun.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 22:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821472#M781057</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2006-07-11T22:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: find -perm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821473#M781058</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;what about&lt;BR /&gt;&lt;BR /&gt;find . ! -perm -200 -a ! -perm -500 | xargs ls -ld&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Wed, 12 Jul 2006 06:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-perm/m-p/3821473#M781058</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-07-12T06:36:39Z</dc:date>
    </item>
  </channel>
</rss>

