Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]a file owned by multiple owners
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zacinfinite
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2011
Posts: 90

PostPosted: Sun Sep 25, 2011 7:56 am    Post subject: [SOLVED]a file owned by multiple owners Reply with quote

is it possible in Linux to make a file belong to more than one group?
Also is it possible to have more than one owner on a file?


Last edited by zacinfinite on Sun Sep 25, 2011 10:35 am; edited 1 time in total
Back to top
View user's profile Send private message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Sun Sep 25, 2011 8:13 am    Post subject: Reply with quote

No to both.

If you need a file readable by more than one use (but not anyone), make a new group that each use you want can be a member of.

http://www.perlfect.com/articles/chmod.shtml
_________________
AMD FX6100 CPU, 16 GiB RAM, OCZ Vertex 3 SSD
ASRock 970 Extreme3 motherboard with S/PDIF audio
Galaxy-NVidia GeForce 8800GT video card, Cyber Power CP550HG USB UPS
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Sun Sep 25, 2011 5:23 pm    Post subject: Reply with quote

You could also use filesystem ACLs to grant access selectively without creating groups for every possible permutation of access.
Back to top
View user's profile Send private message
Spidey
Apprentice
Apprentice


Joined: 07 Sep 2006
Posts: 269

PostPosted: Sun Sep 25, 2011 6:58 pm    Post subject: Reply with quote

Tutorial here: http://www.gentoo-wiki.info/HOWTO_Use_filesystem_ACLs
You need to add xattr and acl support in your kernel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum