LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-01-2005, 05:26 PM   #1
belorion
Member
 
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 124

Rep: Reputation: 16
File with multiple groups?


Is there a way to make a file owned by more than one group? I want some file to be +rw for group 'foo' by only +r for group 'bar'. Is this possible?
 
Old 09-01-2005, 05:45 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

You can do this with ACL (Access Control Lists), but that's probably too elaborate for what you have in mind (http://www.suse.de/~agruen/acl/linux-acls/online/ Not SuSe bound.... feed google for loads of info).

Can't you do something like this:

Filename: test.file.01
Owner : user_01
Group : bar
Perms: 640 (rw-r----)

user_01 has primery gid: foo
user_02 is member of group bar (does not have to be primary)

user_01 can rw the file (because of ownership, not the foo group.)
user_02 can read the file (he's member of the bar group.)

Maybe I oversimplified this, but hope it helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple groups sharing directory access OnlyNewb Linux - General 2 11-19-2009 11:39 PM
File Permissions, X and Groups mikemrh9 Linux - Software 3 09-08-2005 09:10 PM
multiple groups permissions steve007 Linux - Newbie 2 07-01-2005 12:24 PM
File ownerships/groups plisken Linux - General 3 03-04-2003 05:18 PM
groups and file rights tstuhr Linux - Networking 1 10-05-2001 01:06 PM


All times are GMT -5. The time now is 02:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration