<?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: Recursive usage of setacl &amp;amp; getacl command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124646#M315355</link>
    <description>how about a script that does the getacl / setacl and you run it via "find".  something like:&lt;BR /&gt;&lt;BR /&gt;myscript.sh contains something like:&lt;BR /&gt;getacl $1&lt;BR /&gt;setacl ...... $1&lt;BR /&gt;&lt;BR /&gt;then you run it with:&lt;BR /&gt;&lt;BR /&gt;find &lt;STARTPATH&gt; -p -exec myscript.sh {} \;&lt;BR /&gt;&lt;BR /&gt;???&lt;/STARTPATH&gt;</description>
    <pubDate>Fri, 04 Jan 2008 17:03:57 GMT</pubDate>
    <dc:creator>OldSchool</dc:creator>
    <dc:date>2008-01-04T17:03:57Z</dc:date>
    <item>
      <title>Recursive usage of setacl &amp; getacl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124644#M315353</link>
      <description>Hi,&lt;BR /&gt;Can anyone provide me with the command option for setacl &amp;amp; getacl HPUX commands.&lt;BR /&gt;&lt;BR /&gt;I need to set the ACL permission for the directory &amp;amp; the sub-directory &amp;amp; files recursively. (Similar to chmod -R)&lt;BR /&gt;&lt;BR /&gt;OS: HP-UX 11.11&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Shameer</description>
      <pubDate>Fri, 04 Jan 2008 16:56:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124644#M315353</guid>
      <dc:creator>Shameer.V.A</dc:creator>
      <dc:date>2008-01-04T16:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive usage of setacl &amp; getacl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124645#M315354</link>
      <description>How about a simple for loop:&lt;BR /&gt;&lt;BR /&gt;for file in `find /startdir`&lt;BR /&gt;do&lt;BR /&gt;setacl&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 04 Jan 2008 17:00:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124645#M315354</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-01-04T17:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive usage of setacl &amp; getacl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124646#M315355</link>
      <description>how about a script that does the getacl / setacl and you run it via "find".  something like:&lt;BR /&gt;&lt;BR /&gt;myscript.sh contains something like:&lt;BR /&gt;getacl $1&lt;BR /&gt;setacl ...... $1&lt;BR /&gt;&lt;BR /&gt;then you run it with:&lt;BR /&gt;&lt;BR /&gt;find &lt;STARTPATH&gt; -p -exec myscript.sh {} \;&lt;BR /&gt;&lt;BR /&gt;???&lt;/STARTPATH&gt;</description>
      <pubDate>Fri, 04 Jan 2008 17:03:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124646#M315355</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-01-04T17:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive usage of setacl &amp; getacl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124647#M315356</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I suggest to create two ACL-files (see the option '-f' in 'man setacl'):&lt;BR /&gt;one for directories (containing default ACLs for objects created in the future) - e.g. /tmp/mydir.acl - and one for plain files - /tmp/myfile.acl .&lt;BR /&gt;Then use&lt;BR /&gt;find mydir -type d | xargs setacl -f /tmp/mydir.acl&lt;BR /&gt;find mydir -type f | xargs setacl -f /tmp/myfile.acl&lt;BR /&gt;&lt;BR /&gt;Use an additional option '-n' if you think so after having read the corresponding section in the man page.&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Fri, 04 Jan 2008 18:55:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124647#M315356</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-01-04T18:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive usage of setacl &amp; getacl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124648#M315357</link>
      <description>Somthing like this which I used in past to set group ACL's to all subfolders and files&lt;BR /&gt;&lt;BR /&gt;find /tmp/&lt;DIR name=""&gt; -type d -exec setacl -m group:&lt;GROUP name=""&gt;:r-x -m default:group:&lt;GROUP name=""&gt;:r-x {} \;&lt;BR /&gt;find /tmp/&lt;DIRNAME&gt; -type f -exec setacl -m group:&lt;GROUP name=""&gt;:r-x {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Akram&lt;/GROUP&gt;&lt;/DIRNAME&gt;&lt;/GROUP&gt;&lt;/GROUP&gt;&lt;/DIR&gt;</description>
      <pubDate>Sun, 06 Jan 2008 15:44:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124648#M315357</guid>
      <dc:creator>Akram Shaik</dc:creator>
      <dc:date>2008-01-06T15:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive usage of setacl &amp; getacl command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124649#M315358</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  Shameer,If u want to use setacl and get acl,follow this......&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; suppose the current directory is:&lt;BR /&gt;  /home/yogesh/shameer/personal/logs.Whose owner and group is yogesh:yogesh...&lt;BR /&gt;&lt;BR /&gt; 1]check out your current directory.&lt;BR /&gt;   #pwd&lt;BR /&gt;   ex./home/yogesh/shameer&lt;BR /&gt;&lt;BR /&gt; 2]If you want to set the acl for directory personal, for the user shameer, to whom you wana assign rwx permission.Below is the procedure.."Well -R option is not there for acl."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#setacl -m user:shameer:rwx personal&lt;BR /&gt;&lt;BR /&gt;  It will set acl to the folder "personal" and shammer can use that folder w/o any restriction.&lt;BR /&gt;&lt;BR /&gt; 3]If you wana check the acl details for the directory "personal".Go to /home/yogesh/shameer n Just run..&lt;BR /&gt;&lt;BR /&gt;  # getacl personal.&lt;BR /&gt;&lt;BR /&gt;  You will get the details of the same.For more detals check man setacl and getacl.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  I hope you, understood what am trying to explain.If you are happy with my explanation, please do assign the points.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; cheers!!!&lt;BR /&gt;&lt;BR /&gt;-Yogesh&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Sun, 06 Jan 2008 19:12:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursive-usage-of-setacl-amp-getacl-command/m-p/4124649#M315358</guid>
      <dc:creator>Yogesh M Puranik</dc:creator>
      <dc:date>2008-01-06T19:12:09Z</dc:date>
    </item>
  </channel>
</rss>

