Unsolved

This post is more than 5 years old

1 Message

1595

November 24th, 2019 13:00

Get share permissions for each smb share

Hoping someone could help modify this isi command (or perhaps another isi command) to get:

isi smb shares permission list 
  
    --zone
  

1. For each share within the access zone, get all share permissions.  Export to file would be great.

2. Get all shares that has Everyone - Read Only set as part of its share permissions.  Trying to fish out all Read Only share permissions.

TIA!

36 Posts

January 7th, 2020 14:00

Will try to answer in sections since I can't post this all in one:

1. isi smb shares list -az --format csv | cut -d, -f1 | xargs -I% sh -c 'echo %; isi smb shares permission list -az %'

...

36 Posts

January 7th, 2020 15:00

Something is badly wrong with the community site code and I can't post the code as a cut&paste. Apologies, I'm posting a screenshot of the command to run for question 2:

isi_tim_0-1578438726428.png

The output from running the one-liner above on my test cluster:

test_share_please_ignore has everyone,read permission
test_share_please_ignore_X has everyone,read permission
zinc$ has everyone,read permission

Tim

0 events found

No Events found!

Top