Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Exclude mount point from account creation options

Discussion in 'cPanel Developers' started by Edward T., Apr 23, 2018.

  1. Edward T.

    Edward T. Member

    Joined:
    Feb 7, 2017
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Delaware, United States
    cPanel Access Level:
    Root Administrator
    Hey,

    We have couple of custom mount points at system under /home*/* directories (like /home2/cloud).

    WHM recognizes these as home partitions and creates new accounts there.

    Could you please advice how can I exclude these?

    Thanks
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,819
    Likes Received:
    133
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Edward T.

    While I wouldn't recommend mounting anything under /home, the following setting at WHM>>Server Configuration>>Basic WebHost Manager Setup:


    Is what allows anything with /home in it to be matched. You can disable this by selecting the box with home in it and then leaving it blank. You can also modify this via CLI by editing /etc/wwwacct.conf to set HOMEMATCH to be blank as follows:

    Code:
    # grep HOMEMATCH /etc/wwwacct.conf
    HOMEMATCH
    
    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Edward T. likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice