<?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: Remove all SHARES permissions in ONTAP Hardware</title>
    <link>https://community.netapp.com/t5/ONTAP-Hardware/Remove-all-SHARES-permissions/m-p/117512#M7336</link>
    <description>&lt;P&gt;Thank you for your relevant reply. The workflow seems to be fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As&amp;nbsp;said, scripting is not my favourite thing, so I need at least a starting code, concerning the language, I would prefer PowerShell&amp;nbsp;&lt;SPAN&gt;cmdlets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I know I must Get&amp;nbsp;the NA Controller name, the concerned &amp;nbsp;shares and so on, but I am really not skilled in scripting.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2016 11:56:30 GMT</pubDate>
    <dc:creator>Nawdiral</dc:creator>
    <dc:date>2016-03-24T11:56:30Z</dc:date>
    <item>
      <title>Remove all SHARES permissions</title>
      <link>https://community.netapp.com/t5/ONTAP-Hardware/Remove-all-SHARES-permissions/m-p/117418#M7334</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am new to NetApp world and having basic scripting skills.&lt;/P&gt;&lt;P&gt;Here is the details&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Domain name&lt;/STRONG&gt;&amp;nbsp;: contoso.com (fake name)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Users naming model&lt;/STRONG&gt;&amp;nbsp;: &lt;A href="mailto:firstname_secondname@contoso.com" target="_blank" rel="nofollow"&gt;firstname_secondname@contoso.com&lt;/A&gt;, &lt;A href="mailto:firstname_secondname2@contoso.com" target="_blank" rel="nofollow"&gt;firstname_secondname2@contoso.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Server name&lt;/STRONG&gt;&amp;nbsp;: SRVBKP&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Shares names&lt;/STRONG&gt;&amp;nbsp;: \\SRVBKP\firstname_secondname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \\SRVBKP\firstname_secondname2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \\SRVBKP\firstname_secondname3&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \\SRVBKP\firstname_secondname4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current situation is a bit confusing, I read the documentation about&lt;EM&gt; cifs access share [-g] user rights &lt;/EM&gt;and&lt;EM&gt; cifs access -delete share [-g] user&lt;/EM&gt;, but as it’s a production server, this why I need your assistance to create a script that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Remove all the permissions (whatever they are, Read,Modify or Full control) on all USERS SHARES. Remove any users, any groups from &lt;U&gt;SHARE permissions&lt;/U&gt;&lt;/LI&gt;&lt;LI&gt;Grant full control to each user to his own folder (personnal share)&lt;/LI&gt;&lt;LI&gt;This is optionnal, I want to do the same as #1 but for NTFS permissions&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any help is most welcome,&lt;/P&gt;&lt;P&gt;Many Thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 21:41:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Hardware/Remove-all-SHARES-permissions/m-p/117418#M7334</guid>
      <dc:creator>Nawdiral</dc:creator>
      <dc:date>2025-06-04T21:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all SHARES permissions</title>
      <link>https://community.netapp.com/t5/ONTAP-Hardware/Remove-all-SHARES-permissions/m-p/117494#M7335</link>
      <description>&lt;P&gt;You should probably look at the NetApp management SDK for these kind of activities. SDK is available at &lt;A href="http://support.netapp.com" target="_blank"&gt;http://support.netapp.com&lt;/A&gt; for download. The commands and procedures would depend on the languagae that you use. Roughly, the workflow would look like :&lt;/P&gt;&lt;P&gt;1. Create a list of sharenames that you are targeting ( This is required so that you dont mess up with other existing shares)&lt;/P&gt;&lt;P&gt;2. Loop through each item in the list, and get the ACL on the share. This can have mutiple entries, so another nested loop is needed here&lt;/P&gt;&lt;P&gt;3. Loop through each ACE, and delete it&lt;/P&gt;&lt;P&gt;4. After finishing all entries in step3, create an ACE for the desired user (which is hopefully the same as the sharename)&lt;/P&gt;&lt;P&gt;5. repeat and finish loop1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the last item in your message, download the secedit tool from&amp;nbsp;&lt;A href="http://mysupport.netapp.com/NOW/download/tools/secedit/" target="_blank"&gt;http://mysupport.netapp.com/NOW/download/tools/secedit/&lt;/A&gt; and create a text file with the ACLs. You can then copy that file into the vol0/etc, and run "fsecurity apply &amp;lt;filepath&amp;gt;" to apply the DACLs on your qtrees/volumes.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 06:59:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Hardware/Remove-all-SHARES-permissions/m-p/117494#M7335</guid>
      <dc:creator>georgevj</dc:creator>
      <dc:date>2016-03-24T06:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all SHARES permissions</title>
      <link>https://community.netapp.com/t5/ONTAP-Hardware/Remove-all-SHARES-permissions/m-p/117512#M7336</link>
      <description>&lt;P&gt;Thank you for your relevant reply. The workflow seems to be fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As&amp;nbsp;said, scripting is not my favourite thing, so I need at least a starting code, concerning the language, I would prefer PowerShell&amp;nbsp;&lt;SPAN&gt;cmdlets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I know I must Get&amp;nbsp;the NA Controller name, the concerned &amp;nbsp;shares and so on, but I am really not skilled in scripting.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 11:56:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Hardware/Remove-all-SHARES-permissions/m-p/117512#M7336</guid>
      <dc:creator>Nawdiral</dc:creator>
      <dc:date>2016-03-24T11:56:30Z</dc:date>
    </item>
  </channel>
</rss>

