Apache2 directory listing problem F16

Tim ignored_mailbox at yahoo.com.au
Tue Jul 31 11:19:11 UTC 2012


On Mon, 2012-07-30 at 11:38 -0500, Steven Stern wrote:
> It would be nice if there were a  cp option to adopt the context of
> the target.

If you copy, the files get the right context based on the filepath for
where they're copied to.  i.e. If you cp homepage.html /var/www/html/
the homepage.html file will be given normal contexts for /var/www/html/
(which are the right ones to webserve your files).

If you move it, then the original contexts of the file go with the copy.
If you created the file outside of the webserving directory tree, it
will keep those non-webserving contexts.  But a  move of a working
webservable file between places within /var/www/html won't be a problem,
as it'll already have the right contexts, whether that be moving between
directories, or just moving the file for a rename.

-- 
[tim at localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.





More information about the users mailing list