Subscribe

Remove all SHARES permissions

Hi all,

I am new to NetApp world and having basic scripting skills.

Here is the details :

Domain name : contoso.com (fake name)

Users naming model : firstname_secondname@contoso.com, firstname_secondname2@contoso.com

Server name : SRVBKP

Shares names : \\SRVBKP\firstname_secondname

                               \\SRVBKP\firstname_secondname2

                               \\SRVBKP\firstname_secondname3

                                \\SRVBKP\firstname_secondname4

 

The current situation is a bit confusing, I read the documentation about cifs access share [-g] user rights and cifs access -delete share [-g] user, but as it’s a production server, this why I need your assistance to create a script that:

  • Remove all the permissions (whatever they are, Read,Modify or Full control) on all USERS SHARES. Remove any users, any groups from SHARE permissions
  • Grant full control to each user to his own folder (personnal share)
  • This is optionnal, I want to do the same as #1 but for NTFS permissions

Any help is most welcome,

Many Thanks for your help

Re: Remove all SHARES permissions

 

You can probably accomplish most of your objectives using home directories.  Your cli implies 7mode, so have a look at the 824 version:

https://library.netapp.com/ecmdocs/ECMP1401220/html/GUID-540D6D96-814E-423C-98DF-3FD83CAF8C33.html

 

If you need to script beyond that, there are plenty of options depending on your preferred scripting environment.  

 

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: Remove all SHARES permissions

http://community.netapp.com/t5/FAS-and-V-Series-Storage-Systems-Discussions/Remove-all-SHARES-permissions/m-p/117418/highlight/false#M7334

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Cannot find the answer you need? No need to open a support case - just CHAT and we’ll handle it for you.

Re: Remove all SHARES permissions

Many thanks for your reply,

 

I didn't mention that the shares are already created and the permissions are set.

This is why I need to reset permissions first, than grant the appropriate right to users accordingly to their folders.