Shared directory best practice for multi-user

Moderator: Lillian.W@AST

Post Reply
User avatar
MarukoBG
Posts: 7
youtube meble na wymiar Warszawa
Joined: Mon Mar 29, 2021 5:51 pm

Shared directory best practice for multi-user

Post 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
User avatar
orion
Posts: 3485
Joined: Wed May 29, 2013 11:09 am

Re: Shared directory best practice for multi-user

Post 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".
User avatar
MarukoBG
Posts: 7
Joined: Mon Mar 29, 2021 5:51 pm

Re: Shared directory best practice for multi-user

Post 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.
User avatar
orion
Posts: 3485
Joined: Wed May 29, 2013 11:09 am

Re: Shared directory best practice for multi-user

Post by orion »

Then, I think you should use manual commands. I cannot find this function in GUI.
Post Reply

Return to “[Official] For AS10XX Series”