Can't write to /var/log/rt2/rt.log0: Permission denied

Hi,

I’m up to the “Configure the web interface” step of the Installation
Guide
http://fsck.com/rtfm/article.html?id=2#49

and I’m getting the following error when I hit the web site

error_log:

[Sat Aug 24 09:49:30 2002] [error] Can’t write to
‘/var/log/rt2/rt.log0’: Permission denied at
/usr/local/lib/perl5/site_perl/5.6.1/Log/Dispatch/File.pm line 72.

I have checked the FAQ and did most of what’s suggested here:
“Error: Can’t write to rt2/log/foo: permissioned denied”
http://fsck.com/rtfm/article.html?id=5#110 but to no avail.

root@whim:247 /var/log> ls -al
total 332824
[snip-snip]
drwxrwxr-x 2 rt rt 512 Aug 24 09:36 rt2/
[snip-snip]

httpd.conf:

<VirtualHost *>
DocumentRoot /opt/local/rt2/WebRT/html
ServerName [snip-snip]
CustomLog /opt/www/logs/[snip-snip]/access_log combined
ErrorLog /opt/www/logs/[snip-snip]/error_log
Alias /icons/ /usr/local/apache/icons/
#PerlModule Apache::DBI
PerlFreshRestart On
PerlRequire /opt/local/rt2/bin/webmux.pl

SetHandler perl-script
PerlHandler RT::Mason

User rt
Group rt

I’m running Apache with suexec if that makes any difference.

root@whim:254 /> uname -a
SunOS whim 5.8 Generic_108529-14 i86pc i386 i86pc

Any ideas on how to fix my problem?

Cheers

Josh

[Sat Aug 24 09:49:30 2002] [error] Can’t write to
’/var/log/rt2/rt.log0’: Permission denied at
/usr/local/lib/perl5/site_perl/5.6.1/Log/Dispatch/File.pm line 72.

I have checked the FAQ and did most of what’s suggested here:
"Error: Can’t write to rt2/log/foo: permissioned denied"
http://fsck.com/rtfm/article.html?id=5#110 but to no avail.

While you watch, make the directory world-writeable, and see what
ownership the files have. THen make the perms allow that.
(Also check to make sure that user can descend past /var/log.)

Be careful not to accidentally leave the directory world-writeable. :slight_smile:

Cheers,

-Rich

Rich Lafferty --------------±----------------------------------------------
Ottawa, Ontario, Canada | Save the Pacific Northwest Tree Octopus!
http://www.lafferty.ca/ | http://zapatopi.net/treeoctopus.html
rich@lafferty.ca -----------±----------------------------------------------

Thanks, that did the trick, “nobody” was the culprit in the end:

-rw------- 1 nobody nobody 0 Aug 24 10:24 rt.log0

Josh

Thanks, that did the trick, “nobody” was the culprit in the end:

-rw------- 1 nobody nobody 0 Aug 24 10:24 rt.log0

Which is presumably your apache user? Interesting. Here (Linux),
the files are written apache:rt – are you sure your handler is
still setgid rt? Might want to do a ‘make fixperms’ to make sure.

Cheers,

-Rich

Rich Lafferty --------------±----------------------------------------------
Ottawa, Ontario, Canada | Save the Pacific Northwest Tree Octopus!
http://www.lafferty.ca/ | http://zapatopi.net/treeoctopus.html
rich@lafferty.ca -----------±----------------------------------------------