How To: Multi User Shared Local Directory

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read this

How To: Multi User Shared Local Directory

Postby jd.hupp on Thu Jan 24, 2013 2:05 pm

In this HowTo at http://forums.linuxmint.com/viewtopic.php?f=42&t=69834, Method 2 with bindfs will produce a shared directory into which users can move files/folders from their own home directories into the shared directory, and those will be writable by all users.

But Method 1 with Linux permissions will not support the same functionality, will it? As far as I know, even with SetGID and umask=002, files moved into the shared folder will retain their original group rather than the SetGID group, and thus will not be writable by other users.

And as far as I know, even adding ACLs to the recipe cannot overcome this problem -- though I'd be happy to be proven wrong!

Confirmations/denials/improved Linux-permissions recipe?
jd.hupp
Level 1
Level 1
 
Posts: 2
Joined: Thu Jan 24, 2013 12:43 pm

Linux Mint is funded by ads and donations.
 

Re: How To: Multi User Shared Local Directory

Postby altair4 on Thu Jan 24, 2013 3:44 pm

First, thank you very much for reading one of my more obscure HowTo's.

Second, you are quite correct. With setgid enabled any new or copied file inherits the group of the parent folder. Any existing file somewhere else that is moved to the directory will keep it's current group.

Third, I have managed to avoid the use of ACL's so far so I will take your word for it not being a solution to the "move" problem.

Forth, In retrospect I should have mentioned the "move" issue in the Howto. I also sort of made the 2 methods equivalent which they are not. Not only in regards to a move vs copy ( which bindfs does as expected ) but also that bindfs has no equivalent to a sticky bit.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6125
Joined: Tue Feb 03, 2009 10:27 am

Re: How To: Multi User Shared Local Directory

Postby jd.hupp on Thu Jan 24, 2013 5:11 pm

My statement about ACLs was not made with the deepest conviction. I saw one claim that ACLs could solve the move issue, but I found no further explanation, and my reading of some documentation did not lead me to think that it actually could solve the problem. It covered what happens when you move ACL'd files to other locations, but not the other way around. In any case I did not try it out to see if I could get it to work for me.

So for the moment, I'm using bindfs, which solves the problem simply enough for a small performance hit.
jd.hupp
Level 1
Level 1
 
Posts: 2
Joined: Thu Jan 24, 2013 12:43 pm


Return to Other topics

Who is online

Users browsing this forum: No registered users and 4 guests