Hello all,
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?
Michael
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.
What are the permissions of the directories from the root of the filesystem up top the directory that the file is in?
Is there any useful information in your apache logs?
Barry
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Barry Brimer Sent: Sunday, November 19, 2006 6:42 PM To: CentOS mailing list Subject: Re: [CentOS] file permissions and groups
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.
What are the permissions of the directories from the root of the filesystem up top the directory that the file is in?
Is there any useful information in your apache logs?
Barry
All permissions are 755 owned by root:root up to /var/www/html and then /var/www/html/subdir is owned by apache:apache with mode 755.
Unfortunately, there is nothing useful in the apache logs, either.
Michael
All permissions are 755 owned by root:root up to /var/www/html and then /var/www/html/subdir is owned by apache:apache with mode 755.
Unfortunately, there is nothing useful in the apache logs, either.
Do you have SELinux enabled? Does your file have the correct context owner? Do you have any ACLs enabled?
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Barry Brimer Sent: Sunday, November 19, 2006 8:13 PM To: CentOS mailing list Subject: RE: [CentOS] file permissions and groups
All permissions are 755 owned by root:root up to /var/www/html and then /var/www/html/subdir is owned by apache:apache with mode 755.
Unfortunately, there is nothing useful in the apache logs, either.
Do you have SELinux enabled? Does your file have the correct context owner? Do you have any ACLs enabled?
Thank you for your continued help but I do not have SELinux enabled (no context or ACLs).
Michael
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
-----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
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
Thinking through the weird behavior from my previous e-mail, I logged out of X and when I logged back in, the id command showed the right output and I was able to access the file.
FYI: I tried this through vnc, as well. I needed to reboot the vnc server to get it work.
Michael