Permission Denied while printer file "/tmp/filename.txt"

fp at casabellagallery.com fp at casabellagallery.com
Thu Nov 15 12:09:21 PST 2007


Ken wondered:

> > Running Linux RH filePro 5.6.06D4, I am getting a permission
> > denied error.
> >
> > I am using: printer file "/tmp/outputfile.txt"    command
> > /tmp is set to 777 and owned by root:root.
> >
> > If I create the file /tmp/outputfile.txt and set it to anything
> > other than 777, I still get the same error.  Setting the file
> > to 777 then gives me the error:  sh  cannot execute binary
> >
> > Why is filePro trying to execute a file that it should be
> > printing to?
> >
> > This is one of filePro most basic functions, ability to print to
> > a file and yet, I cannot get it to work ... Oh, did I mention that
> > it was working as of two hours ago?  That's right, no changes, it
> > simply started to give me this error.
> 
> Did someone, perchance, change the default printer in pmaint (or in
> the environment) to have a destination of "/tmp/outputfile.txt"?
> 

No, no change at all ...

> What is the complete, exact, error message?
> 

If file is set to 777 prior to command    printer file ...
the error is:  sh: /tmp/filename.txt: cannot execute binary file

If file does not exist at all, upon executing command  printer file ...
the error is: sh: /tmp/filename.txt: Permission denied

Remember, /tmp is owned by root:root and it has 777 mode.

If I use:   printer "| cat >> /tmp/filename.txt" problem goes away
but I figure original commands are perfectly good syntax (well, so
I thought).

Thanks,


Jose Lerebours



More information about the Filepro-list mailing list