in reply to Re: A CGI script to list the files on my external harddrive
in thread A CGI script to list the files on my external harddrive

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^3: A CGI script to list the files on my external harddrive
by Tanktalus (Canon) on Nov 14, 2006 at 04:35 UTC

    I hate feeding the trolls, though, on the other hand, "thanks for nothing" almost begs for PM's honour to be defended...

    You may be right - it may work fine as the apache user. However, you provided no such evidence above. You ran your script as root - which has slightly more authority than the apache user. You missed the "su - apache" command somewhere after chsh and before ./listDisc.pl.

    As I learned from a co-op job many many years ago, rule #2 of programming is "Are you testing what you think you're testing?" I don't recall what rule #1 was...

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^3: A CGI script to list the files on my external harddrive
by jpeg (Chaplain) on Nov 14, 2006 at 04:37 UTC
    I think you missed a step there, Tex.
    su - apache
    --
    jpg