>
> I'm writing a Regina script and seem to be missing some
> nuance about writing temporary files to the /tmp directory.
> Can anyone comment on what's going wrong here?  (Excerpt from
> Trace Results):
>
>     29 *-* 'rm 'tmpfile
>        >V>   "/tmp/request_linux_server.tmp"
> rm: cannot lstat `/tmp/request_linux_server.tmp': Permission denied
>
The lstat(2) manpage says:

   These functions return information about the specified file.  You do not
   need any access rights to the file to get this information but you  need
   search  rights to all directories named in the path leading to the file.

So the actual file isn't the problem, it's the directory it resides in.
Since it says you need search rights, you'll need to make sure the directory
has the "X" flag set for the owner, group, or everybody running the EXEC.

Reply via email to