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!

Duplicate an account to a new account on the SAME server?

Discussion in 'General Discussion' started by bzk, Jan 19, 2006.

  1. bzk

    bzk Registered

    Joined:
    May 21, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    I want to clone an account that's on my server (so that I can test things out on the test site before I try it out on the real site) to another account on the same server. I have plenty of domain names available, so that's not an issue.

    I see options to copy an account from another server, but I can't use this option since the usernames are the same.

    Thanks in advance for the help.
     
  2. bzk

    bzk Registered

    Joined:
    May 21, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    No response yet?

    Yes, I did search, but I didn't find anything that inspired confidence... :(
     
  3. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    168
    Best answer I know:

    1. Backup Account

    2. Modify account and change username and domain

    3. Create new account (original name)

    4. Restore backup you just made to new account at old name.

    Kludge - but should work fine.

    Make sure to restart apache - just in case.

    If server is real busy, stop exim cppop, apache and service manager before starting.



    I did not reply earlier as I thought someone might have a better idea.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    That's probably the simplest way. You could also create a backup tarball using /scripts/pkgacct then expand it and search and replace with a new username and domain and the tarball it manually and then restorepkg it - bit messy though.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice