Creating a home directory configuration using the %w and %d variables
You can create a home directory configuration using the %w and %d variables. Users can then connect to their home share using dynamically created shares.
Example
The commands in the following example create a home directory configuration with the following settings:
The share name is %w.
The relative home directory path is %d/%w.
The search path that is used to contain the home directories,
/home1, is a volume configured with NTFS security style.The configuration is created on
SVM vs1.
You can use this type of home directory configuration when users access their home directories from Windows hosts. You can also use this type of configuration when users access their home directories from Windows and Linux hosts and the file system administrator uses Windows-based users and groups to control access to the file system.
cluster::> vserver cifs share create -vserver vs1 -share-name %w
-path %d/%w -share-properties oplocks,browsable,changenotify,homedirectory
cluster::> vserver cifs share show -vserver vs1 -share-name %w
Vserver: vs1
Share: %w
CIFS Server NetBIOS Name: VS1
Path: %d/%w
Share Properties: oplocks
browsable
changenotify
homedirectory
Symlink Properties: enable
File Mode Creation Mask: -
Directory Mode Creation Mask: -
Share Comment: -
Share ACL: Everyone / Full Control
File Attribute Cache Lifetime: -
Volume Name: -
Offline Files: manual
Vscan File-Operations Profile: standard
cluster::> vserver cifs home-directory search-path add -vserver vs1 ‑path /home1
cluster::> vserver cifs home-directory search-path show
Vserver Position Path
----------- -------- -----------------
vs1 1 /home1
Give documentation feedback