Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Feb 2007
    Posts
    134

    Default Default home directory

    Hello,

    In our WHM >> Basic cPanel/WHM Setup we have the Default Home Directory as /home . But the user accounts are created on /home2 . Why this is happening ??

    /home2 is a directory on separate hard drive of the server. In the file /etc/wwwacct.conf also we have /home as a home diretory.

    So please assist that other than WHM >> Basic cPanel/WHM Setup where should be the changes made on the server.

    Waiting for the reply.

    its_joe.

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Accounts will be created on the partition with the largest available space currently. It will look at all directories labeled /home*

    If you do not want this to happen, then mount the partition to something other than /home*

  3. #3
    Member madcow774's Avatar
    Join Date
    Oct 2002
    Posts
    19

    Default

    OK, I have the same problem where I have the default home directory set to /home. I added a second drive & mounted it as /home2. I then moved a bunch of accounts to the server & they were setup in /home2.

    I would like to move those accounts to /home & then mount /home2 as something else like /drive2. How can I move those accounts to /home?

  4. #4
    Member madcow774's Avatar
    Join Date
    Oct 2002
    Posts
    19

    Default

    Searching through the forums I found that this can be done through
    Account Functions>>Rearrange accounts

    When i moved an account to test it out I get this:
    Moving /home2/DOMAIN to /home/DOMAIN
    Editting /etc/passwd entry
    Editting httpd.conf entry
    Editting proftpd.conf entry
    Restarting ProFTPd
    Symlinking /home2/DOMAIN to /home/DOMAIN
    Restarting Apache
    Move Complete!

    My question now is this, I see that rearranging the accounts creates a sym link from /home2/DOMAIN to the new location. Once i am done moving these accounts, I plan on remounting /home2 & mounting it as something else. Do I now need to recreate a /home2 with all the symlinks?

Similar Threads & Tags
Similar threads

  1. Home directory not available
    By scifimeshes in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-15-2011, 12:15 PM
  2. Change default FTP home directory for users
    By dagurk in forum New User Questions
    Replies: 2
    Last Post: 06-12-2008, 03:39 PM
  3. Default Home Directory setting is not used anymore
    By h4f in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 01-10-2008, 12:14 PM
  4. Default Home Directory not working
    By jasgot in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-14-2007, 02:34 PM
  5. Overriding default home directory in Setup
    By barryj in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-13-2005, 07:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube