Manage accessibility to users' home directories
By default, a user's home directory can be accessed only by that user. For shares where the dynamic name of the share is preceded with a tilde (~), you can enable or disable access to users' home directories by Windows administrators or by any other user (public access).
Home directory shares on the storage virtual machine (SVM) must be configured with dynamic share names that are preceded with a tilde (~). The following cases illustrate share naming requirements:
Home directory share name | Example of command to connect to the share |
---|---|
~%d~%w |
|
~%w |
|
~abc~%w |
|
-
Perform the appropriate action:
If you want to enable or disable access to users' home directories to… Enter the following… Windows administrators
vserver cifs home-directory modify -vserver vserver_name -is-home-dirs-access-for-admin-enabled {true|false}
The default istrue
.Any user (public access)
-
Set the privilege level to advanced:
set -privilege advanced
-
Enable or disable access:
vserver cifs home-directory modify -vserver vserver_name -is-home-dirs-access-for-public-enabled {true|false}
The default isfalse
. -
Return to the admin privilege level:
set -privilege admin
-
The following example enables public access to users' home directories:
set -privilege advanced
vserver cifs home-directory modify -vserver vs1 -is-home-dirs-access-for-public-enabled true
set -privilege admin
Displaying information about an SMB user's home directory path