Skip to main content

Manage accessibility to users' home directories

Contributors netapp-ahibbard netapp-thomi

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 name Example of command to connect to the share

~%d~%w

net use * \\IPaddress\~domain~user/u:credentials

~%w

net use * \\IPaddress\~user/u:credentials

~abc~%w

net use * \\IPaddress\abc~user/u:credentials

Step
  1. 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 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

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