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 |
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)... |
hey bud, don't double post, you can't deny that your question has already been discussed....
http://www.linuxquestions.org/questi...threadid=22188 |
I should have tried to stop this discussion as soon as I foud out it was the wrong place to ask this question.
|
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 ;-) |
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. |