The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem Creating account

Discussion in 'General Discussion' started by comptech520, Jul 16, 2014.

  1. comptech520

    comptech520 Well-Known Member

    Joined:
    Feb 23, 2006
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    When I create a new account, it creates in in /home2 (which is a folder I created for my storage drive) because it has more free space. Any ideas on how I can force it to use /home instead of /home2?

    Enter the location where you wish for new users’ home directories to be created. By default all directories matching the "Home Directory Prefix" are checked for available disk space and the directory with the most free space will be used.

    Thanks!
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Remove the Home Directory Prefix. Or in /etc/wwwacct.conf, make it look like this:

    Code:
    HOMEDIR /home
    HOMEMATCH
    
    HOMEMATCH is what tells cpanel to match any folder with /home in it, and it will use whatever partition has the most space available. Removing this will force all users to /home.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, the instructions in the previous post are accurate. Note the "Leaving this value blank disables the feature." text in "WHM Basic cPanel & WHM Setup".

    Thank you.
     
Loading...

Share This Page