<?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: scripting question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054204#M813482</link>
    <description>Krish,&lt;BR /&gt;&lt;BR /&gt;You need to use the find command:&lt;BR /&gt;&lt;BR /&gt;find /starting_dir -perm permissions_desired&lt;BR /&gt;&lt;BR /&gt;Take a look at man find.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 21 Aug 2003 17:16:22 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2003-08-21T17:16:22Z</dc:date>
    <item>
      <title>scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054203#M813481</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;   I am trying to write a small command seq. to find out the files which only owner has read/write privs and none other (group/world) has any privileges on the files in a directory and its sub directories. Could some body help me on how to do this. Thanks,&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Krish</description>
      <pubDate>Thu, 21 Aug 2003 17:12:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054203#M813481</guid>
      <dc:creator>Kris_5</dc:creator>
      <dc:date>2003-08-21T17:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054204#M813482</link>
      <description>Krish,&lt;BR /&gt;&lt;BR /&gt;You need to use the find command:&lt;BR /&gt;&lt;BR /&gt;find /starting_dir -perm permissions_desired&lt;BR /&gt;&lt;BR /&gt;Take a look at man find.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Aug 2003 17:16:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054204#M813482</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-08-21T17:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054205#M813483</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You could try the 'find' command:&lt;BR /&gt;&lt;BR /&gt;find . -user username -perm 0600&lt;BR /&gt;&lt;BR /&gt;where 'username' is the user name you wish to find files for.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Aug 2003 17:17:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054205#M813483</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-08-21T17:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054206#M813484</link>
      <description>I believe you will need a few commands to do this since I dont think you can have wildcards in the permissions field.&lt;BR /&gt;&lt;BR /&gt;find /top_dir -perm 100&lt;BR /&gt;find /top_dir -perm 200&lt;BR /&gt;find /top_dir -perm 300&lt;BR /&gt;find /top_dir -perm 400&lt;BR /&gt;...&lt;BR /&gt;find /top_dir -perm 700&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Aug 2003 17:21:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054206#M813484</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2003-08-21T17:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054207#M813485</link>
      <description>Thanks to all for your quick responses. Find command fails if the directory it is checking does not have read/execute priv. Please see below for scenario. &lt;BR /&gt;&lt;BR /&gt;User executing the command is :xyz&lt;BR /&gt;&lt;BR /&gt;$ ll -d /home/oclin/ocusr/test_dir&lt;BR /&gt;drwx------   2 ramon   oclin           96 Aug 21 07:00 /home/oclin/opusr/test_dir&lt;BR /&gt;&lt;BR /&gt;$ find ~ -perm 0600 -exec ll {} \;&lt;BR /&gt;-rw-------   1 xyz     oclin       205614 Aug 21 11:25 /home/oclin/ocusr/.sh_history&lt;BR /&gt;-rw-------   1 ramon   oclin            0 Aug 20 11:13 /home/oclin/ocusr/abcd.log&lt;BR /&gt;find: cannot open /home/oclin/ocusr/test_dir&lt;BR /&gt;&lt;BR /&gt;How do I extend the command to directories also?&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Aug 2003 17:31:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054207#M813485</guid>
      <dc:creator>Kris_5</dc:creator>
      <dc:date>2003-08-21T17:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054208#M813486</link>
      <description>find /dir_name -perm perm_mode -print&lt;BR /&gt;man find for more details</description>
      <pubDate>Thu, 21 Aug 2003 17:33:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054208#M813486</guid>
      <dc:creator>GK_5</dc:creator>
      <dc:date>2003-08-21T17:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054209#M813487</link>
      <description>Kris,&lt;BR /&gt;&lt;BR /&gt;The obvious answer is to run your find command is root.  If that's not possible, I'm at a loss.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Aug 2003 17:34:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054209#M813487</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-08-21T17:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054210#M813488</link>
      <description>Hi Krish,&lt;BR /&gt;&lt;BR /&gt;you can use -type option of find command to specify file/ directory.&lt;BR /&gt;&lt;BR /&gt;find /&lt;SERACH_DIRECTORY&gt; -perm &lt;REQUIRED_PERMISSIONS&gt; -type d -print exec ll {} \; for searching directories and replace "-type d" in the above command with "-type f" for searching normal files.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;VJ.&lt;/REQUIRED_PERMISSIONS&gt;&lt;/SERACH_DIRECTORY&gt;</description>
      <pubDate>Fri, 22 Aug 2003 07:37:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3054210#M813488</guid>
      <dc:creator>vasundhara</dc:creator>
      <dc:date>2003-08-22T07:37:45Z</dc:date>
    </item>
  </channel>
</rss>

