in reply to Re: Re: CGI System Commands
in thread CGI System Commands

When you run the script from the command line, is runs with whatever privaleges your logon id has. If you can dir the target share, then the program can.

When the script is invoke as a cgi, it only has whatever privaleges the webserver account has. These usually defualt to very low privaleges for safety.

Find out what account the web server runs as--ask your SysAdmin or ISP if you don't know how to find this information yourself--and then logon as that account and try your dir from the commandline. It almost certainly will give you "Access denied".

To summarise:

You need to give the webserver account the correct permissions, or talk to someone that has the authority to do this on your behalf.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.