<?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: Need help with a find command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741247#M655968</link>
    <description>find /home -type f -name ".*" -perm 644 -exec chmod 600 {} +</description>
    <pubDate>Thu, 20 Jan 2011 06:30:18 GMT</pubDate>
    <dc:creator>kemo</dc:creator>
    <dc:date>2011-01-20T06:30:18Z</dc:date>
    <item>
      <title>Need help with a find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741246#M655967</link>
      <description>Good evening all;&lt;BR /&gt;&lt;BR /&gt;Looking for some help regarding a find command.  I need to go through all the /home directoris and change all files used during the user login process, eg. .profile, .sh_history,  etc that have permissions of 644 and change them to 600.  Need the find command to skip directories, don't want to change the permissions on the .ssh directory for example.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for your input&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Norm&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2011 06:08:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741246#M655967</guid>
      <dc:creator>wvsa</dc:creator>
      <dc:date>2011-01-20T06:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741247#M655968</link>
      <description>find /home -type f -name ".*" -perm 644 -exec chmod 600 {} +</description>
      <pubDate>Thu, 20 Jan 2011 06:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741247#M655968</guid>
      <dc:creator>kemo</dc:creator>
      <dc:date>2011-01-20T06:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741248#M655969</link>
      <description>I think , it must be;&lt;BR /&gt;&lt;BR /&gt;find /home -type f -name ".*" -perm 644 -exec chmod 600 {} \;</description>
      <pubDate>Thu, 20 Jan 2011 08:58:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741248#M655969</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2011-01-20T08:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741249#M655970</link>
      <description>&amp;gt;Hakki: I think, it must be;&lt;BR /&gt;&lt;BR /&gt;Nothing wrong with the Posix standard: -exec ... {} +&lt;BR /&gt;Especially if you want performance.&lt;BR /&gt;&lt;BR /&gt;Note: -name ".*" changes all dot files, not just "files used during the user login process".  Even in subdirectories.</description>
      <pubDate>Thu, 20 Jan 2011 09:19:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741249#M655970</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-20T09:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741250#M655971</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;To add to Dennis's comments, have a look at the 'find(1)' manpages under the '-exec' option.  The differences between the ';' and the '+' terminator (including performance) are nicely discussed with examples there:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://bizsupport.austin.hp.com/bc/docs/support/SupportManual/c02258880/c02258880.pdf" target="_blank"&gt;http://bizsupport.austin.hp.com/bc/docs/support/SupportManual/c02258880/c02258880.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As usual, the manpages are your friend :-)&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 20 Jan 2011 14:10:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741250#M655971</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-01-20T14:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741251#M655972</link>
      <description>Dennis;&lt;BR /&gt;&lt;BR /&gt;You have identified the source of my problem, you can't use ".*" as this will indeed change the .. perms, not good.  &lt;BR /&gt;&lt;BR /&gt;So how can I get around this, is it possible with the find command?&lt;BR /&gt;&lt;BR /&gt;Thank you for your input.&lt;BR /&gt;&lt;BR /&gt;Norm&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2011 15:40:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741251#M655972</guid>
      <dc:creator>wvsa</dc:creator>
      <dc:date>2011-01-20T15:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741252#M655973</link>
      <description>&amp;gt;&amp;gt;You have identified the source of my &lt;BR /&gt;&amp;gt;&amp;gt;problem, you can't use ".*" as this will &lt;BR /&gt;&amp;gt;&amp;gt;indeed change the .. perms, not good. &lt;BR /&gt;&lt;BR /&gt;This should only happen if you do NOT specify the item type you are looking for.&lt;BR /&gt;&lt;BR /&gt;If you use the example above where '-type f' is specified then you should only get regular files and not directories.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2011 15:46:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741252#M655973</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2011-01-20T15:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741253#M655974</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] you can't use ".*" as this will&lt;BR /&gt;&amp;gt; indeed change the .. perms, not good. &lt;BR /&gt;&lt;BR /&gt;Really?  Did you try it?  And "-type f"&lt;BR /&gt;didn't help?&lt;BR /&gt;&lt;BR /&gt;As usual, showing actual commands with their&lt;BR /&gt;actual output can be more helpful than vague&lt;BR /&gt;descriptions or interpretations (or&lt;BR /&gt;speculations).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      man find&lt;BR /&gt;&lt;BR /&gt;Look for "!".  It should work with something&lt;BR /&gt;like&lt;BR /&gt;      -name ..&lt;BR /&gt;too.  If you really needed to do that.</description>
      <pubDate>Thu, 20 Jan 2011 15:48:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741253#M655974</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-01-20T15:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741254#M655975</link>
      <description>All;&lt;BR /&gt;&lt;BR /&gt;Thank you for all your responses, as it turns out I was making it more difficult than it should be.    &lt;BR /&gt;&lt;BR /&gt;Thread closed.</description>
      <pubDate>Thu, 20 Jan 2011 17:57:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741254#M655975</guid>
      <dc:creator>wvsa</dc:creator>
      <dc:date>2011-01-20T17:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741255#M655976</link>
      <description>&amp;gt;Steven: Did you try it?  And "-type f" didn't help?&lt;BR /&gt;&lt;BR /&gt;Right.  You don't need -type f because find(1) automatically skips . and .. because it wouldn't make progress if it looked at them.&lt;BR /&gt;You do have to worry when using ls(1) though.</description>
      <pubDate>Sat, 22 Jan 2011 06:06:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-a-find-command/m-p/4741255#M655976</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-22T06:06:32Z</dc:date>
    </item>
  </channel>
</rss>

