Page 1 of 1

Shared directory best practice for multi-user

Posted: Tue Mar 30, 2021 11:12 pm
by MarukoBG
Hello,
what is the best practice to setup a shared directory for multiple users using the Asustor GUI ?

Example:

USER GROUP
--------------------------
alice devel
bob devel


Directory tree
-------------------------
/volume1/shared

Code: Select all

shared/
├── one
│   └── file.txt
└── two

Code: Select all

ls -al /volume1/shared
drwxrwxr-x    2 alice     devel       4.0K Mar 30 15:13 one/
drwxrwxr-x    2 bob      devel       4.0K Mar 30 15:13 two/


ls -al /volume1/shared/one
-rw-r--r--    1 alice     devel          0 Mar 30 15:13 file.txt
As you can see the file.txt created by alice can't be written by bob even if the directory is RWX for the group devel.

Of course I could manually setup everything following this guide http://brunogirin.blogspot.com/2010/03/ ... etgid.html
, but I wonder if is possible to do that from the Asustor GUI.

Thank you

Re: Shared directory best practice for multi-user

Posted: Wed Mar 31, 2021 10:48 am
by orion
Yes, only if you go through samba protocol.
Enable ACL first for the specific shared folder (in your case: shared) under ADM web -> Access Control -> Shared Folder -> Edit -> Windows ACL.
Then, under ADM file explorer, set the proper access rights on "file.txt".

Re: Shared directory best practice for multi-user

Posted: Sat Apr 03, 2021 12:44 am
by MarukoBG
orion wrote:Yes, only if you go through samba protocol.
Enable ACL first for the specific shared folder (in your case: shared) under ADM web -> Access Control -> Shared Folder -> Edit -> Windows ACL.
Then, under ADM file explorer, set the proper access rights on "file.txt".
No, enabling ACl result in a 'windows like' file permission as "rwxrwxrwx"
I need something Linux/unix (Posix) compliant.

Re: Shared directory best practice for multi-user

Posted: Tue Apr 06, 2021 10:18 am
by orion
Then, I think you should use manual commands. I cannot find this function in GUI.