ftp access to files outside base directory

It is possible to grant ftp access to files outside the home directory of the user.

#vi /etc/vsftpd/vsftpd.conf

**Uncomment or add the following : **

chroot_local_user=YES

Now create a directory to mount the folder to users home directory which you want to grant access to:

mkdir /home/username/extraaccess

mount --bind /folder/to/grant/access/ /home/username/extraaccess

[–bind option is used to remount a subtree somewhere else]

In order to make this permanent include this in the fstab:

/folder/to/grant/access/ /home/username/extraaccess none bind 0 0