Hi,
Finally you came here to know how to create additional FTP user account for a domain in plesk control panel, no wonder i will explain you its pretty simple, all you need is to be root of the server.
Let’s get started.
Login to the server using root account and add a user which you need to restrict the files/folders that the user can access by using the following command.
#useradd -d /var/www/vhosts/domainname.tld/path/to/folder/
now a user will be created, but the user can access other files under / partition where the server has read permission to other users, this is a big security hole so you need make sure that the user shouldn’t access other files in the server except the folder which he should access. So, you have to change change the group id for that particular user, this can be done by following the steps below.
All the user details will be in /etc/passwd file, there you need to change the group id from
username:x:500:500::/var/www/vhosts/domainname.tld/path/to/folder/:/bin/bash
username1:x:501:501::/var/www/vhosts/domainname.tld/path/to/folder/:/bin/bash
to
username:x:500:2425::/var/www/vhosts/domainname.tld/path/to/folder/:/bin/bash
[ Above I have changed the group id(500) to 2425 which is the default psactl group id for Plesk control panel it may differ for your server, you can check it with other FTP user names and use that for the new user]
Now you should also change the shell for the user which is currently set to user as/bin/bash, where the user can access the server using SSH, you need to change it to /bin/false which will make the user to use only FTP service.
That’s it, a new FTP user is created in Plesk control panel.
Thank you for viewing helpinlinux.com