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
uberuser1
anduberuser2
can 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
- Users
uberuser1
anduberuser2
should have access to /, as well as both theMain_Folder_1
andMain_Folder_2
folders. - When
users1
touser3
log in, they should start inside theMain_Folder_1
folder. They should not be aware that there is aMain_Folder_2
folder at all, nor should they be able to navigate up into /. - Similarly, when user
user4
oruser5
logs in, he should start inside theMain_Folder_2
folder. They should not be aware that there is aMain_Folder_1
folder 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 MF1
and 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?