Skip to main content

Managing 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).

Before you begin

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 nameExample of command to connect to the share
~%d~%wnet use * \\IPaddress\~domain~user /u:credentials
~%wnet use * \\IPaddress\~user /u:credentials
~abc~%wnet use * \\IPaddress\abc~user /u:credentials
Perform the appropriate action:
If you want to enable or disable access to users' home directories to...Enter the following...
Windows administratorsvserver cifs home-directory modify -vserver vserver_name -is-home-dirs-access-for-admin-enabled {true|false}

The default is true .

Any user (public access)
  1. Set the privilege level to advanced:

    set -privilege advanced
  2. Enable or disable access:

    vserver cifs home-directory modify -vserver vserver_name -is-home-dirs-access-for-public-enabled {true|false}

    The default is false .

  3. Return to the admin privilege level:

    set -privilege admin

Example

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