LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2002, 03:07 PM   #1
once
LQ Newbie
 
Registered: May 2002
Posts: 28

Rep: Reputation: 15
group permissions


I have a directory say PETS, I have two groups CAT, DOG.
CAT has read access to PETS..
DOG has read / write access to PETS.

Can this be done in linux.

As unix/linux uses xxx for permissions, there is only one group that can have access to that directory. Is this a weekness in linux??.

Thanks

Derric
 
Old 05-30-2002, 05:04 PM   #2
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
From this point of view, the Linux filesystem is rather inflexible...

You can't do that directly, but I'm pretty sure there are indirect (workaround-type) ways to have this sort fo a setup... I just can't think of anything right now... Other than using the world permissions for one of the groups (i.e. cats = cats dogs = world)...
 
Old 05-30-2002, 05:22 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
hey bud, don't double post, you can't deny that your question has already been discussed....

http://www.linuxquestions.org/questi...threadid=22188
 
Old 05-31-2002, 05:42 AM   #4
once
LQ Newbie
 
Registered: May 2002
Posts: 28

Original Poster
Rep: Reputation: 15
I should have tried to stop this discussion as soon as I foud out it was the wrong place to ask this question.
 
Old 06-01-2002, 04:19 PM   #5
alinas
Member
 
Registered: Apr 2002
Location: UK, Sywell, EGBK
Distribution: RHEL, SuSE, CentOS, Debian, Ubuntu
Posts: 60

Rep: Reputation: 20
Try the following:
# chown dogs pets
# chmod ug=rwx pets
# chmod o=r pets
# chmod g+s pets
# ls -ld pets
drwxrwsr-- userX dogs.............. pets

This ensures that all files placed in the pets directory are attributed to group dogs (regardless of which group the user writing the file belongs to). You can then control what members of cats can do with these files much easier...
It is not 100% solution to your question, but I reckon close enough ;-)
 
Old 06-02-2002, 03:09 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
alinas, as you MUST have seen this thread was commented as a double post, and as such all the discussion was done in an identical thread in a different forum. it pays to pay attention little things like that, as you'll only most likely waste your time otherwise.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
group permissions nanjil SUSE / openSUSE 4 10-20-2005 01:51 PM
regarding group permissions zameer_india Linux - Networking 1 02-11-2005 04:07 AM
group permissions mikeghet Linux - Newbie 1 12-06-2004 03:49 AM
Group Permissions (m9.2) PaladinCowboy75 Mandriva 4 05-06-2004 08:20 AM
Group Permissions mallikarjun Linux - Security 4 07-03-2002 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration