LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Users, groups, permissions - specific task question (https://www.linuxquestions.org/questions/linux-general-1/users-groups-permissions-specific-task-question-172747/)

Doctafonk 04-21-2004 01:00 AM

Users, groups, permissions - specific task question
 
I would like to know how to do the following permissioning on Linux:

To begin with, I have three user groups:

g1
g2
g3

I also have three directories:

/countries
/countries/england
/countries/england/london

Now I would like to do the following:

File permissions:
1) All users within these groups, no matter where they are have rwx access to any file that *they* create
2) All users within these groups, no matter where they are have read only access to any files that *they didnt* create

Folder permissions:
1) g1 has rw to /countries, but no further. If possible, I dont even want to give this group the ability to *see* england
2) g2 has rw to /countries and /countries/england, but no further. As with step 1), I dont even want g2 to be able to see any further directories (unless that directory is created by another user).
3) g3 has rw to all directories (/countries, /countries/england and /countries/england/london)

Does this make sense? Can someone give me a brief (if possible) walkthrough on how to achieve this or something similar?

TIA

balaji2001com 04-21-2004 01:56 AM

this is a brainteaser

Doctafonk 04-21-2004 09:05 PM

Indeed, hence the posting :)
Any ideas on an answer...or at least a start of one?


All times are GMT -5. The time now is 09:32 PM.