I have installed vsftpd on ubuntu 10.04

When i login using ip , username and passowrd then i straight go to home directory of user.

is there any way that i can

1)Make separate user for only ftp
2)WHen they login via ftp, they should see the mounted drive i,e /media/shared_drive only not their home directory
3)They have all read and write access
4)Thanks
link|improve this question
feedback

2 Answers

up vote 0 down vote accepted

http://alien2thisworld.net/sitePages/tutorials/vsftpd_virtual_users_setup.html

I think this link covers what you want. You can accomplish #2 with symbolic links. #3 you'll have to set user permissions for the directories in question, I think.

link|improve this answer
feedback

symbolic links may not work properly, because they cannot be followed outside of a chroot jail.

instead, you can just mount the directory you want with the option "--bind" :

# mount --bind /media/shared_drive /home/ftp/pub
link|improve this answer
feedback

Your Answer

 
or
required, but never shown