If the cifs.home_dir_namestyle option is domain, you can create home directories by editing the /etc/cifs_homedir.cfg, creating the directories, and setting the permissions on the directories.
Steps
- Open the /etc/cifs_homedir.cfg file and add the path that represents where the home directories will exist.
The home directories will exist within folders named for the NetBIOS domains to which each user belongs. For example, add the path /vol/vol1/homedir to the /etc/cifs_homedir.cfg file.
- In the directory that you added to the /etc/cifs_homedir.cfg file, create a directory for each domain.
For example, if there are two domains, HQ and UK, create a /vol/vol1/homedir/hq/ directory and a /vol/vol1/homedir/uk/ directory.
- In each domain directory created in Step 2, create home directories for the users in that domain.
For example, if two users have the name jsmith and they are in the HQ domain and the UK domain, create the /vol/vol1/homedir/HQ/jsmith home directory and the /vol/vol1/homedir/UK/jsmith home directory.
- Make each user the owner of his or her home directory.
For example, make HQ\jsmith the owner of the /vol/vol1/homedir/HQ/jsmith home directory and UK\jsmith the owner of the /vol/vol1/homedir/UK/jsmith home directory.
The user with the name HQ\jsmith can attach to the jsmith share corresponding to the /vol/vol1/homedir/HQ/jsmith home directory. The user with the name UK\jsmith can attach to the jsmith share corresponding to the /vol/vol1/homedir/UK/jsmith home directory.
- Load the new CIFS homedir configuration into the storage system.
For example, enter the following command: cifs homedir load -f
- Make sure that the CIFS homedir domain name style is working by entering the following command: cifs homedir showuser user_name
For example, enter one of the following commands: cifs homedir showuser hq/jsmithcifs homedir showuser uk/jsmith
Copyright © 1994-2014, NetApp, Inc. All rights reserved.
Part No. 215-08750_A0
February 2014
Updated for 8.2.1