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.

Help with Rearrange Account Function

Discussion in 'General Discussion' started by TKP, Jan 20, 2011.

  1. TKP

    TKP Registered

    Joined:
    Jan 20, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello All,

    I need some help here. I made a mistake and moved an account to home2. Now the site has a "could not find error both on the site and site/cpanel.

    I tried to move the account back but receive the following message:


    Results of move:

    New homedir already exists, all actions canceled (was this account already moved?)



    How can I solve this?

    1. How to I leave the account where it is (home2) and get it to resolve

    -- or --

    2. Move it back to the directory it was in (home)

    Any and all help would be greatly appreciated!

    Thanks,
    Traciee
    :confused::eek:
     
  2. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hi Traciee,

    >> Take the backup of the account.
    >> Terminate the account.
    >> Restore the account again.

    This will resolve your issue. LOL !
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello Traciee,

    You could simply try putting in a symlink from /home to /home2 for the user, which would seem safer than terminating it:

    Code:
    ln -s /home2/username /home/username
    Replace username with the cPanel username of the account you moved. Of note, when you create a symlink, the already existing folder (in this case /home2/username) is first in the path and then the not yet existing path is second (in this instance /home/username).

    You are probably getting an error for the user for everything b/c you moved the account and /usr/local/apache/conf/httpd.conf is still using /home/username as the DocumentRoot for the site along with /etc/passwd for the user's home directory path, so symlinking the new location should correct that issue since then /home/username will still be accessible as a path for the account.

    Thanks.
     
Loading...

Share This Page