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.


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


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


Set User HOME Directory:

usermod --home /home/user username

Set required permission on /home/user

Restart ftp services:

/etc/init.d/vsftpd restart
  • noob question. Where exactly is this file and how do I restart ftp services? – Carl Johnson Jan 25 '16 at 13:58
  • which ftp tool+version you are using ? – Ramesh Chand Jan 25 '16 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 – Carl Johnson Jan 25 '16 at 14:00
  • You can look the file /etc/vsftpd.conf and restart service /etc/init.d/vsftpd restart – Ramesh Chand Jan 25 '16 at 14:05
  • the file vsftpd.conf and the /init.d/vsftpd aren't there – Carl Johnson Jan 25 '16 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.