- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
ReadyNAS/ReadyCloud: How to set up a share with different access levels?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi you all,
I would like to grant different access rights to different ReadyCloud users at directory structure level. Suppose the share structure looks like this:
/topdir
/subdir1
/subdir2
user1 should be able to access /topdir and the directories below it (i.e. subdir1 and subdir2)
user2 should be able to access /subdir1 only
user3 should be able to acces - you guessed it - /subdir2 only
I know I can set up 2 or more individual shares and give the different users the access to the shares they need, but as I also have LAN access to that share, doing so would mess up that nice directory structure of the share and I'd end up with a lot of (mapped) network drives.
Any help on this topic is highly appreciated.
Thanks,
-Alois
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AMK64,
As you know, for readynas, acl permission is set based on the whole share, not subfolder in share.
If you want to set permision for subfolder in share, you can use setfacl command for subfolder in share to achive this. But i have a concern. Do you puchase your readynas in last 90 days( which is free support period ) or beyound of 90 days?
If you are still in free Support period, strongley recommended don't turn on ssh service and use setfacl command.
If you are beyound of 90 Days and you don't mind, you can turn on ssh service and use setfacl command to achive your goal.
You can setfacl for user2, user3. For example: Under topdir,
setfacl -R -m user:user1:rwx subdir1
setfacl -dR -m user:user1:rwx subdir1
setfacl -R -m user:user2:--- subdir1
setfacl -dR -m user:user2:--- subdir1
setfacl -R -m user:user2:rwx subdir2
setfacl -dR -m user:user2:rwx subdir2
setfacl -R -m user:user1:--- subdir2
setfacl -dR -m user:user:--- subdir2.
PS: If you setfacl with shares or subfolders with setfacl command, don't change "File Access" tab for the share again. As it maybe impact on facl for share.
Hope it is useful.
Best Regards.
All Replies
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AMK64,
As you know, for readynas, acl permission is set based on the whole share, not subfolder in share.
If you want to set permision for subfolder in share, you can use setfacl command for subfolder in share to achive this. But i have a concern. Do you puchase your readynas in last 90 days( which is free support period ) or beyound of 90 days?
If you are still in free Support period, strongley recommended don't turn on ssh service and use setfacl command.
If you are beyound of 90 Days and you don't mind, you can turn on ssh service and use setfacl command to achive your goal.
You can setfacl for user2, user3. For example: Under topdir,
setfacl -R -m user:user1:rwx subdir1
setfacl -dR -m user:user1:rwx subdir1
setfacl -R -m user:user2:--- subdir1
setfacl -dR -m user:user2:--- subdir1
setfacl -R -m user:user2:rwx subdir2
setfacl -dR -m user:user2:rwx subdir2
setfacl -R -m user:user1:--- subdir2
setfacl -dR -m user:user:--- subdir2.
PS: If you setfacl with shares or subfolders with setfacl command, don't change "File Access" tab for the share again. As it maybe impact on facl for share.
Hope it is useful.
Best Regards.