Check directory permissions /Webmux.pl

Pls help me understand what might be wrong. In my logs, the following
message appears:

[Fri Oct 5 15:25:52 2001] [error] 2 RT Couldn’t write to session
directory ‘/us
r/local/rt2/WebRT/sessiondata’. Check that this directory’s permissions
are corr
ect. at /usr/local/rt2/bin/webmux.pl line 162.

But, trying to get around this problem, I’ve temporarily loosened
everything up:

drwxrwxrwx 2 nobody nobody 4096 Oct 5 15:42 sessiondata/

I see the following files in sessiondata/

-rw-rw-rw- 1 nobody nobody 0 Oct 5 15:48
9ad21db448fc15ddc6cbd4440
a0c6f30
-rw-rw-rw- 1 nobody nobody 0 Oct 5 15:48
Apache-Session-9ad21db448
fc15ddc6cbd4440a0c6f30.lock
-rw-rw-rw- 1 nobody nobody 56 Oct 5 15:48
d0921072c91bc57498403e6f7
8489e2e

The last file contains:
^E^D^C^@^@^@^A
d0921072c91bc57498403e6f78489e2e^@^@^@^K_session_id

I’ve put debugging stmts in webmux.pl and know that I’m failing where
indicated below:

eval {
tie %HTML::Mason::Commands::session, ‘Apache::Session::File’,
( $cookies{‘AF_SID’} ? $cookies{‘AF_SID’}->value() : undef ),
{ Directory => $RT::MasonSessionDir,
LockDirectory => $RT::MasonSessionDir,
} ;
};

----> I don’t get into this if stmt ($@ is empty)

if ( $@ ) {

Passed “make testdeps”. Recompiled my mod_perl to be static. So what
can I look for to fix this? I’m eager to provide any missing details if
anyone’s interested.
Carrie Coy

The user nobody (that your webserver runs as) cannot write to the
sessiondata directory, as you have noted… you can manually fix this by
doing “adduser nobody rt” (add the user nobody to the group rt)… and then
changing the permissions back to what they were before you set them 777 on
the sessiondata directory… (replace rt with your installations rt
groupname if needed)

Jay

Check the values for WEB_USER and WEB_GROUP in your Makefile, they should be nobody,
then run

make fixperms

-Feargal.Carrie Coy ccoy@ssww.com wrote:

CC> Pls help me understand what might be wrong. In my logs, the following
CC> message appears:
CC>
CC> [Fri Oct 5 15:25:52 2001] [error] 2 RT Couldn’t write to session
CC> directory ‘/us
CC> r/local/rt2/WebRT/sessiondata’. Check that this directory’s permissions
CC> are corr
CC> ect. at /usr/local/rt2/bin/webmux.pl line 162.
CC>
CC> But, trying to get around this problem, I’ve temporarily loosened
CC> everything up:
CC>
CC> drwxrwxrwx 2 nobody nobody 4096 Oct 5 15:42 sessiondata/
CC>
CC> I see the following files in sessiondata/
CC>
CC> -rw-rw-rw- 1 nobody nobody 0 Oct 5 15:48
CC> 9ad21db448fc15ddc6cbd4440
CC> a0c6f30
CC> -rw-rw-rw- 1 nobody nobody 0 Oct 5 15:48
CC> Apache-Session-9ad21db448
CC> fc15ddc6cbd4440a0c6f30.lock
CC> -rw-rw-rw- 1 nobody nobody 56 Oct 5 15:48
CC> d0921072c91bc57498403e6f7
CC> 8489e2e
CC>
CC> The last file contains:
CC> ^E^D^C^@^@^@^A
CC> d0921072c91bc57498403e6f78489e2e^@^@^@^K_session_id
CC>
CC>
CC> I’ve put debugging stmts in webmux.pl and know that I’m failing where
CC> indicated below:
CC>
CC> eval {
CC> tie %HTML::Mason::Commands::session, ‘Apache::Session::File’,
CC> ( $cookies{‘AF_SID’} ? $cookies{‘AF_SID’}->value() : undef ),
CC> { Directory => $RT::MasonSessionDir,
CC> LockDirectory => $RT::MasonSessionDir,
CC> } ;
CC> };
CC> ### ----> I don’t get into this if stmt ($@ is empty)
CC> if ( $@ ) {
CC>
CC>
CC> Passed “make testdeps”. Recompiled my mod_perl to be static. So what
CC> can I look for to fix this? I’m eager to provide any missing details if
CC> anyone’s interested.
CC> –
CC> Carrie Coy
CC>
CC>
CC>
CC>
CC> _______________________________________________
CC> rt-users mailing list
CC> rt-users@lists.fsck.com
CC> http://lists.fsck.com/mailman/listinfo/rt-users
CC>

Feargal Reilly.

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GU d- s+: a-- C++ UB+++ P— L- E— W++ N o-- K w
O M V- PS+ PE- Y+ PGP t 5++ X+ R tv b+++ DI+ D+
G+ e* h r++ y++
------END GEEK CODE BLOCK-----

-----END PGP PUBLIC KEY BLOCK-----