Adding a home directory share
If you want to use the SMB home directory feature, you must add at least one share with the home directory property included in the share properties.
About this task
You can create a home directory share at the time you create the share by using the vserver cifs share create command, or you can change an existing share into a home directory share at any time by using the vserver cifs share modify command.
To create a home directory share, you must include the homedirectory value in the -share-properties option when you create or modify a share. You can specify the share name and share path using variables that are dynamically expanded when users connect to their home directories. Available variables that you can use in the path are %w, %d, and %u, corresponding to the Windows user name, domain, and mapped Linux user name, respectively.
Example
The following command creates a home directory share named %w. The oplocks , browsable , and changenotify share properties are set in addition to setting the homedirectory share property.
cluster1::> vserver cifs share create -vserver vs1 -share-name %w
-path %w -share-properties oplocks,browsable,changenotify,homedirectory
vs1::> vserver cifs share show -vserver vs1
Vserver Share Path Properties Comment ACL
---------- -------- ------------ -------------- -------- -----------
vs1 %w %w oplocks - Everyone / Full Control
browsable
changenotify
homedirectory