Restricting users to their home folder using vsftpd on linux

Using vsftpd on linux ?

Got a user to work using a remote ftp client ?

The user can browse your entire file system ? This post is for you.

here is how to restrict a user to his home directory :

1. set the following values by editing vsftpd.conf. located at /etc/vsftpd/vsftpd.conf

chroot_list_enable=YES

chroot_local_user=NO

chroot_list_file=/etc/vsftpd/chroot_list

2. create a file /etc/vsftpd/chroot_list

3. edit the file and write the name of the user you want to restrict.

4. save

5. restart vsftpd

that’s it.

a little more info. in the above way you have to specify each user you want to restrict. it is also possible ┬áto specify which users you don’t want to restrict. in order to do this set

chroot_local_user=YES

now the list file contains users that you don’t want to restrict.

e

About these ads

3 thoughts on “Restricting users to their home folder using vsftpd on linux

  1. Pingback: Restricting users to their home folder using vsftpd

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s