public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] CUPS-PDF failing
@ 2010-03-09  6:53 Dirk Uys
  2010-03-09 19:29 ` [gentoo-user] " Jörg Schaible
  0 siblings, 1 reply; 5+ messages in thread
From: Dirk Uys @ 2010-03-09  6:53 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 598 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-user] Re: CUPS-PDF failing
  2010-03-09  6:53 [gentoo-user] CUPS-PDF failing Dirk Uys
@ 2010-03-09 19:29 ` Jörg Schaible
  2010-03-10  7:47   ` Dirk Uys
  0 siblings, 1 reply; 5+ messages in thread
From: Jörg Schaible @ 2010-03-09 19:29 UTC (permalink / raw
  To: gentoo-user

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Re: CUPS-PDF failing
  2010-03-09 19:29 ` [gentoo-user] " Jörg Schaible
@ 2010-03-10  7:47   ` Dirk Uys
  2010-03-10  7:47     ` Dirk Uys
  2010-03-10 22:28     ` [gentoo-user] " Jörg Schaible
  0 siblings, 2 replies; 5+ messages in thread
From: Dirk Uys @ 2010-03-10  7:47 UTC (permalink / raw
  To: gentoo-user, gentoo-user

[-- Attachment #1: Type: text/plain, Size: 898 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1289 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Re: CUPS-PDF failing
  2010-03-10  7:47   ` Dirk Uys
@ 2010-03-10  7:47     ` Dirk Uys
  2010-03-10 22:28     ` [gentoo-user] " Jörg Schaible
  1 sibling, 0 replies; 5+ messages in thread
From: Dirk Uys @ 2010-03-10  7:47 UTC (permalink / raw
  To: gentoo-user, gentoo-user

[-- Attachment #1: Type: text/plain, Size: 898 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1289 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-user] Re: Re: CUPS-PDF failing
  2010-03-10  7:47   ` Dirk Uys
  2010-03-10  7:47     ` Dirk Uys
@ 2010-03-10 22:28     ` Jörg Schaible
  1 sibling, 0 replies; 5+ messages in thread
From: Jörg Schaible @ 2010-03-10 22:28 UTC (permalink / raw
  To: gentoo-user

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-10 22:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-09  6:53 [gentoo-user] CUPS-PDF failing Dirk Uys
2010-03-09 19:29 ` [gentoo-user] " Jörg Schaible
2010-03-10  7:47   ` Dirk Uys
2010-03-10  7:47     ` Dirk Uys
2010-03-10 22:28     ` [gentoo-user] " Jörg Schaible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox