S
S
Shimpanze2019-10-09 14:24:02
linux
Shimpanze, 2019-10-09 14:24:02

How to correctly (!) mount the "www" folder in the user's FTP folder?

Good afternoon!
I installed the FTP client "vsFTPd" and created a user folder for it to work /home/gavrila/ftp/sites.
How right for me! to mount a standard folder var/wwwin a folder /home/gavrila/ftp/sitesso that it can be worked with through an FTP client?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
harabudjasim, 2019-10-09
@Shimpanze

The easiest way is to add it to mount /var/www /home/gavrila/ftp/sitesthe system autostart. But this is not safe and is only suitable for playing around.
As far as I remember, to administer the site, they make a separate user for each site, and this user is exposed to the site folder as the home directory. then when logging in via FTP, the system will automatically go to the folder with the site. vsFTPd can take user configs from outside the system, which means you can not clog the system with unnecessary users. Read about adding users to vsFTPd. The main message is to force the ftp server to chroot you into the folder with the site when you login.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question