How To Lock Users To Home Directory With VSFTP

It is very easy to lock a user to their home directory. Open up your vsftpd.conf file, which is usually located in “/etc/vsftpd/vsftpd.conf”. Either addor un-comment the following lines from your vsftpd.conf file.

Once you have added the above lines, restart vsftp for the changes to take effect.

This will now lock a user to their home directory, preventing them from being able to move outside of their home directory. To correctly use this as an FTP client, you will need to alter the home directory of the linux user to make this work as a full on useful FTP client.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.