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.

How to restore an acconut from cpmove backup with another username?

Discussion in 'General Discussion' started by Oleg.Gricik, Feb 2, 2012.

  1. Oleg.Gricik

    Oleg.Gricik Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi

    Is there any way to restore an account with another username?
    For example:
    --
    I have a cpmove-vasya.tae.gz (the username is vasya)
    I already have an account which is associated with vasya and want leave with current changes.
    I need to restore mentioned backup with another username (the username is petya).
    --
    Can this be done via /scripts/restorepkg?
    Also, is there any list of flags for cPanel scritps?

    Kind Regards
    Oleg G.
     
  2. Oleg.Gricik

    Oleg.Gricik Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Clarification:
    with another domain names or without domain records in httpd.conf and cPanel files at all
     
  3. hoststop

    hoststop Well-Known Member

    Joined:
    Dec 6, 2011
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Bolton, UK
    cPanel Access Level:
    Root Administrator
    As far as I know, you can't do that. Other alternative is to restore the account on some other server, change the username, domain and other stuff. Create a backup and restore it on the new server.

    A long process. But, this needs to be followed in your situation as cPanel does not has a inbuilt script.
     
  4. Oleg.Gricik

    Oleg.Gricik Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi

    Thank you for you suggestion.
    I would be greate to know all file names where cPanel makes records during installation.
    I know the following ones:
    httpd.conf
    /etc/valiaces/
    /etc/userdomains
    /etc/trueuserdomains
    /var/cpanel/users/
    /etc/trueuserowners (for resellers)
    /etc/group
    /etc/passwd


    Kind Regards
    Oleg G.
     
    #4 Oleg.Gricik, Feb 2, 2012
    Last edited: Feb 2, 2012
  5. hoststop

    hoststop Well-Known Member

    Joined:
    Dec 6, 2011
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Bolton, UK
    cPanel Access Level:
    Root Administrator
    This includes many files, apache, bind, domainusers and other files in /etc.
     
  6. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    387
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Hello,

    Manually changing the username in variuos files should be a bad idea. Best is the "Long process" ( but very neat ) mentioned by hoststop.

    Thank you,
    Nibin.
     
  7. hoststop

    hoststop Well-Known Member

    Joined:
    Dec 6, 2011
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Bolton, UK
    cPanel Access Level:
    Root Administrator
    That's right. If you have a good knowledge of cPanel and it's structure, making changes is not that hard. It's just that you should be familiar with the changes you do.
     
  8. Oleg.Gricik

    Oleg.Gricik Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi

    Some customers (resellers) changes usersnames of theur subaccounts.
    As the result we have problems in /etc/group and httpd.conf
    I'm not sure why it is happening, but resulted username isn't the same as it was before changing.
    For example:
    Old username: click
    New username: theclick
    Change it
    Result:
    /etc/group file has:
    thetheclickx:number (correct record should be: theclick:x:number)
    httpd.conf file has:
    old records with click as the usename.
    (this are the only things which were detected)

    Did you have such problems?

    Kind Regards
    Oleg G.
     
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    How are they changing the account usernames?

    If you suspect something is not right with your cPanel server you might want to consider opening a ticket to cPanel Support. You can get there right from within your WHM, there's a "Support" menu, top right corner of every page with a link to "Contact cPanel" you can use.
     
  10. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    What you are describing is a bug that is fixed in 11.32 (pending release) and 11.30.6 (also pending release). It most often occurs when the new user name is a variation of the old user name.

    The case number that will appear in the change log is 56270.
     
  11. 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
    This case was resolved in 11.30.6.3
     
Loading...

Share This Page