I have installed vsftpd on ubuntu 10.04

When I login using ip , username and password 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


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.

| improve this answer | |

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
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy