[rt-users] IRIX 6.5..can't find script or unable to stat
Doug Weir
dweir at scienide.uwaterloo.ca
Mon May 7 19:58:53 EDT 2001
Ah ha! I think I've found a solution for people who want to build RT on
an IRIX 6.5 machine. The "can't find script of unable to stat" message is
due to the setuid_wrapper's array of safe environment variables not being
assembled properly. And when RT tries to use the variable SCRIPT_NAME
(which should = /rt/webrt.cgi) it finds the original /rt/webrt.cgi plus a
bunch of trash (bits of other stuff in other memory spaces poking
through). Most if not all of the other environment variables are polluted
as well, not just SCRIPT_NAME, but this is the one that causes the most
immediate problem.
Anyways - get to the point... alright.
1) In your RT source tree find the source for suid_wrapper. The file is
(relative to the main source directory) 'etc/suidrt.c'
1b) Make a backup copy of it (I like: suidrt.c.orig)
2) Open the file in your favourite editor, and find the line:
strncpy(envString+strlen(candidate)+1,val,strlen(val));
and replace it with:
strcpy(envString+strlen(candidate)+1,val);
3) Recompile (gmake install)
4) Test it thoroughly. I don't profess to be a professional programmer,
this may break something elsewhere... but so far it seems ok.
5) Jesse can you investigate if this fix is ok ?
weirD
On Mon, 7 May 2001, Daniel Shipton wrote:
> Has anyone ever got RT to work on IRIX 6.5. Everything installs fine
> and from the CLI it works fine but the
> web interface will not let us log in. We get ....
>
> cannot find script or unable to stat ..../admin-webrt.cgi
>
> any help would be appreciated
>
> Daniel E. Shipton
>
>
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
>
>
------------------------------------------------------------------------
Douglas Weir dweir at theochem.uwaterloo.ca
Chemical Physics Dept. Earth-Science & Chemistry 330A
University Of Waterloo (519) 888-4567 x6110
------------------------------------------------------------------------
ANTI-SPAM Policy: Only mail addressed "To:" dweir (this excludes all of
'undisclosed recipients'/Cc/Bcc/etc) and certain pre-authorised mailing
lists will survive the spam filtering process.
More information about the rt-users
mailing list