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.

Create New Account Puts directory on backup hard drive?

Discussion in 'General Discussion' started by BlackRain, Jun 9, 2009.

  1. BlackRain

    BlackRain Well-Known Member

    Joined:
    May 28, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Today, I used WHM to create a new account for new domain name.

    The only problem is that the WHM/CPanel software is building the new account on the backup hard drive and not the primary where all the other domain directorys are?

    Anyone know how to correct this?

    Homeroot: /home2

    Should be

    Homeroot: /home
     
    #1 BlackRain, Jun 9, 2009
    Last edited: Jun 9, 2009
  2. BlackRain

    BlackRain Well-Known Member

    Joined:
    May 28, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I confirmed my default "Default Home Directory" is /home in Main >> Server Configuration >> Basic cPanel/WHM Setup.

    However, each time a create a new account it gets put in /home2

    Is there any way to change this?

    :confused:
     
  3. BlackRain

    BlackRain Well-Known Member

    Joined:
    May 28, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Upon further reading it looks like the reason Cpanel/WHM is forcing the new account to the backup harddrive is this:

    There has to be a way around this as I have plenty of room on the original drive.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I'm confused. What's the reasoning behind creating a /home2 on your drive that should only be used for backups?
     
  5. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
  6. H2Hosting.com

    H2Hosting.com Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    The same problem. I want to create new accounts on /home, not in /home2!!! Why when I set default to /home but get new accounts in /home2 ???
     
  7. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    To enforce a specific path, please use the following feature in WHM and customize both options specified below:

    WHM: Main >> Server Configuration >> Basic cPanel/WHM Setup
    * Default Home Directory
    * Home Directory Prefix

    For example, the following should work to enforce new accounts being created in a path of "/home" and not a different path such as "/home2":
    1.) Set the option "Default Home Directory" to "/home"
    2.) Unset the option "Home Directory Prefix" so that it is blank or empty (i.e., not defined).

    Related Documentation: Basic cPanel/WHM Setup
     
  8. H2Hosting.com

    H2Hosting.com Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    Thank you. It works fine.
     
  9. l00ph0le

    l00ph0le Member

    Joined:
    Aug 16, 2007
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    I have the same problem...what would be the proper way to move these accounts back over to the proper /home directory..I would have to delete the symbolic link as well i take it .
     
  10. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Rearranging accounts between partitions may be performed using WHM via the following menu path:
    WHM: Main >> Account Functions >> Rearrange an Account
    Documentation: Rearrange Accounts
     
  11. l00ph0le

    l00ph0le Member

    Joined:
    Aug 16, 2007
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for that tip..I actually deleted the symbolic link, and did a cp -rp from the one drive to another..everything seems to be ok..I figured since the system was viewing a symbolic link that cpanel would not notice the difference between the 2.

    Now I realize that I am not sure which directory cpanel is dumping mail and other data into...Cpanel assums the account is in home2 when I manually moved everything back over to home via copy..What to do now?
     
  12. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    So that a more accurate diagnoses can be formed please let us know the following:
    1.) Are any related errors or symptoms presently being experienced?
    2.) Was the original home directory removed from the /home2 partition, or was it just renamed?
    3.) If the directory was removed or renamed, was a new symlink created in its place?
    4.) Were any configurations manually edited to use the new home directory path?
    5.) Please let us know the output of the following two commands, where "username" should be replaced by that of the affected user account:
    Code:
    # stat /home/username
    # stat /home2/username
    If needing to create a new symlink, here is a basic example that can be used, where "newpath" and "oldpath" represent the new and old home partitions:
    Code:
    # ln -insv /newpath/username /oldpath/username
     
  13. l00ph0le

    l00ph0le Member

    Joined:
    Aug 16, 2007
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Don,

    Thanks for the tips..
    Cpanel was still dumping e-mail and user information into the old directories on /home2, since i had not deleted the old directory while i made sure everything was working.. If i deleted a directory cpanel was throwing out an error.

    So basically I deleted the directories on /home(as I had copied them there), used whm to reassign the user account and everything seems to be ok at this point.

    Why does cpanel create a symlink on /home2 after moving the directories with reassign account?
     
  14. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The symlink is useful as a precautionary measure; for example, a user may have custom scripts that define a full path, and by utilizing a symlink such issues should be negated while allowing time for the custom scripts to be manually updated by a system administrator or by the user.
     
Loading...

Share This Page