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.

/home and /home2 + Symlinks

Discussion in 'General Discussion' started by Rogerio, Mar 29, 2018.

  1. Rogerio

    Rogerio Member

    Joined:
    Sep 26, 2016
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sao Paulo, Brazil
    cPanel Access Level:
    Root Administrator
    Hello,

    after use the "rearrange" feature to move an account between /home and /home2, a symbolic link (ln -s) remains in the original place. Can I delete it after some days? I believe it's created to avoid problems in current opened sessions.

    Disregard the fact that one user can direct refer to the original path (hardcoded) in a PHP script, for example.

    Password protected folders (Apache, base auth) can be a problem?

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The symbolic links are not absolutely required, and you can remove them if you prefer. Keep in mind their purpose is to ensure hard-coded paths (e.g. /home/user/public_html/cronjob.php) continue to work after rearranging the account. There's generally no downside to leaving the symbolic links in-place.

    Thank you.
     
  3. Rogerio

    Rogerio Member

    Joined:
    Sep 26, 2016
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sao Paulo, Brazil
    cPanel Access Level:
    Root Administrator
    Great, thank you. I'm moving to a new server, with /home and /home2 but /home2 is very large, so all transfers from the old server to the new server are moving the accounts to /home2, but the old server was /home, so, will not impact after rearrange.

    Features that I really miss on cPanel:

    1) choose the default partition to new accounts. It always picks the larger partition.
    2) rearrange accounts (move between partitions), only one account per time. Multiple moves at same time would be great.

    Thank you.
     
  4. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,727
    Likes Received:
    77
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    -> It fetches the default home directory that is put in the WHM basic configuration..

    -> I guess that should be provided.. You can put a feature request to the cPanel for the same thing.
     
    Rogerio likes this.
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    1. You can force the use of "/home1" as part of the account creation, but only by disabling the "Additional home directories matching the following value will also be used for new home directory creations. (Leaving this value blank disables the feature.) This option only takes one value." option by entering a blank value. However, that will then require you to set this option to the "home" value again when it comes time to rearrange the account. Thus, there's currently no support to do exactly what you seeking without manually changing the settings each time you need to rearrange an account. We do have an existing feature request for this functionality at:

    Set home directory for reseller

    Note that it references "reseller" in the title, but the body actually notes the desire to do this for both resellers and roots (as part of a package feature). I encourage you to vote and add additional feedback to that request.

    2. I encourage you to submit a feature request for the ability to rearrange multiple accounts:

    Submit A Feature Request

    Note that our feature request website is currently down for maintenance. It should resume functioning again within the next couple of days.

    Thanks
     
    Rogerio likes this.
  6. Rogerio

    Rogerio Member

    Joined:
    Sep 26, 2016
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sao Paulo, Brazil
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page