I am trying to find the most secure way to transfer files from one server to another.
I have the following architecture:
Currently I am using the main user
salamis in order to mount the directories.
The files in the original directory are created through a PHP file manager
Unfortunately, I am not able to
delete any file from the mounted directory through PHP. I get permission denied.
1) Is it because I mounted the filesystem using
salamis instead of
2) Is it secure to mount the filesystem on
Server 2 as
www-data ? If yes, how can I achieve that?
www-data does not have a password and I cannot login using
su -m www-data. I get
3) Can you think of a better architecture?