Changing a users shared ip thru ssh

niceboy

Active Member
Sep 29, 2011
41
1
58
cPanel Access Level
Root Administrator
Hi,

Is there any ssh command to change shared ip of a specific user to a different ip?

The situation is..

When I restore a full cpanel backup, it is on main server ip by default. But, my reseller uses a different shared ip than the server ip for his clients accounts.

Is it possible to change the restored account to reseller shared ip thru a ssh command(I know it can be done thru whm but it wastes time)?

OR

While restoring the full backup, is it possible to specify to place the hosting account on my resellers shared ip instead of default main server ip?

thanks for help.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

Yes, you could add the "ip" flag to the /scripts/restorepkg command. EX:

Code:
/scripts/restorepkg --ip=0.1.2.3 username
Thank you.