Darth Revenge
Feb 8 2002, 09:00 AM
Is it possible to create more than 1 ftp account for 1 domain ?
Danimal
Feb 11 2002, 10:38 PM
Sure!
This is very possible. The problem is that you can't really have multiple user accounts with the same home directory ('cause then who would 'own' the directory?).
For examle, when you create the main FTP account in Plesk, it creates a user account for the machine with a home directory of the domain name... i.e.:
user: joeuser
domain: joesdomain.com
by default, it will create an entry in /etc/passwd as:
joeuser:x:::/usr/local/psa/home/vhosts/joesdomain.com:/bin/false
If you wanted to create another FTP account and have it log into the same domain, you'd be creating another user account with the same home directory, and ProFTP doesn't like that (I just tried).
Of course, you can create a user account that goes to a different directory, maybe a subdirectory of the main account.
To do that, run /sbin/linuxconf and go to the User section. There's a place to add a user. Make sure that you put /bin/false for the shell, otherwise the account will have shell access.
Of course, if you create a web user in Plesk, it automatically creates the subdirectory (under .../vhosts//web_users/) and creates an FTP account for that web user (you can see it in /etc/passwd). Maybe this will work for your needs?
Best of luck!
-Danimal