Re: httpd configuration

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

 



On Fri, 2006-06-16 at 13:01 +0930, Tim wrote:
> Tim:
> >>> Supplemental to the other suggestions, also check out the Apache SELinux
> >>> FAQ that's available from the Fedora website.  You may need to set up
> >>> userspace public_html directories with proper SELinux contexts, by hand.
> 
> Arthur Pemberton:
> >> That is automatic if 'www' is used i believe. But yah, the docs will tell.
> 
> Paul Howarth:
> > Looking at /etc/selinux/targeted/contexts/files/file_contexts.homedirs
> > it would appear that www or web or public_html should all be OK.
> 
> mkdir public_html web www
> ls -Zd public_html web www
> drwxrwxr-x  tim      tim      user_u:object_r:user_home_t      public_html
> drwxrwxr-x  tim      tim      user_u:object_r:user_home_t      web
> drwxrwxr-x  tim      tim      user_u:object_r:user_home_t      www
> 
> I suspect that some relabelling is required, not just the creation of
> the required directories, to get user webspace to work.

Yes.

$ /sbin/restorecon -rv public_html web www

However, once you have the context set correctly for the directory, new
files created in the directory should inherit the context.

Paul.


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux