On 19 November 2010 09:13, Shlomi Fish <shlo...@iglu.org.il> wrote: > On Thursday 18 November 2010 16:32:08 Mike Martin wrote: >> Has anyone got any approaches that enable cgi scripts to access the >> host filesystem (readonly) >> > > There shouldn't be any problem for a CGI script to access the filesystem as > long as the user the CGI is running under has the necessary UNIX-wise > permissions. However, note that many web-servers will run CGI scripts under a > very unprivileged UNIX user. > >> I am working on a doc viewer app (intended for release as part of a >> suite), but I am hitting the "permission denied" issue. >> > > What does the system that runs this CGI program is running (operating system, > distribution, version, etc.)? Did you try it at home? > >> This applies to ls, opendir and find. > > Well, you shouldn't normally use the "ls" and "find" programs from within > Perl, but thanks for trying. When you login to the system using ssh what does > "ls -ld" say on the paths up to and including the path you're trying to list? > > Regards, > > Shlomi Fish > > -- > ----------------------------------------------------------------- > Shlomi Fish http://www.shlomifish.org/ > Freecell Solver - http://fc-solve.berlios.de/ > > <rindolf> She's a hot chick. But she smokes. > <go|dfish> She can smoke as long as she's smokin'. > > Please reply to list if it's a mailing list post - http://shlom.in/reply . > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > This is on my local system running Fedora 14, apache-2.2.17, perl 5.12 httpd runs as user apache/group apache cat /etc/passwd|grep apache apache:x:48:48:Apache:/var/www:/sbin/nologin
-- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/