[CentOS] Help with httpd userdir recovery

Robert Moskowitz rgm at htt-consult.com
Wed Dec 28 15:15:52 UTC 2016



On 12/28/2016 09:26 AM, Louis Lagendijk wrote:
> On Wed, 2016-12-28 at 08:20 -0500, Robert Moskowitz wrote:
>> On 12/28/2016 07:35 AM, Louis Lagendijk wrote:
>>> Robert,
>>> On Wed, 2016-12-28 at 01:43 +0100, John Fawcett wrote:
>>>> On 12/28/2016 01:12 AM, Robert Moskowitz wrote:
>>>>> On 12/27/2016 07:06 PM, John Fawcett wrote:
>>>>>> On 12/28/2016 12:34 AM, Robert Moskowitz wrote:
>>>>>>> On 12/27/2016 05:44 PM, John Fawcett wrote:
>>>>>>>> That error should be caused by having MultiViews options
>>>>>>>> but
>>>>>>>> incorrect
>>>>>>>> permissions (711 instead of 755) on the directory.
>>>>>>> I just did chmod -R 755 /home/rgm/public_html and no change
>>>>>>> in
>>>>>>> behavior.
>>>>>>>
>>>>>>> Even tried chmod -R 755 /home/rgm
>>>>>> Are you actually using MultiViews? If you don't need that
>>>>>> option,
>>>>>> maybe
>>>>>> the easiest thing is to take it out and see if the error
>>>>>> message
>>>>>> changes.
>>>>> I am using the default conf file for userdir.
>>>>>
>>>>> /etc/httpd/conf.d/userdir.conf
>>>>>
>>>>> So I deleted Multiviews and now the error is:
>>>>>
>>>>> [Tue Dec 27 19:09:31.013176 2016] [autoindex:error] [pid 2138]
>>>>> (13)Permission denied: [client 192.168.160.12:55762] AH01275:
>>>>> Can't
>>>>> open directory for index: /home/rgm/public_html/family/
>>>>>
>>>>>
>>>>> ____
>>>> I know this is not going to help, but that error means that
>>>> apache
>>>> does
>>>> not have access to read the directory
>>>> /home/rgm/public_html/family/.
>>>> That doesn't really fit with the rest of the evidence, that you
>>>> have
>>>> chmod 755 everything from /home/rgm/public_html downwards and
>>>> that
>>>> apache can read specific files from /home/rgm/public_html.
>>>> John
>>> but is apache allowed access to /home/rgm ?
>>> Try su - apache -s /bin/bash to run a shell as apache and see how
>>> far
>>> you get starting from cd /home and if that works cd /home/rgm and
>>> so
>>> on... That will check normal user permissions, but not selinux
>> Command apache not known!
>>
>> All I installed, directly, for the web server was 'yum install
>> httpd'.
>>
>>
> In a single command from root:
> su - apache -s /bin/bash
> The "su -" is part of the command

I really did not read your instructions well enough.  I got it this time 
and followed it.

I had no problem CDing all the way up the /home tree, doing 'ls' along 
the way.

So normal user permissions work.  I have to check out selinux as Todor 
recommended.

There was/is some sort of selinux issue with this C7-arm image.  I will 
post all of that in a separate message.  Plus some posts on the 
centos-arm list will be needed.

Bob




More information about the CentOS mailing list