> I have a script that has to traverse a path to get to a file to open
> it. I do not own that file but the permissions are set to 644, so
> I should be able to open it with my script. When I run the
> script with the web browser, I get "No such file or directory".
The web server runs CGIs as a particular user, typically
something like 'nobody'. It could be that that user's
priveliges, or the priveliges in general of users that
aren't you, are insufficient for what you want.
Are you the owner of the file? Are you the owner, or in the
group, of any of the directories leading to the file?
> But when I run the script from the console like,
> "perl myscript.cgi"
> it opens the file and reads it.
This is presumably being executed as you which
makes a big difference.
> Does the script need special permission to see the file
> and directory, when run through the web browser ??
It needs to have its user, which the server admin can tell
you, have the right permissions.
hth.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]