[Cialug] apache security question

Jeffrey Ollie jeff at ocjtech.us
Thu Jul 3 15:46:46 CDT 2008


On Wed, Jul 2, 2008 at 2:59 PM, Jeff Chapin <chapinjeff at gmail.com> wrote:
>
> chris wrote:
>>
>> | You can fix selinux labels by running "restorecon -vr /var/www/html"
>> | as root.  It should output a message if it has to change anything.
>>
>> Thank you very much for that tip.  I'll add it to our factoid on the
>> 403/selinux issue.
>>
> Is there a reason for this? or should it be something that gets corrected at
> 'mv' time? I never dealt too much with selinux.

It's the same reason that when you 'mv' a file the ownership,
modification times, and unix permission bits get preserved.  When you
'cp' a file the ownership, modification times and permission bits all
get reset to the defaults.

Jeff


More information about the Cialug mailing list