Share a domain between 2 users


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » DirectAdmin

Share a domain between 2 usersLast Modified: Apr 14, 2005, 11:02 am
Note: This how-to guide was provided by a client, and has not been tested by us.

Assumptions:
- You currently have user named username with domain domain.com
- You will create a new user named newuser to share domain.com
- newuser won't have any of his own domains other than domain.com

Steps:

1. Create a new user named newuser with a dummy domain from the reseller level.
2. Log on to the server as root.
3. execute (Redhat):

/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

5. Edit /etc/proftpd.passwd and update the login path for newuser

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST