I have VPS running on Debian 8. I'd like to have 2 folders, one with some files and second one empty. Then, I want to create an FTP user with access to only the empty folder and with the ability to link files (using the
ln command) from folder one to that empty folder. I want the user to be able to delete links (only the links, not the actual files) and nothing else. I really did a research and couldn't find a straightforward answer. Can someone please tell me how to do that?
To summarize with example:
I have folders
folder1 contain some files (for example, .ini files)
I want to link all files from
folder2 and create ftp user that can only access
folder2 and can only delete that links and not open/edit or delete actual files, so files are there just for server side usage.
folder1 can contain subfolders with some files that should also be linked in the same subfolders in
folder2 (if subfolders don't exist then create them).