Add a home directory search path
-
PDF of this doc site
-
Cluster administration
-
Volume administration
-
Logical storage management with the CLI
-
-
NAS storage management
-
Configure NFS with the CLI
-
Manage NFS with the CLI
-
Manage SMB with the CLI
-
Manage file access using SMB
-
-
-
Security and data encryption
-
Data protection and disaster recovery
-

Collection of separate PDF docs
Creating your file...
If you want to use ONTAP SMB home directories, you must add at least one home directory search path.
You can add a home directory search path by using the vserver cifs home-directory search-path add
command.
The vserver cifs home-directory search-path add
command checks the path specified in the -path
option during command execution. If the specified path does not exist, the command generates a message prompting for whether you want to continue. You choose y
or n
. If you choose y
to continue, ONTAP creates the search path. However, you must create the directory structure before you can use the search path in the home directory configuration. If you choose not to continue, the command fails; the search path is not created. You can then create the path directory structure and rerun the vserver cifs home-directory search-path add
command.
-
Add a home directory search path:
vserver cifs home-directory search-path add -vserver vserver -path path
-
Verify that you successfully added the search path using the
vserver cifs home-directory search-path show
command.
The following example adds the path /home1
to the home directory configuration on SVM vs1.
cluster::> vserver cifs home-directory search-path add -vserver vs1 -path /home1 vs1::> vserver cifs home-directory search-path show Vserver Position Path ----------- -------- ----------------- vs1 1 /home1
The following example attempts to add the path /home2
to the home directory configuration on SVM vs1. The path does not exist. The choice is made to not continue.
cluster::> vserver cifs home-directory search-path add -vserver vs1 -path /home2 Warning: The specified path "/home2" does not exist in the namespace belonging to Vserver "vs1". Do you want to continue? {y|n}: n