You are limited by the users permissions you log with.
If you log with root, then you'll have access to anything.
But I'd discourage it.
The best way would be to create a "log" group
Then add your user and httpd to that group (but check first the group and username of the file owner, the username/group apache runs under can vary from a linux distribution to another. On my server, it's apache:apache, but I know that on fedora, it's nobody:nobody)
Code:
usermod -a -G log your_username
usermod -a -G log apache_username
and change the log file ownership and permissions to be read/write by the group "log" the group
Code:
chown -R apache_username:log /var/log/httpd/logs/
chmod -R u+rw,g+rw,o+r /var/log/httpd/logs/
http://www.research.att.com/~gsf/man/man1/chown.html
http://www.research.att.com/~gsf/man/man1/chmod.html
__________________
Listen to the ducky: "This is awesome!!!"
Last edited by tripy : 02-19-2008 at 11:18 AM.
|