Group and chmod questions
I'm stumped, long time linux user but now I need to restrict some users but it doesn't seem to be working. What I want is all users to be able to navigate to the top tier folder "folder1" folder then navigate ONLY to the folder they're a member of in subfolders.
Folder1 = top level folder, Groups and users: folder1=root:group_users
folder1 <-- root:group_users, perms:770 <-- root and everyone in group_users = rwxrwx---Logically it makes sense to me but the root folder in this case seems to be pushing perms down so everyone can rwx to all subfolders of folder1 even though there are more restrictive permissions in those subfolders. What I'm trying to accomplish is everyone having access to folder1 to rw (I'll worry about x later...what is that a "4" in chmod?)...but all I want users to do is be able to navigate to the top level folder, then in the sub folders of folder1 ONLY should they be able to access the folders their a group member off. In my example there are 3 users who have access to all folders but each individual user, user1, 2 and 3 can ONLY access their folders respectively. usera,b,c can get into all of them because they're a group member of each. As it stands right now though, user1,2,3 can get into each others folders and are not being denied access. What am I doing wrong or am I thinking about permissions incorrectly? I'm stumped :( Hope all that makes sense. |
Seems to complicated to me. Can't the users all be in the same group? Top level is 755, each sub would then be 700. The group and world cannot view the contents of the directory because you need execute permissions to list and therefore view files in a directory which you are not the owner for.
Example all done with the same user by the way, rules still apply: Code:
me@me-desktop:~/t$ ls |
Perms on users and groups
Thanks for the reply.
It can't be done with users in the same group. The scheme is, for all users to be able to see the root folder but then sub folders belong to individual users. Each user folder is separate, NO users can see other users folder conents. Now, there's one exception - that's the group. There's one group with a different set of users in it (don't include the users of each subfolder). Those users are like management users, so the users in the group can read everone's stuff BUT each users of that folder can't read their stuff. group_users = management users = users and separate from each other and everyone Example: group1=mamma,pappa,baby folder1 - jill:group1 <-- Jill and group 1 = access, jack, bear = denied folder2 - jack:group1 <-- jack and group 1 = access, jill, bear = denied folder3 - bear:group1 <-- bear and group 1 = access, jill, jack = denied That's what I'm trying to accomplish, having individual folders without inheriting the root folder permissions down to the subfolders (because this is what seeminly happens) and restricing users folders to the users themselves plus the management group which is able to see everything from all users. Hope that makes more sense. |
It is not apparent from your description why this isn't working. It would help if you would post the actual output from "ls -ld" for the directories and the outputs from "su - user1 -c id" for some of the user names rather than your interpretation of how you have things set up.
Also, the word "inherit" is generally used to describe the properties that are set at the time something is created, and I don't think that is what you mean here. One final thought -- this is on a filesystem that supports full Unix-style permissions, right? |
acl may help better if you are confused with groups however there is nothing to be confused off, but the data you posted is really messy. cant you post some real data here so that we can actually try to figure out whats happening ...
|
As above, the description is a tad confusing ... ;)
However, I believe that what you need is solvable with group owner/perms & ACLs. Assuming this is what you want Code:
group_users = management Its not clear if you want all mgrs to see all dirs or if jill/jack/bear are the mgrs and only need to see the dirs they own. In any case, you'll want chmod g+s on the dirs. |
All times are GMT -5. The time now is 04:19 PM. |