Plesk Multiple FTP Accounts Per Domain

Plesk on Media Temple's (dv) server doesn't allow you to create multiple FTP accounts per domain. For instance, I want to create domain.com/my/folder as a FTP account. They are building this functionality into Plesk 9, but until then you have to do a little command line work.
Plesk allows you to create multiple FTP accounts per domain with the command line. Basically you do the following:
Bash:
/usr/sbin/useradd -d /your_domain/some/location -s /bin/false USER_NAME /usr/sbin/usermod -G psacln USER_NAME chmod 755 $HTTPD_VHOSTS_D/your_domain/some/location chown USER_NAME:psacln $HTTPD_VHOSTS_D/your_domain/some/location chmod 751 $HTTPD_VHOSTS_D/your_domain/httpdocs passwd USER_NAME
The article I linked to above goes into more detail on each command. However they left out one key command at the end. "passwd" allows you to set the user's password. Voila, multiple accounts per domain!
Comments
Try ISP-config..
your_domain/some/location = location to exactly where (where we want the ftp user to have access to?)
USER_NAME = the new user name ? the old user name? a plesk created name?
/your_domain/some/location = new location? same location?
/your_domain/some/location = (same as above)
passwd USER_NAME = this would make a username with the password username? can we change this ?
Thanks a lot for your post, im going to give this a shot later...yahoo
So my steps were 1,6,2,3,4,5 using the line numbers above. Give this a try if you follow the steps but are still unable to login with your new user.
Thanks
http://updel.com/additional-ftp-plesk/
Anyone have any ideas?
/usr/sbin/usermod -d /subdomain/directory/. Otherwise, I have no idea without trying things myself sorry.I'll keep hunting for a solution. If you have any other ideas, please add them to the mix. I'm not proficient at CLI at all, especially not in server management, so anything helps me out.
Okay, back to my problem. For some reason, the new user I created was put into a group with the same name as the username. I discovered this by viewing:
# cat /etc/group
The last line of this file said:
newuser:x:10008 [the number there may be different for you]\
The space that newuser is in is actually the name of a group.
From there, I renamed the group to something else:
# vi /etc/group
then:
i [to INSERT and modify line, changed newuser to newgroup]
ctrl-c
:q [to quit vim]
Then I changed the group of the directory and all subfolders of that directory that I wanted this user to access:
chgrp -hR newgroup /path/to/folder
This worked like a charm for me, but your experience might be different.