[gentoo-user] Re: CUPS-PDF failing

2010-03-09 Thread Jörg Schaible
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




Re: [gentoo-user] Re: CUPS-PDF failing

2010-03-09 Thread Dirk Uys
On Tue, Mar 9, 2010 at 9:29 PM, Jörg Schaible joerg.schai...@gmx.de wrote:


 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


I changed my permission to match those above, but I get the same error in
the logs.

Pardon my ignorance, but what do you mean and match the UserUMask? My
umask is currently set to 0022.

Regards
Dirk