Re: C7 apache file access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]





On 12/24/2015 01:08 AM, Gordon Messmer wrote:
On 12/23/2015 11:15 AM, Robert Moskowitz wrote:
Wiaht is this httpd_user_content_t?

That is an selinux context which httpd is allowed to access. It is defined as the label for files matching the regex /home/[^/]*/((www)|(web)|(public_html))(/.+)? in /etc/selinux/targeted/contexts/files/

"restorecon" can be used to reset contexts to those defined in that directory.

Why on files I create on this system and not those I cp from a USB drive?

Because you used cp -a, which preserves permissions and labels, among other attributes. Normally, files inherit a context from their parent directory.

Ah yes. I was lazy, as 'all' I really wanted was to maintain timestamps on those files. Serves me right...

thanks for the explaination.

New server is more solid than current, so I am going to launch it tomorrow. Then on to BIND testing.


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux