access to httpd logs

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



On Thu, Dec 01, 2005 at 01:07:20PM -0500, James Pifer enlightened us:
> I need to enable some access to the httpd logs over ftp so they can be
> analyzed by another application to get a report. I used to do this on
> Windows NT before replacing the server with CentOS. 
> 
> Thanks to help from another thread I have an ftp server enabled on the
> web server. I thought the easiest thing to do would be to create an id
> for the application to connect with, then provide a symlink to the logs
> in that generic user's home directory. 
> 
> The problem is the logs are owned by root. How can I make them readable
> by this generic id without completely compromising security? Plus, as
> the logs rotate this id will still need access. 
> 
> Any suggestions?
> 

Have a cron job running as root that copies the necessary files someplace
that your special id can get to, and chown them to the special id.

Serve this location via ftp.

-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263

[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