LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   httpd logs: readable by user? (https://www.linuxquestions.org/questions/linux-security-4/httpd-logs-readable-by-user-563155/)

Swakoo 06-20-2007 04:12 AM

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?

mintojoseph 06-22-2007 03:41 AM

edit httpd.conf

in CustomLog directive add the path you needed.

Swakoo 06-25-2007 02:07 AM

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?


All times are GMT -5. The time now is 06:36 PM.