Otoris Asked: 2012-05-09 19:31:45 +0800 CST2012-05-09 19:31:45 +0800 CST 2012-05-09 19:31:45 +0800 CST How to create an FTP account for one folder? 772 I have a folder: /srv/ftp_folder How would one go about setting up an FTP account with upload/download for that folder only with no other access? ftp vsftpd 1 Answers Voted Best Answer mweinelt 2012-05-13T12:32:38+08:002012-05-13T12:32:38+08:00 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: chroot_local_user=NO chroot_list_enable=YES chroot_list_file=/etc/vsftpd/chroot.list 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.
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.
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
I hope this helps.