LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-20-2007, 04:12 AM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
httpd logs: readable by user?


Currently, all my virtualhost on my webserver has their dedicated logs. each virtual host belongs to a particular user.

Is it possible to specify to save the log under a certain user/group permission, so that they can read the file directly without going through as root?
 
Old 06-22-2007, 03:41 AM   #2
mintojoseph
LQ Newbie
 
Registered: Nov 2006
Location: Kerala
Distribution: Fedora, Debian, RHEL
Posts: 29
Blog Entries: 1

Rep: Reputation: 15
edit httpd.conf

in CustomLog directive add the path you needed.
 
Old 06-25-2007, 02:07 AM   #3
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
hi there,

you mean customlog in my vhost settings?
What I am trying to do is allow my users to see their own log files, but currently the files are saved and owned by root

my vhost is:
Code:
<VirtualHost *:80>
    ServerAdmin me@domain.com
    DocumentRoot /home/me/imgrepo
    ServerName images.domain.com
    ErrorLog logs/images.domain.com-error_log
    CustomLog logs/images.domain.com-access_log common
</VirtualHost>
Do I need to edit the CustomLog settings in the httpd conf file?

As of now i keep the file in /var/log, but am hoping if there's a way to save the file in a specified user name?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd HTTPD Logs xkape Linux - General 2 01-12-2007 01:22 PM
httpd weird logs dominant Linux - Security 3 02-08-2005 05:42 AM
mounting sata drives user readable duclicsic Linux - General 3 02-03-2005 08:07 AM
httpd logs - what to do? cambie Linux - Software 4 10-29-2004 10:15 PM
Firefox logs user out? Where are error logs? case1984 Linux - General 0 10-09-2004 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration