How to change a Reseller's ID?

SupermanInNY

Verified User
Joined
Sep 28, 2004
Messages
419
Hi there,

I created a Reseller account with the name:

dani

Now,. I need to change his group name/username to
john

How do I do that?

I can't seem to find a command for that anywhere in the directadmin cp.

In the linux box his home directory is still using /home/dani and it should be
/home/john

Of course his group name and username are also of need to be changed.

Is there a quick way to go about it through the DirectAdmin or do I need to invoke a shell command to change Username and Group name?

Thanks,

-Alon.
 
There is no easy way to do this through Directadmin, although it has been requested for the admin level at least. You will need to run a shell command to change the user and group name, as well as modify all relevant configurations with the updated information.

It would be much easier to just make a backup of the data, delete the user, create a new one with the correct information, and then restore the information. But I don't know how to do that for a reseller, since there are probably a lot of configurations that depend on that username. (For example, all users of that reseller).
 
From John:

Hello,

There is no built in "username change" tool in DA. If the reseller has users under him, it would be easiest to do it via the shell manually. If he doesn't have any users, then you could make a backup of his user data, delete his account, create is with the new username and restore the user data to it.

Manually, you'd need to change several things:

1) his system username and group in the /etc/passwd and /etc/group and /home/username
2) his name in:
/usr/local/directadmin/data/admin/reseller.list
/usr/local/directadmin/data/users/username
/usr/local/directadmin/data/admin/username/user.conf

and for each user in /usr/local/directadmin/data/users/hisuser/user.conf -> the "creator" value.

/usr/local/directadmin/data/admin/ips/* (if he has any IP's in his name).

Also, the /etc/proftpd.passwd file (for his main ftp account) and the alias in /etc/virtual/domain.com/aliases

It's possible I've missed something, but that's the bulk of it.


As noted from John and
jmstacey replies the process is of a need to do and from a correspondence with John, it is on the to-do list... but not on the immediate thing to do.

I resolved it in the suggested manor of creating a new account and then transfering files (this is a fairly new reseller account so it had very few files to actually move).
I'm concerned with the scenario that I'm encountering lots of small resellers' going out of business and transfering the ownership to another person who want to have his personalized named and I'm not going to make such a change to anyone in fear of breaking something.
This should be a fairly simple process to do as the files names are known.
(dont' forget the /var/lib/mysql).

-Alon.
 
Hey Superman :) ...

The other way, which both appear to have forgotten, is to create a new reseller and then use the script (somewhere in these forums) someone created to move users between resellers.

It's here somewhere.

My PM mailbox is once again empty and taking messages :) .

Jeff
 
Back
Top