last day (15 days later) » 

5:47 PM
0
Q: group permissions on directory being ignored for user

igalIt seems that there is a Linux user (on an Ubuntu 12.04.4 server) who is unable to access a shared directory, even though that user belongs to the group which owns the directory. Here is an example session: $ whoami username $ cd /shared_directory bash: cd: /shared_directory: Permission denied ...

 
Is the user the owner of the files? The "owner" access is all set to deny!
 
No, the user is not the owner of the directory; the directory is owned by root. And I don't think that the "owner" access is set to deny; "others" is set to deny.
 
You, sir, are completely right. I don't know what I was thinking when I made that comment.
What filesystem is being used?
 
No worries. I'm sure I'll feel that way about my post by this time tomorrow.
The filesystem is ext4.
Hey. I'm pretty new to stackexchange; I haven't used chat before. Is this real time?
 
yes
 
5:51 PM
I should also add that I've actually resolved the issue by deleting and recreating the user's entry in our LDAP server. But I'd still like to understand why it happened, and why it's possible to get the kind of behavior I was observing.
 
alright, so, something I'm noticing also is that the group permissions are set to s in the execute bit
 
Yes, that's correct.
 
is that setuid or setgid?
hmm... alright, that's weird
did the UID change on the *nix system when you recreated the user?
I don't know enough about your environment to begin to ponder how this happened, it's just really weird
 
No, I'm pretty sure I made sure that the GID was the same.
 
well, the GID will be the same, I'm wondering about the UID
anyway, I'd just post the solution as the answer, since it fixed the problem and there's not a way to test it anymore
 
5:56 PM
Ah, that too. Sorry.
I misspoke.
 
if someone else has the same problem, and then finds another answer, then they can add that as an answer to this question
 
And the sticky bit is (I think) a setgid bit.
 
alright
 
It just seemed so bizarre to me.
Thanks for your help.
 
it is indeed bizarre, take care!
 

last day (15 days later) »