It is currently Thu May 06, 2021 12:18 pm
All times are UTC + 8 hours

Shared directory best practice for multi-user

Shared directory best practice for multi-user

Postby MarukoBG » Tue Mar 30, 2021 11:12 pm

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

Re: Shared directory best practice for multi-user

Postby orion » Wed Mar 31, 2021 10:48 am

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

Re: Shared directory best practice for multi-user

Postby MarukoBG » Sat Apr 03, 2021 12:44 am

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

Re: Shared directory best practice for multi-user

Postby orion » Tue Apr 06, 2021 10:18 am

Then, I think you should use manual commands. I cannot find this function in GUI.
User avatar
orion
 
Posts: 3034
Joined: Wed May 29, 2013 11:09 am

Return to [Official] For AS10XX Series

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest