-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Michael Kress Sent: Monday, November 20, 2006 12:16 AM To: CentOS mailing list Subject: Re: [CentOS] file permissions and groups
On 11/19/2006 8:39 PM, Michael Velez wrote:
I have a file owned by apache:apache with permissions of 640.
I have added myself to the apache group using usermod -G (and I can verify that using the groups command) but I still can't read the abovementioned file.
Am I not getting something?
Hi Michael,
have you already tried the 'newgrp' command? cu - Michael
When I use the newgrp command, I do change to the apache group and it works.
Do you mean 'su - Michael'?
su - michael is actually interesting. Before the su -, the output of the id command shows that I'm only in group michael. After the su -, it shows I'm in both groups michael and apache.
Why is it that I'm in both groups after su -, and not while in a normal xterm logging shell. Also, I have the same problem of not being able to access the file through the gnome desktop using File Browser (even though I'm in group apache).
So, at a login shell doing su - works, both other options (xterm login shell or desktop) do not.
Michael