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

Is it possible that /media/EXTERNAL is a link? If it is, you may need to configure apache to FollowSymLinks

This really isn't a perl issue, it's a 'can't run a script as another user.' issue.

Hazah! I'm Employed!

Replies are listed 'Best First'.
Re^2: A CGI script to list the files on my external harddrive
by Anonymous Monk on Nov 14, 2006 at 03:20 UTC
    I can run th script as any user from the command line. So it is not a user issue as far as I can tell. Even if I change the User and Group in my httpd.conf to somethings like ...
    User me
    Group root
    
    The script still fails with permission errors when run a a cgi.
A reply falls below the community's threshold of quality. You may see it by logging in.