change service cifs
Function
The change service cifs command is used to modify the settings of the CIFS share service.
Format
change service cifs { short_name_enabled=? | continuous_querydir_enable=? | mac_transcoding_enable=? | notify_response_qps=? | symlink_enabled=? | iotrace_enable=? } *
change service cifs { status=? | security_model=? | guest_enabled=? | anonymous_enabled=? | signing_required_enabled=? | signing_enabled=? | oplock_enabled=? | oplock_timeout=? | notify_enabled=? | durable_handle_enabled=? | durable_handle_timeout=? | abse_enabled=? | smb1_enable=? | smb2_enable=? | global_namespace_capacity=? | global_namespace_forward_enabled=? | smb2_enabled_for_dc_connections=? | leasev2_enable=? | smb1_enabled_for_linux=? | max_sessions_displays=? | max_open_files_display=? | domainname_configurable_enable=? | administrators_privilege=? | default_dir_mode=? | default_file_mode=? } *
Parameters
Parameter |
Description |
Value |
---|---|---|
status=? |
Running status of the CIFS share service. |
The value can be "stop" or "start", where:
|
security_model=? |
Authentication mode. |
The value can be "local_attestation", "domain_attestation", or "all_attestation", where:
|
guest_enabled=? |
Whether guest access is allowed. |
The value can be "yes" or "no", where:
|
anonymous_enabled=? |
Whether anonymous access is allowed. |
The value can be "yes" or "no", where:
|
signing_required_enabled=? |
Whether the CIFS client must support the signature. |
The value can be "yes" or "no", where:
|
signing_enabled=? |
Whether to enable the signature for the CIFS protocol. |
The value can be "yes" or "no", where:
|
oplock_enabled=? |
Whether to enable opportunistic locking (oplock) (after a protocol is locked, the file system does not require a lock). |
The value can be "yes" or "no", where:
|
oplock_timeout=? |
Timeout period of oplock. |
The value ranges from 5 to 60. |
notify_enabled=? |
Whether to enable Notify. |
The value can be "yes" or "no", where:
|
durable_handle_enabled=? |
Whether to enable Durable Handle. |
The value can be "yes" or "no", where:
|
durable_handle_timeout=? |
Timeout period of durable handles. |
The value ranges from 60 to 960. |
abse_enabled=? |
Whether access based on share enumeration is allowed. |
The value can be "yes" or "no", where:
|
smb1_enable=? |
Whether to enable SMB1. |
The value can be "yes" or "no", where:
|
smb2_enable=? |
Whether to enable SMB2. |
The value can be "yes" or "no", where:
|
mac_transcoding_enable=? |
Whether to enable the character conversion for the Mac operating system. This parameter can only be executed in developer mode. |
The value can be "yes" or "no", where:
|
short_name_enabled=? |
Whether the short name is enabled. This command can only be executed in developer mode. For details about how to log in to the developer mode, see Advanced O&M Command Reference. |
The value can be "yes" or "no", where:
|
continuous_querydir_enable=? |
Whether to enable the continuous directory query. This parameter can only be executed in developer mode. |
The value can be "yes" or "no", where:
|
notify_response_qps=? |
Response speed of the Notify packet in the CIFS. This parameter can only be executed in developer mode. |
The value ranges from 0 to 250. 0 indicates the flow control function is disabled, and the response speed is not controlled. Other numbers indicate that the flow control function is enabled. |
default_dir_mode=? |
Default mode of the new directory when no ACL is inherited. |
The value ranges from 000 to 777. |
default_file_mode=? |
Default mode of the new file when no ACL is inherited. |
The value ranges from 000 to 777. |
global_namespace_capacity=? |
Global namespace capacity. |
|
global_namespace_forward_enabled=? |
Whether to enable global namespace forward. |
The value can be "yes" or "no", where:
|
smb2_enabled_for_dc_connections=? |
Whether connecting domain controller over SMB2 is enabled. |
The value can be "yes" or "no", where:
|
leasev2_enable=? |
Whether to enable LeaseV2. |
The value can be "yes" or "no", where:
|
smb1_enabled_for_linux=? |
Whether to enable SMB1 for Linux operating systems. |
The value can be "yes" or "no", where:
|
max_sessions_displays=? |
Maximum number of returned sessions queried through MMC. |
The value ranges from 0 to 4294967295. |
max_open_files_display=? |
Maximum number of returned open files queried through MMC. |
The value ranges from 0 to 4294967295. |
symlink_enabled=? |
Whether the symlink function is enabled. |
The value is "yes" or "no", where: 1"yes": enables the symlink_enable function.
|
domainname_configurable_enable=? |
Whether to enable the function of using a system name as a resource user's domain name. |
The value is "yes" or "no", where: 1"yes": enables the domainname_configurable_enable function.
|
iotrace_enable=? |
Whether to enable or disable the CIFS I/O trace function. |
The value can be "yes" or "no", where:
|
administrators_privilege=? |
Privilege configuration of the Administrators group. |
The value can be "admin", "default_group", or "owner", where:
|
Views
Developer view, vstore developer view
Usage Guidelines
None
Example
- Disable the short name function.
developer:/>change service cifs short_name_enabled=no DANGER: You are about to disable the CIFS short name function for a device. After this operation, the CIFS share files provided by the device cannot be accessed. Suggestion: Before performing this operation, ensure that the CIFS short name function is no longer needed. Have you read warning message carefully?(y/n)y Are you sure you really want to perform the operation?(y/n)y Command executed successfully.
- Enable or disable the CIFS I/O trace function in the vStore developer view.
developer@vstore1:/>change service cifs iotrace_enable=yes WARNING: You are about to enable the CIFS I/O trace function. This operation may degrade the CIFS service performance. Suggestion: Confirm that you want to perform this operation based on the service type. Have you read warning message carefully?(y/n)y Are you sure you really want to perform the operation?(y/n)y Command executed successfully.
- Disable the SMB1 and short name functions.
developer:/>change service cifs smb1_enable=no short_name_enabled=no WARNING: You are about to disable the CIFS SMB1/SMB2 service. This operation causes the CIFS SMB1/SMB2 sharing service provided by the storage device unavailable. Suggestion: Before performing this operation, ensure that the CIFS SMB1/SMB2 sharing service is no longer needed. Have you read warning message carefully?(y/n)y Are you sure you really want to perform the operation?(y/n)y Command executed successfully.
- Disable the character conversion for the Mac operating system.
developer:/>change service cifs mac_transcoding_enable=no Command executed successfully.
- Enable the continuous directory query.
developer:/>change service cifs continuous_querydir_enable=yes Command executed successfully.
- Set the response speed of the Notify packet.
developer:/>change service cifs notify_response_qps=0 Command executed successfully.
- Enable the symlink function.
developer:/>change service cifs symlink_enabled=yes Command executed successfully.
System Response
None