Creating directories in a home directory path (domain-naming style) (2024)

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

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

  2. 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.

  3. 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.

  4. 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.

  5. Load the new CIFS homedir configuration into the storage system.

    For example, enter the following command: cifs homedir load -f

  6. 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

Creating directories in a home directory path (domain-naming style) (2024)
Top Articles
Latest Posts
Article information

Author: Sen. Emmett Berge

Last Updated:

Views: 6492

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Sen. Emmett Berge

Birthday: 1993-06-17

Address: 787 Elvis Divide, Port Brice, OH 24507-6802

Phone: +9779049645255

Job: Senior Healthcare Specialist

Hobby: Cycling, Model building, Kitesurfing, Origami, Lapidary, Dance, Basketball

Introduction: My name is Sen. Emmett Berge, I am a funny, vast, charming, courageous, enthusiastic, jolly, famous person who loves writing and wants to share my knowledge and understanding with you.