- Log into your server using SSH. If you are unsure how to do this, please see the article "How do I connect to my server using SSH".
- Make a note of the FTP username that you would like to replicate
- Issue the following command, replacing 'user' with the username that you're planning on replicating:
[root@hostname ~]# cat /etc/passwd | grep 'user'
- You will see similar results to the following:
- There are several items that you should take note of in the above results. The first item is the UID for the user: 'user', in the example its: 10004. You will need to use this UID number in the next command. Also, 'domain.com' will be displayed as the domain associated with that user.
Using the previous examples, the next command should look like this:
[root@hostname ~]# useradd -u 10004 -o -d /var/www/vhosts/domain.com -g psacln -s /usr/local/psa/bin/chrootsh user2
In the above example, replace '10004' with the UID that you received from the previous command, also be sure to replace 'domain.com' with the correct domain name.
- Now, we're going to issue another 'useradd' command, very similar to our previous command:
[root@hostname ~]# useradd -u 10004 -o -d /var/www/vhosts/domain.com -g psaserv -s /usr/local/psa/bin/chrootsh user2
- All that is left is simply giving the new user a password. Issue the following command to change the password for the new user you just created:
[root@hostname ~]# passwd user2
This article has been provided by Codero Hosting, the leading provider of reliable dedicated, managed and cloud hosting services. Need more information on this topic or to learn more about Codero’s hosting services please visit www.codero.com, chat with us online or give us a call at 866-2-CODERO.
- I have a dedicated server with Plesk 8.x. how can I change the hostname of my server from IPAddress.dedicated.abac.net to a domain name which I currently own?
- What is the domain preferences page in the Plesk control panel?
- How to setup domain backups in Plesk
- How can I set limits on a domain in the Plesk control panel?
- How do I add a domain in Plesk 8.x-9.x?