/usr/sbin/usermod -d /home/username -g username newuser
4.
chmod 771 /home/username
chown -R newuser:newuser /home/username/domains
chmod -R 775 /home/username/domains
chown -R newuser:newuser /home/username/mail
mv /usr/local/directadmin/data/users/username/domains /usr/local/directadmin/data/users/username/domains-old
ln -s /usr/local/directadmin/data/users/username/domains /usr/local/directadmin/data/users/newuser/domains
echo "domain.com" > /usr/local/directadmin/data/users/newuser/domains.list