How can I limit users of vsftp to only their home directory?

Updated -

There are situations when you do not wish FTP users to be able to access any files outside of their own home directory. The vsftp daemon can be chrooted to implement this policy.

Edit the file /etc/vsftpd/vsftpd.conf and add this line:


Remember to restart the vsftpd service after saving the changes in your configuration...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content