1

I have ftp server running on my raspberry pi and I have to users there I want to limit one user's access only to his home folder (/home/user), so when he logs in via ftp he can't go to other folders only his home folder and folders inside his home folder.

1 Answer 1

1

Users can be limited to their home directories by uncommenting /etc/vsftpd.conf file:

chroot_local_user=YES

To limit a specific list of users, allow only their home directories:

chroot_list_enable=YES
chroot_list_file=/etc/vsftp.chroot_list

Set User HOME Directory:

usermod --home /home/user username

Set required permission on /home/user

Restart ftp services:

/etc/init.d/vsftpd restart
5
  • noob question. Where exactly is this file and how do I restart ftp services? Jan 25, 2016 at 13:58
  • which ftp tool+version you are using ? Jan 25, 2016 at 13:58
  • I've installed apache2 php5 and I was able to connect to Raspberry Pi via sftp, I guess some default apache one Jan 25, 2016 at 14:00
  • You can look the file /etc/vsftpd.conf and restart service /etc/init.d/vsftpd restart Jan 25, 2016 at 14:05
  • the file vsftpd.conf and the /init.d/vsftpd aren't there Jan 25, 2016 at 14:19

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.