Isilon Share permissions for NFS and SMB

1,283 views
Skip to first unread message

Darrell Masterson

unread,
Feb 18, 2020, 10:37:10 PM2/18/20
to Isilon Technical User Group
I have been tasked with getting the permissions on all shares on our three Isilon arrays. To start with the first array, I want to see all the shares with the permissions by looking at the access zone level as opposed to one share at a time. Any help would be greatly appreciated. Thank you in advance. 
Message has been deleted

saurabh chaudhary

unread,
Feb 21, 2020, 6:58:57 AM2/21/20
to Isilon Technical User Group
Hi Darrell,

You can run the basic for loop script, I have created for the SMB shares today to get the permissions which were applied through NTFS level (Windows AD level):

########################################################################################
#### Script to collect all SMB share list and there permission per Zone wise ######
########################################################################################
isi zone list --format=list | grep -i Name | awk '{print $2}' > zone-list;
for i in `cat zone-list`
do
        isi smb shares list --zone=$i --no-footer --no-header > smb-path-zone-$i;
        for j in `cat smb-path-zone-$i | awk '{print $1}'`
        do
                isi smb shares view --zone=$i --share=$j | egrep "Share Name:|Path:" >> smb-permission-zone-$i;
                k=`isi smb shares view --zone=$i --share=$j |grep Path: | awk '{print $2}'`;
#                echo $k;
                echo "" >> smb-permission-zone-$i;
                ls -led $k >> smb-permission-zone-$i;
                echo "========================================================================================" >> smb-permission-zone-$i;
        done
done

##################################################################

Add this to the file with .sh extension and run via cli. This will generate 3 files:
1) zone-list (list of all configured zone list)
2) smb-path-zone-<ZoneName>  (list of all SMB share and respective path in the zone <ZoneName>)
3) smb-permission-zone-<ZoneName> (list of all SMB share, respective path and NTFS level permission at each path)

Below is the smb-permission-zone-System file output:

output.JPG



Hope this will help you out.

Regards,
Saurabh

John Beranek - PA

unread,
Feb 27, 2020, 11:16:41 AM2/27/20
to Isilon Technical User Group
As an alternative to what others have posted, you could get all the configuration in JSON format with:


John
Reply all
Reply to author
Forward
0 new messages