Unsolved
This post is more than 5 years old
1 Message
0
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!
0 events found
No Events found!


tenortim
36 Posts
0
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 %'
...
tenortim
36 Posts
0
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:
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