I'm stuck on setting up FTP read/write file permissions (running FreeNAS). The read/write permissions for each user can follow the current format:
- Users can read from all folders they have access to
- Users can only write to/delete from their own user folders and any newly created folders.
- Make it so that only
uberuser2can create or delete folders.
Here I know how to handle #1 and #2 but I have no idea if #3 is possible when #2 will occur.
And all rest of my problem below for the FTP (on ProFTPD) directory which looks like:
/ - Main_Folder_1 -- user1 -- user2 -- user3 -- uberuser1 -- uberuser2 - Main_Folder_2 -- user4 -- user5 -- uberuser1 -- uberuser2
uberuser2should have access to /, as well as both the
user3log in, they should start inside the
Main_Folder_1folder. They should not be aware that there is a
Main_Folder_2folder at all, nor should they be able to navigate up into /.
- Similarly, when user
user5logs in, he should start inside the
Main_Folder_2folder. They should not be aware that there is a
Main_Folder_1folder either, nor should he be able to navigate up into /.
No. 1 - no problem but how to get #2 and #3? I can create new groups
MF2 for each of those users which will limit access to those folders but how can I set chroot for them to their main folders when after log in to the FTP they are landing into
/ folder and see both main folders?