Assuming you already have an existing domain (example.com) with the primary FTP user (foo) with home directory (/var/www/vhosts/example.com), and you wish to create additional ftp users (bar) with the same access privileges as foo to subfolder like this /var/www/vhosts/example.com/sub_folder (make sure the folder already exists) or to main folder (/var/www/vhosts/example.com). To do this follow the instructions below:
- Login to shell with root access and issue this command:
# id foo
it will show something like that:
# uid=10013(foo) gid=2524(psacln) groups=2524(psacln)
- remember the uid of “foo” which is 10013, we will need it later.
- create user via the command below and use foo’s uid like this (this will let “bar” access subfolder):
# /usr/sbin/useradd -u 10013 -o -d /var/www/vhosts/example.com/sub_folder -g psacln -s /bin/false bar
- create password for bar:
# /etc/passwd bar(enter the new password and confirm it, does not have to be the same as foo’s)
You should now be able to use an FTP client to login with that user’s name and password. This is the only good solution for Plesk.