How to add additional FTP users to a domain in plesk?
Getting
Started:
- 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:
| |
user:x:10004:2522::/var/www/vhosts/domain.com:/usr/local/psa/bin/chrootsh |
- 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 |
Related Articles
No related articles were found.
Attachments
No attachments were found.
Visitor Comments
No visitor comments posted.
Post a comment
Post Comment for "How to add additional FTP users to a domain in plesk?"
To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.