Can't access folder I am in group of
I am just learning permissions and I'm running into a problem I can't figure out.
My goal is to have a group with write access to a folder where the owner does not have write access. Code:
mkdir newfolder |
The 'user' permissions get applied before the 'group' permissions - so if you're the user, then regardless of the group permissions, you get what the user permissions allow you to do (e.g. if you run
Code:
chown otheruser newfolder Regards, |
That is not what I'm trying to do.
|
Is this response on serverfault not correct? (Skip to "You can have your cake and eat it too")
http://serverfault.com/questions/357...for-my-website |
It is correct, but you've misinterpreted it. As I understand it, they are trying to limit the capabilities of the www-data user! (compare it with the "Single user" scenario above). They want r-x permissions for the www-data user, and rwx permissions for the developers, who will be in the dev-fabrikam group. So the permissions function exactly as they want them to.
|
I am not the owner of the directory. I am a member of the group. I cannot access the directory.
|
What am I misunderstanding?
|
Sorry, are you saying you can't reproduce these steps:
Code:
$ whoami If your system doesn't work correctly like that, can you post the output of you trying to do what I did above, please? |
Sorry, forgot to update the thread. The issue was solved with a reboot. Very embarrassing. That's now SOP when I'm considering a post. I was really confounded by why 570 didn't work. However, I did learn one interesting thing: setuid is ignored in linux, in case you were wondering.
|
Quote:
|
Quote:
|
I was just thinking about that prior to reading the whole discussion on the group being limited to the permissions of the file owner. If you recently added a user to a group, you usually need to log out and log back in as that user. A reboot would do the same thing. I'm not sure if there is a simpler way of having group changes take effect but simply logging in again should do it.
|
I see; I've never tried it (suid) on a dir :)
|
All times are GMT -5. The time now is 11:39 AM. |