vserver cifs home-directory modify

Modify attributes of CIFS home directories

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The vserver cifs home-directory modify command modifies the CIFS home directory configuration for a CIFS server. To use the home directory options (-is-home-dirs-access-for-admin-enabled or/and -is-home-dirs-access-for-public-enabled), a home directory share must be configured with a dynamic share pattern preceded by a tilde(~). Valid dynamic share patterns are ~%w and ~%d~%w. The pattern %u is not supported with these options.

Parameters

-vserver <vserver> - Vserver
This parameter specifies the name of the CIFS server for which you want to modify the CIFS home directory configuration.
[-is-home-dirs-access-for-admin-enabled {true|false}] - Is Home Directory Access for Admin Enabled
This optional parameter specifies whether a user with Windows administrative privileges can connect to another user's home directory. The default value for this parameter is true.
[-is-home-dirs-access-for-public-enabled {true|false}] - Is Home Directory Access for Public Enabled (privilege: advanced)
This optional parameter specifies whether any user can connect to another user's home directory. The default value for this parameter is false.

Examples

The following example modifies the CIFS home directory configuration for the Vserver "vs1". It enables users with Windows administrative privileges to connect to another user's home directory, and enables any user to connect to another user's home directory.

cluster1::> vserver cifs home-directory modify -vserver vs1 -is-home-dirs-access-for-admin-enabled true
 -is-home-dirs-access-for-public-enabled true
    

The following example shows the usage of the share creation pattern ~%d~%w.

cluster1::> vserver cifs share create -vserver vs1 -share-name ~%d~%w -path %d/%w -share-properties homedirectory
    

The following example shows the usage of the share creation pattern ~%w.

cluster1::> vserver cifs share create -vserver vs1 -share-name ~%w -path %d/%w -share-properties homedirectory