#1 (permalink)  
Old 11-05-2009, 01:47 PM
Registered User
 
Join Date: Nov 2009
Posts: 1
darreldamon is on a distinguished road
Changing account owner

I've done a search and probably didn't search for the right term.

I am in the process of migrating a cpanel account from one server to another. During the migration, I need to change the user name. For example, on oldhost, the files are located in /home/olduser/ - i.e. username is olduser. On the newhost, I need the same files located in /home/newuser - i.e. username is newuser.

I've looked in the backup and the name olduser is liberally sprinkled throughout the files. When I do the restore, instead of bringing the files into the /home/newuser/ directory, it builds a new /home/olduser/ directory and repopulates all the files. That in itself is not all that unusual, and probably expected behavior.

Is there a utility or an easy way to get the files in the correct directory on newhost?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-05-2009, 05:10 PM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,900
Infopro is on a distinguished road
Lightbulb

You might find this section of the documentation useful I bet.
More about /scripts/postwwwacct & /scripts/prewwwacct
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-05-2009, 10:33 PM
cPanelDon's Avatar
cPanel Staff (Administrator)
 
Join Date: Nov 2008
Location: Houston, Texas, U.S.A.
Posts: 1,511
cPanelDon is on a distinguished road
Lightbulb Modify an Account Username of existing users or during Account Transfers & Migrations

Quote:
Originally Posted by darreldamon View Post
I am in the process of migrating a cpanel account from one server to another. During the migration, I need to change the user name. For example, on oldhost, the files are located in /home/olduser/ - i.e. username is olduser. On the newhost, I need the same files located in /home/newuser - i.e. username is newuser.

Is there a utility or an easy way to get the files in the correct directory on newhost?
It is possible to change an existing account username using the Modify an Account function in WHM at the following menu path:
WHM: Main >> Account Functions >> Modify an Account
Related Documentation: ModifyanAccount < AllDocumentation/WHMDocs < TWiki

If root access is available on the source server that is being transferred from it is also possible to transfer an account and modify it to use a new local username in the same one-step process using the account transfer functionality via WHM at the following menu path:
WHM: Main >> Transfers >> Copy an account from another server
Related Documentation: CopyAccount < AllDocumentation/WHMDocs < TWiki
__________________
For hands-on assistance please reference our new support information page: Where should I go for support?
cPResources: Support Options - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation
-- cPanelDon - Donald Holl, Technical Analyst, cPanel Technical Support
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reseller Account Owner Solokron cPanel and WHM Discussions 2 08-25-2007 08:18 AM
Why does Mailman send owner mail to root instead of list owner? BraveX Developer Discussions 1 06-27-2007 11:37 AM
Changing owner of an account Anoxhosting cPanel and WHM Discussions 3 12-15-2003 01:49 PM
Modernbill Account Owner Express cPanel and WHM Discussions 0 05-01-2003 08:42 PM


All times are GMT -5. The time now is 09:58 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc