How To Add Additional FTP Users to a Domain in Plesk

This guide will show you how to create a separate FTP login for a specific domain using Plesk. This gives two different users the ability to connect to the same directory with the same permissions.

  1. Log into your server using SSH.

  2. Make a note of the FTP username that you would like to replicate

  3. Issue the following command, replacing ‘user’ with the username that you’re planning on replicating:

    [root@default ~]# cat /etc/passwd | grep 'user'

    You will see similar results to this:

    user:x:10004:2522::/var/www/vhosts/domain.com:/usr/local/psa/bin/chrootsh
  4. There are several items that you should take note of from the 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.
  5. Using the previous examples, the next command should look like this:

    [root@default ~]# useradd -u 10004 -o -d /var/www/vhosts/domain.com -g psacln -s /usr/local/psa/bin/chrootsh user2

    In the 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.

  6. Next, we’re going to issue another ‘useradd’ command, very similar to the previous command
    [root@default ~]# useradd -u 10004 -o -d /var/www/vhosts/domain.com -g psaserv -s /usr/local/psa/bin/chrootsh user2
  7. All that is left is simply giving the new user a password. Simply issue this command to change the password for the new user:
    [root@default ~]# passwd user2
  1. No comments yet.

  1. February 20th, 2009
  2. September 3rd, 2009
You must be logged in to post a comment.