Dirk Uys wrote:

> Hi
> 
> I'm getting the following error from /var/log/cups/cups-pdf_log when I try
> to print to a PDF printer:
> 
> [ERROR] failed to set file mode for PDF file (non fatal)
> (/var/spool/cups-pdf/dc_u/HOWTO__Install_Cups-PDF_-_Page_4_-
_Ubuntu_Forums.pdf)
> 
> I tried changing permission of /var/spool/cups-pdf/dc_u to "a+rwx", but
> that made no difference. There are a bunch of emails and bugs about this
> on Ubuntu related forums, but it seems that the problem is related to
> AppAmor?
> 
> Does anyone have any suggestions to resolve the problem?

Look into /etc/cups/cups-pdf. The individual spool directories must have 
proper access rights (like .ssh in your home) and match the UserUMask 
setting. Otherwise cups-pdf will not generate the PDF, simply because others 
might access the directory also.

With all settings as default, it should look like this:

$ ll /var/spool/cups-pdf/
drwxr-xr-x 6 root   root   54 2007-10-01 19:01 ./
drwxr-xr-x 7 root   root   78 2007-08-25 16:50 ../
drwx------ 2 jdoe   lp      6 2007-10-01 19:01 jdoe/
drwxr-x--x 2 root   lp      6 2010-03-01 13:41 SPOOL/


- Jörg


Reply via email to