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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Exclude mount point from account creation options

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

  1. Edward T.

    Edward T. Registered

    Joined:
    Feb 7, 2017
    Messages:
    3
    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:
    944
    Likes Received:
    66
    Trophy Points:
    103
    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,
     
    Edward T. likes this.
Loading...

Share This Page