LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   group permissions (https://www.linuxquestions.org/questions/linux-newbie-8/group-permissions-22189/)

once 05-30-2002 03:07 PM

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

sewer_monkey 05-30-2002 05:04 PM

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)...

acid_kewpie 05-30-2002 05:22 PM

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

http://www.linuxquestions.org/questi...threadid=22188

once 05-31-2002 05:42 AM

I should have tried to stop this discussion as soon as I foud out it was the wrong place to ask this question.

alinas 06-01-2002 04:19 PM

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 ;-)

acid_kewpie 06-02-2002 03:09 AM

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.


All times are GMT -5. The time now is 05:50 AM.