How to hide a subfolder from users without permissions?

Share your awesome tips and tricks here.

Moderator: Lillian.W@AST

Post Reply
Chrys
Posts: 3
youtube meble na wymiar Warszawa
Joined: Wed Nov 14, 2018 9:25 pm

How to hide a subfolder from users without permissions?

Post 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
AS6208T
patrickjburt
Posts: 19
Joined: Mon Aug 20, 2018 7:23 pm

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

Post by patrickjburt »

Nice solution you shared, i m looking for what you want to do will share once i found something.
User avatar
father.mande
Posts: 1808
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

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

Post 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.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Post Reply

Return to “Tips & Tricks”