Follow

fs.share.permission.add  

ROLE: Admin, Pool Admin

Description

Add a new permission to an existing SMB share.

Syntaxfs.share.permission.add share=SHARE principal=STR permission={READONLY|READWRITE|FULLCONTROL|NONE}
ArgumentsshareName of an existing share
principalThe security identifier (SID) of a user or group
permissionREADONLY, READWRITE, FULLCONTROL, NONE
Example

fs.share.permission.add share=Share01 principal=S-1-5-21-22235654000-624154000-12166254336000-8160 permission=FULLCONTROL

Principal "S-1-5-21-22235654000-624154000-12166254336000-8160" added to share "Share01" (permission: FULLCONTROL)



fs.share.permission.modify  

ROLE: Admin, Pool Admin

Description

Modify an SLP entry to an existing SMB share.

This command changes the access rights of an existing principal. To add a principal, use the fs.share.permissions.add command. 

Syntaxfs.share.permission.modify share=SHARE principal=STR permission={READONLY|READWRITE|FULLCONTROL|NONE}
ArgumentsshareName of an existing share
principalThe security identifier (SID) of a user or group
permissionREADONLY, READWRITE, FULLCONTROL, NONE
Examplefs.share.permission.modify share=Share01 principal=S-1-5-21-22235654000-624154000-12166254336000-8160 permission=FULLCONTROL
Principal "S-1-5-21-22235654000-624154000-12166254336000-8160" modified on share "Share01" (permission: FULLCONTROL)



fs.share.permission.query  

ROLE: All Roles

Description

List permissions for existing filesystem shares. 

Syntaxfs.share.permission.query [share=SHARE] [fs={FS|SNAP}[,{FS|SNAP},...]]
ArgumentsshareName of an existing share
fsName of an existing filesystem or snapshot (multiple values, separated by commas)
Examplefs.share.permission.query

SHARE       FILESYSTEM PRINCIPAL                                                   PERMISSIONS        
A-01        fs-xx      S-1-1-0, S-1-5-32-222                                       READWRITE, NONE
Share01     fs-yy      S-1-1-0, S-1-5-21-22235654000-624154000-12166254336000-8160 FULLCONTROL, FULLCONTROL
Share02     FS1        S-1-5-32-222                                                READONLY           
Share2-ACME FS1        S-1-1-0, S-1-5-32-222                                       FULLCONTROL, READONLY



fs.share.permission.remove  

ROLE: Admin, Pool Admin

Description

Remove a permission from an existing filesystem share.

Enter pairs of share name and principal

Syntaxfs.share.permission.remove share=SHARE principal=STR
ArgumentsshareName of an existing share
principalThe security identifier (SID) of a user or group
Examplefs.share.permission.remove share=Share01 principal=S-1-5-21-22235654000-624154000-12166254336000-8160
Principal "S-1-5-21-22235654000-624154000-12166254336000-8160" removed from share "Share01" (permission: FULLCONTROL)
Was this article helpful?
0 out of 0 found this helpful

0 out of 0 found this helpful

Last edited: 2022-08-06 08:32:13 UTC

Comments