Apache2 directory listing problem F16

Steven Stern subscribed-lists at sterndata.com
Mon Jul 30 16:38:11 UTC 2012


On 07/30/2012 11:06 AM, Mark Haney wrote:
> On 07/30/2012 11:26 AM, Steven Stern wrote:
>>>> If you copied files from some other directory into pics, then they
>>>> >>probably brought along their existing context.  Go back to
>>>> /var/www/html
>>>> >>and try "sudo restorecon -r *".
>>>> >>
>>> >
>>> >I've attached the full output of the troubleshooter just in case I
>>> >managed not to include everything needed.
>>> >
>>> >
>>> >
>>> >
>> Run restorecon as suggested by the troubleshooter.
> 
> Yep, that did it.  Sometimes I wonder if the devs of SELinux are sane.
> 
> 
> 
It would be nice if there were a  cp option to adopt the context of the
target. Currently, -Z requires that you set the context.  I suppose it's
a good idea to keep you from shooting yourself in the foot by coping a
file that shouldn't be visible on a web site.

-- 
-- Steve


More information about the users mailing list