Note: please don't spam any of the e-mail addresses which you see here. Follow this link if you want some addresses to misuse.
From: David Chappell <David.Chappell@trincoll.edu>
Date: Wed, 06 Aug 2003 11:25:38 -0400
Subject: Re: PPR: ppop puzzle deepens
Kenneth Tindle wrote:
> OK, so I can't communicate with ppop via the Web admin system.
> So, I did:
>
> rpm -q perl
> perl-5.8.0-88
>
> rpm -V perl
> comes back with nothing (it's happy.)
>
> So my Perl installation is not obviously broken. So, I wrote this
> script:
>
> ----
> #!/usr/bin/perl -wT
>
> delete $ENV{PATH};
> delete $ENV{BASH_ENV};
> delete $ENV{CD_PATH};
> delete $ENV{IFS};
>
> use FileHandle;
> use IPC::Open2;
>
> my @COMMAND = ("/usr/lib/ppr/bin/ppop");
> push(@COMMAND, "-M");
> print @COMMAND, "\n";
> ($rdr, $wtr) = (FileHandle->new, FileHandle->new);
> my $pid = open2($rdr, $wtr, @COMMAND);
> my $got = <$rdr>;
> print $got, "\n";
> ----
> And this yields:
>
> /usr/lib/ppr/bin/ppop-M
> *READY 1.51
>
> as expected!
>
> Note that this is running as root.
>
> It would seem that PPOP.pm, when run as pprwww, will launch ppop
> but not communicate with it. It will work when run as root.
>
> These permissions on ppop:
>
> -rws--s--x ppr ppr
>
> must be wrong. David, on your RH9 box that is happily running
> the www admin system, could you take a peek at your permissions?
[pprwww@tantor chappell]$ ls -l ~ppr/bin/ppop
- -rws--s--x 1 ppr ppr 85332 Aug 5 11:14
/usr/lib/ppr/bin/ppop
Can you reproduce this problem when running one of the CGI scripts from
the command line:
$ ./show_queues.cgi
Note that to do this you will either have to unset PATH or apply to
PPOP.pm fix which I sent you in the last message.
If you can reproduce it, run it under strace and send me the output or
post it:
$ strace -o show_queues.log -f ./show_queues.cgi
This should show what happens to ppop.
================================================================
David Chappell David.Chappell@Mail.Trincoll.Edu
Computing Center Postmaster@Mail.Trincoll.Edu
Trinity College (860) 297-2114
Hartford, Connecticut 06106
U.S.A.