Page 1 of 1

How to hide a subfolder from users without permissions?

Posted: Fri Nov 16, 2018 7:25 am
by Chrys
Hi

Example:
The shared folder is: TestSharedFolder.

There are 2 subfolders: Subfolder1 and Subfolder2.

Everyone has R/W permissions to Subfolder1.
Only admins have any permission to Subfolder2.

How can be hidden Subfolder2 from the users who aren't in the Administrators group? Is it possible with Asustor NAS?


I have found this solution but it is for shared folder only:
https://support.asustor.com/index.php?/ ... ify-folder

Re: How to hide a subfolder from users without permissions?

Posted: Tue Jul 02, 2019 7:11 pm
by patrickjburt
Nice solution you shared, i m looking for what you want to do will share once i found something.

Re: How to hide a subfolder from users without permissions?

Posted: Tue Jul 02, 2019 9:01 pm
by father.mande
Hi,

To add access control to specific folder you need some solution not available or complex in Asustor NAS (as I know)
... Linux A.C.L. (not provide by Asustor) is the common tools for a Linux server and the more easy (Linux point of view) advantage ... not dependent of shared resources works for ALL folders / files
... ... normally not hard to add ... ACL is already in kernel config (verified), tools are missing but exist (copied from Ubuntu or using opkg (Entware) (verified) and for btrfs don't need to add acl in mount (T.B.C.)
... ... BUT this require tests and Asustor support ... and without web admin, this require command line tools ...
... ... also this require to know if Samba is compiled with ACL support ... and "inherit acls = yes" added to (each) share definition needing it in smb.conf
... ... [EDIT] ... seem that samba is NOT compiled with A.C.L. support (no libacl.so in the list of dynamic library used)
... Microsoft A.C.L. (if supported by Samba server) can also be used ... but only for client / server in Microsoft network
... ... Microsoft ACL can be added per shared resource in Access Control menu
... ... Attention ... file permission Linux and Microsoft ACL (set by Samba) are not the same ... so for Linux point of view ONLY Linux file permission is apply.

... Active Directory (supported by Asustor) ... but I never test it for folder permissions, so I don't know how it's possible in Asustor.

Philippe.