In this article, I am going to explaining you about the access given to directories which are outside the home directory or outside the docroot of the codebase. I will tell you the scenario when we need to provide this kind of access for FTP user.
Let’s assume you have a client who wants access to two or three directories which are inside the docroot of the codebase. But you don’t want to provide access to whole docroot codebase. Ftp either provide access to the whole directory or for the only single directory inside codebase. But the client wants access to two or three directories. This time, you need to provide access to that directory outside the docroot using bind feature.
This article provides you a complete guide on creating and binding directory outside home directory or docroot codebase directory.
I assumed that you have already installed the FTP Server on system or server. If you do not yet install the FTP server then read below posts.
Follow below step by step process to provide access to files outside home directory for FTP user.
Step 1: Create FTP User
First, you need to create FTP user using adduser command. When you enter the adduser command it will prompt you for Password. And asked you to fill the information related to FTP user.