I have a folder:


How would one go about setting up an FTP account with upload/download for that folder only with no other access?

  • Is this to vague? – Otoris May 12 '12 at 6:57
  • Yes, it is ;) What ftp server are you using? – Rinzwind May 12 '12 at 20:13

At first a warning: Be careful when using FTP, because neither authentication nor data transfer are encrypted.

This information is basically compiled from looking at the manpages and has not been tested, however it should work out that way.

$ man vsftpd.conf

Append the following lines to your vsftpd configuration:


Then add each user you want to lock to their homedir to the chroot.list file. You can change a users homedir by using

$ sudo usermod -d /path/to/homedir user

I hope this helps.

  • I was going to say chroot them into their home dirs, but you seem to have beaten me to it. I haven't tested it either but it sounds sane. – gecko May 12 '12 at 20:33
  • I think this did help! But I ran into an issue where it is giving me this: 500 OOPS: cannot change directory:/srv/ftp_folder/ I also tried chown and chgrp on the ftp_folder but no luck. – Otoris May 13 '12 at 7:22
  • At login time? Have you changed the users homedir to /srv/ftp_folder? Can you verifiy this in /etc/passwd? Have you restarted vsftpd after changing the homedir? – mweinelt May 13 '12 at 7:28

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.