Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    BWS
    BWS is offline
    Member
    Join Date
    Nov 2003
    Posts
    36

    Default Change Reseller

    Hi,

    I recently bought my own dedicated, and copied several accounts from my old server (where I was a reseller) using WHM's copy function.

    However this has meant that the accounts that I copied over have retained my reseller username as their reseller when I list the accounts (and obviously on the new server I'm not a reseller) is there any way of changing this?

  2. #2
    BWS
    BWS is offline
    Member
    Join Date
    Nov 2003
    Posts
    36

    Default

    Not to worry - Found it...

    Edit the users file in /var/cpanel/users

  3. #3
    Member
    Join Date
    Aug 2003
    Posts
    6

    Default

    You can also change account ownership in WHM under account functions.

  4. #4
    BWS
    BWS is offline
    Member
    Join Date
    Nov 2003
    Posts
    36

    Default

    Using change ownership wouldn't work, as it listed me as the owner, but my old username as the reseller!

  5. #5
    Member
    Join Date
    May 2003
    Location
    Calcutta
    Posts
    24

    Arrow change ownership for accounts

    Just an FYI ::

    I had to change ownership on a lot of domains.
    There is no internal script for that, but i made a quick perl script that would do the job, just sharing it for others

    #!/usr/bin/perl

    $domains{'domain_name.com'} = 'username';
    # Other domains
    # Come here

    for (keys %domains) {
    my $user = $domains{$_};
    if (! -e "/var/cpanel/users/$user") { print "Domain $_ has changed usernames [$!]"; exit }

    open (R, "/var/cpanel/users/$user" ) || die "how ? $a{$_} [$!] ";
    open (W, ">temp.txt") || die "Error cant open temp file [$!]";
    while (<R>) {
    chomp;
    if (/OWNER=root/ ) { print W "OWNER=owner_user_name\n"; } else { print W "$_\n"; }
    }
    close (R);
    close (W);
    print `mv temp.txt /var/cpanel/users/$user`;
    # rename ("temp.txt", "/var/cpanel/users/$user" ) || die "Error rename $user [$!]";
    }

    For some reason the rename didnt work for me , mv did though,,

    Cheers

    change ownership account multiple

  6. #6
    Member
    Join Date
    Feb 2005
    Posts
    13

    Default

    Hi,

    I'm interested in this "change ownership for multiple accounts" script but I don't know how to use it. Can you give me a hint or something?

    Thanks,

    I.

Similar Threads & Tags
Similar threads

  1. can i change the user name of reseller?
    By meeti in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-21-2008, 03:07 PM
  2. domain name change for reseller
    By shann in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-22-2006, 01:15 PM
  3. Change Reseller Bandwidth
    By oleanhst in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-11-2006, 02:57 AM
  4. change reseller domain
    By makan in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-23-2004, 08:13 PM
  5. Reseller Change Problems
    By bens in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-13-2002, 01:28 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube