Hi
Sorry, I'm a french user.
You can speak to your admin to create another reseller acccount.
After that, your admin can move your account on your new reseller account
He can deleted at finish
Your admin can find help on
http://help.directadmin.com/item.php?id=93
to moving your users
I believe there's a DA script for changing usernames.
I don't know if it works for resellers.
Look in the DA scripts directory.
Read the script to see if it does everything that needs to be done.
Make backups first.
Jeff
I don't see where you mentioned changing the domain-name; only the username .
You can easily change a domain name from the Domain Setup screen from the user login.
Jeff
cd /usr/local/directadmin/scripts
./change_username.sh [b]olduser[/b] [b]newuser[/b]
The script that can do it is:The username is saved in so many places, it's not advisable to change it manually.Code:cd /usr/local/directadmin/scripts ./change_username.sh [b]olduser[/b] [b]newuser[/b]
Imap files live in:
/home/username/imap/domain.com/user/Maildir
or for the main account:
/home/username/Maildir
Double check the /etc/virtual/domain.com/filter to ensure it's been updated as well with the new username.
John
cd /etc/virtual/[b]domain.com[/b]
perl -pi -e 's#/home/[b]oldusername[/b]#/home/[b]newuser[/b]#' passwd
Ok, check the /etc/virtual/domain.com/passwd file if you are using dovecot.
The path to the email accounts should point to the user.. I believe the change_username.sh script was created pre-dovecot, so they'll likely need changing. Try this code:which should swap all of the home paths around for you.Code:cd /etc/virtual/[b]domain.com[/b] perl -pi -e 's#/home/[b]oldusername[/b]#/home/[b]newuser[/b]#' passwd
For mysql, the script change_database_username.php is called by the change_username.sh script for the mysql table data... and for the database itself, the mysqld process is shut off temporarily and the file moved around. Are you by chance using debian? As inspecting the code, it seems to be attempting to access the database in /var/lib/mysql instead of /home/mysql
John
I believe there's a DA script for changing usernames.
I don't know if it works for resellers.
Look in the DA scripts directory.
Read the script to see if it does everything that needs to be done.
Make backups first.
Jeff
Ok, check the /etc/virtual/domain.com/passwd file if you are using dovecot.
The path to the email accounts should point to the user.. I believe the change_username.sh script was created pre-dovecot, so they'll likely need changing. Try this code:which should swap all of the home paths around for you.Code:cd /etc/virtual/[b]domain.com[/b] perl -pi -e 's#/home/[b]oldusername[/b]#/home/[b]newuser[/b]#' passwd
For mysql, the script change_database_username.php is called by the change_username.sh script for the mysql table data... and for the database itself, the mysqld process is shut off temporarily and the file moved around. Are you by chance using debian? As inspecting the code, it seems to be attempting to access the database in /var/lib/mysql instead of /home/mysql
John
#the dovecot passwd file uses the same format as the ftp.passwd file.
ftp_pass_swap $1 $2 /etc/virtual/$i/passwd