FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-09-2010, 05:53 AM
Dirk Uys
 
Default 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
 
Old 03-09-2010, 06:29 PM
Jörg Schaible
 
Default 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
 
Old 03-10-2010, 06:47 AM
Dirk Uys
 
Default 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
 
Old 03-10-2010, 06:47 AM
Dirk Uys
 
Default 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
 
Old 03-10-2010, 09:28 PM
Jörg Schaible
 
Default 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
 

Thread Tools




All times are GMT. The time now is 09:03 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org