Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   CUPS-PDF failing (http://www.linux-archive.org/gentoo-user/338396-cups-pdf-failing.html)

Dirk Uys 03-09-2010 05:53 AM

CUPS-PDF failing
 
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?

Regards
Dirk

Jörg Schaible 03-09-2010 06:29 PM

CUPS-PDF failing
 
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

Dirk Uys 03-10-2010 06:47 AM

CUPS-PDF failing
 
On Tue, Mar 9, 2010 at 9:29 PM, Jörg Schaible <joerg.schaible@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

Dirk Uys 03-10-2010 06:47 AM

CUPS-PDF failing
 
On Tue, Mar 9, 2010 at 9:29 PM, Jörg Schaible <joerg.schaible@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

Jörg Schaible 03-10-2010 09:28 PM

CUPS-PDF failing
 
Hi Dirk,

Dirk Uys wrote:

> On Tue, Mar 9, 2010 at 9:29 PM, Jörg Schaible <joerg.schaible@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.

It fixed the issue for me once.

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

It's a setting in /etc/cups/cups-pdf

- Jörg


All times are GMT. The time now is 07:58 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.