OS: Ubuntu 16.04.6
I have created one FTP server using vsftpd
. I initially followed instructions from the following link.
How To Set Up vsftpd for a User's Directory on Ubuntu 16.04
But above tutorial as well as most other resources teach about making a server for a directory under home. But I wanted to make it for two of my external drives; /media/Drive-1
& /media/Drive-2
I did so by using,
sudo mount --bind /media/Drive-1/ /home/home_user/ftp_user
Now the problem is,
Whenever I make a directory, copy a file etc. using (say)
gftp
, myhome_user
can't change/delete it.Similarly, if I make a directory or file using
home_user
, theftp_user
cannot change/delete it.
Now some directories are owned by 'home_user' and some are 'ftp_user'. Is there a way to grant all the directories same access, so anything I create/send through gftp
or ssh
or manually as the home user is accessible by both home_user
and ftp_user
.?
PS: Drives are EXT4 file-system.