category | command | optional_options | permalink | positional_options | sidebar | summary | synopsis | title | usage | zendesk_source | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
smb |
smb_mod_share |
|
/qq-cli-command-guide/smb/smb_mod_share.html |
qq_cli_command_reference_sidebar |
This section explains how to use the <code>qq smb_mod_share</code> command. |
Modify a share |
qq smb_mod_share |
qq smb_mod_share [-h] (--id ID | --name NAME) [--tenant-id TENANT_ID] [--new-name NEW_NAME] [--new-tenant-id NEW_TENANT_ID] [--fs-path FS_PATH]
[--description DESCRIPTION] [--access-based-enumeration-enabled {true,false}] [--create-fs-path]
[--default-file-create-mode DEFAULT_FILE_CREATE_MODE] [--default-directory-create-mode DEFAULT_DIRECTORY_CREATE_MODE]
[--require-encryption {true,false}] [--json] [--full-control-hosts IP/RANGE [IP/RANGE ...]] [--read-only-hosts IP/RANGE [IP/RANGE ...]]
[--deny-hosts IP/RANGE [IP/RANGE ...]] [--deny-all-hosts] |
qq CLI Command Guide |
For more information, see:
- {{site.xref.adminANQ.usingSMBhostRestrict}}
- {{site.xref.adminOnPrem.usingSMBhostRestrict}}
{{site.data.alerts.note}}
- {{site.xref.smbCLI.addModSameFlag}}
- If you specify new host restrictions, they overwrite any existing host restrictions. You must explicitly specify which host restrictions to retain.
- If you don't include any flags, no changes take place.
Run the qq smb_mod_share
command and {{site.xref.smbCLI.addModCommand}} In the following example, Qumulo Core grants hosts {{site.exampleNetworkSegment0}} and {{site.exampleNetworkSegment1}} full control, and denies all other hosts.
{{site.exampleOutput}}
ID: 4
Name: share2
Path: /
Description:
Access Based Enumeration: False
Encryption Required: False
Default File Create Mode: 0644
Default Directory Create Mode: 0755
Permissions:
ID Trustee Type Rights
== ======== ======= ===============================
1 Everyone Allowed Read, Write, Change permissions
Network Permissions:
ID Trustee Type Rights
== ============================== ======= ===============================
1 {{site.exampleNetworkSegment0}}, {{site.exampleNetworkSegment1}} Allowed Read, Write, Change permissions
Run the qq smb_mod_share
command, specify the share ID, and specify full control. For example:
For more information, see:
- {{site.xref.adminANQ.manageSMB3encrypt}}
- {{site.xref.adminOnPrem.manageSMB3encrypt}}
qq smb_mod_share --id=4 \
--full-control="*"
For more information, see:
- {{site.xref.adminANQ.manageSMB3encrypt}}
- {{site.xref.adminOnPrem.manageSMB3encrypt}}
Run the qq smb_mod_share
command, specify the share name or ID, and use the --require-encryption
flag to specify true
or false
. For example:
qq smb_mod_share --name my_share \
--require-encryption true