Gentoo Archives: gentoo-user

From: "Jörg Schaible" <joerg.schaible@×××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: CUPS-PDF failing
Date: Tue, 09 Mar 2010 19:30:35
Message-Id: hn67i5$37k$1@dough.gmane.org
In Reply to: [gentoo-user] CUPS-PDF failing by Dirk Uys
1 Dirk Uys wrote:
2
3 > Hi
4 >
5 > I'm getting the following error from /var/log/cups/cups-pdf_log when I try
6 > to print to a PDF printer:
7 >
8 > [ERROR] failed to set file mode for PDF file (non fatal)
9 > (/var/spool/cups-pdf/dc_u/HOWTO__Install_Cups-PDF_-_Page_4_-
10 _Ubuntu_Forums.pdf)
11 >
12 > I tried changing permission of /var/spool/cups-pdf/dc_u to "a+rwx", but
13 > that made no difference. There are a bunch of emails and bugs about this
14 > on Ubuntu related forums, but it seems that the problem is related to
15 > AppAmor?
16 >
17 > Does anyone have any suggestions to resolve the problem?
18
19 Look into /etc/cups/cups-pdf. The individual spool directories must have
20 proper access rights (like .ssh in your home) and match the UserUMask
21 setting. Otherwise cups-pdf will not generate the PDF, simply because others
22 might access the directory also.
23
24 With all settings as default, it should look like this:
25
26 $ ll /var/spool/cups-pdf/
27 drwxr-xr-x 6 root root 54 2007-10-01 19:01 ./
28 drwxr-xr-x 7 root root 78 2007-08-25 16:50 ../
29 drwx------ 2 jdoe lp 6 2007-10-01 19:01 jdoe/
30 drwxr-x--x 2 root lp 6 2010-03-01 13:41 SPOOL/
31
32
33 - Jörg

Replies

Subject Author
Re: [gentoo-user] Re: CUPS-PDF failing Dirk Uys <dirkcuys@×××××.com>
Re: [gentoo-user] Re: CUPS-PDF failing Dirk Uys <dirkcuys@×××××.com>