I have a CentOS server running PureFTPd with multiple virtual users mapping to a single system user. Each of these virtual users gets chrooted to a directory corresponding to their username. The directory tree is:
- /ftp_accounts
- /virtual_user_1
- /virtual_user_2
- ...
- /virtual_user_N
Only one of these FTP virtual users (let's call him "master_virtual_user") is chrooted the main ftp_accounts
directory, allowing access to all sub-folders.
For this specific "master_virtual_user", I would like to prevent the deletion of only the virtual_user_*
folders, but still maintain full read-write access to everything else in this directory tree.
Given that all of these FTP virtual users are mapping to the same system user, is there any way to achieve this?