Debian Bug report logs - #301406
cups-pdf: "failed to set file mode for PDF file" in user-directory

version graph

Package: cups-pdf; Maintainer for cups-pdf is Debian CUPS Maintainers <pkg-cups-devel@lists.alioth.debian.org>; Source for cups-pdf is src:cups-pdf.

Reported by: Thomas Kuhlmann <thomas.kuhlmann@thk-systems.de>

Date: Fri, 25 Mar 2005 18:03:30 UTC

Severity: normal

Found in version 1.7.0a-1

Done: Martin-Éric Racine <q-funk@iki.fi>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Martin-Éric Racine <q-funk@iki.fi>:
Bug#301406; Package cups-pdf. Full text and rfc822 format available.

Acknowledgement sent to Thomas Kuhlmann <thomas.kuhlmann@thk-systems.de>:
New Bug report received and forwarded. Copy sent to Martin-Éric Racine <q-funk@iki.fi>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Thomas Kuhlmann <thomas.kuhlmann@thk-systems.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: cups-pdf: "failed to set file mode for PDF file" in user-directory
Date: Fri, 25 Mar 2005 18:59:34 +0100
Package: cups-pdf
Version: 1.7.0a-1
Severity: normal

If I print using cups-pdf as root-user, everything works correctly.

If I print as a normal user (tkn), I get the following error in "/var/log/cups/cups-pdf_log":

  [ERROR] failed to set file mode for PDF file (/home/tkn/cups-pdf/fstab.pdf)

  Permissions of the user-directory:
	  drwx--x--x  125 tkn  tkn  8192 Mar 25 18:41 tkn
		(I changed it to drwxrwx-rx without any success)

	Maybe the error is caused in the recent change:
	  Since 1.6.5:
		  * All files are created with group "lpadmin" to match CUPS' own logs
	lpadmin is not allowed to do anything in my home. ;)

  The directory /home/tkn/cups-pdf is created correctly by the system:
	  drwx------    2 tkn  tkn     6 Mar 25 18:55 cups-pdf
		(I changed it manually to drwxrwx-rx without any success)

This may be a configuration-problem of my system, because I uses some "paranoid"
setting, but I wonder while the system is able to create the "cups-pdf" directory 
but not the file.

The filesystem of my home-directory is XFS.

TIA for any help / bugfix / tips ...!
Thomas

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.11.4
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages cups-pdf depends on:
ii  cupsys                      1.1.23-7     Common UNIX Printing System(tm) - 
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Martin-Éric Racine <q-funk@iki.fi>:
Bug#301406; Package cups-pdf. Full text and rfc822 format available.

Acknowledgement sent to "Volker Christian Behr" <behr@physik.uni-wuerzburg.de>:
Extra info received and forwarded to list. Copy sent to Martin-Éric Racine <q-funk@iki.fi>. Full text and rfc822 format available.

Message #10 received at 301406@bugs.debian.org (full text, mbox):

From: "Volker Christian Behr" <behr@physik.uni-wuerzburg.de>
To: 301406@bugs.debian.org
Subject: Re: Bug#301406: cups-pdf: "failed to set file mode for PDF file" 
     in    user-directory
Date: Fri, 25 Mar 2005 20:15:40 +0100 (CET)
Hi,

Thomas Kuhlmann said:
> Package: cups-pdf
> Version: 1.7.0a-1
> Severity: normal
>
> If I print using cups-pdf as root-user, everything works correctly.
>
> If I print as a normal user (tkn), I get the following error in
> "/var/log/cups/cups-pdf_log":
>
>   [ERROR] failed to set file mode for PDF file
> (/home/tkn/cups-pdf/fstab.pdf)
>
>   Permissions of the user-directory:
> 	  drwx--x--x  125 tkn  tkn  8192 Mar 25 18:41 tkn
> 		(I changed it to drwxrwx-rx without any success)
>
> 	Maybe the error is caused in the recent change:
> 	  Since 1.6.5:
> 		  * All files are created with group "lpadmin" to match CUPS' own logs
> 	lpadmin is not allowed to do anything in my home. ;)
>
>   The directory /home/tkn/cups-pdf is created correctly by the system:
> 	  drwx------    2 tkn  tkn     6 Mar 25 18:55 cups-pdf
> 		(I changed it manually to drwxrwx-rx without any success)
>
> This may be a configuration-problem of my system, because I uses some
> "paranoid"
> setting, but I wonder while the system is able to create the "cups-pdf"
> directory
> but not the file.
>

Since you mention "paranoid" settings please make sure that you (as
non-root user) can change into the directory /var/spool/cups-pdf/SPOOL.
You need user-read access to this directory in order for cups-pdf to work.
This is just a wild guess but the best that comes to my mind yet.

Volker


> The filesystem of my home-directory is XFS.
>
> TIA for any help / bugfix / tips ...!
> Thomas
>
> -- System Information:
> Debian Release: 3.1
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.11.4
> Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
>
> Versions of packages cups-pdf depends on:
> ii  cupsys                      1.1.23-7     Common UNIX Printing
> System(tm) -
> ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared
> libraries an
>
> -- no debconf information
>


-- 

Volker Christian Behr
Experimentelle Physik V (Biophysik), Physikalisches Institut
Universitaet Wuerzburg, Am Hubland, 97074 Wuerzburg, Germany

Office: Room F-069a
+49-931-888-5766 (phone)
+49-931-888-5851 (fax)



Information forwarded to debian-bugs-dist@lists.debian.org, Martin-Éric Racine <q-funk@iki.fi>:
Bug#301406; Package cups-pdf. Full text and rfc822 format available.

Acknowledgement sent to Martin-Éric Racine <q-funk@iki.fi>:
Extra info received and forwarded to list. Copy sent to Martin-Éric Racine <q-funk@iki.fi>. Full text and rfc822 format available.

Message #15 received at 301406@bugs.debian.org (full text, mbox):

From: Martin-Éric Racine <q-funk@iki.fi>
To: Thomas Kuhlmann <thomas.kuhlmann@thk-systems.de>, 301406@bugs.debian.org
Subject: Re: Bug#301406: cups-pdf: "failed to set file mode for PDF file" in
 user-directory
Date: Fri, 1 Apr 2005 19:05:29 +0300 (EEST)
On Fri, 25 Mar 2005, Thomas Kuhlmann wrote:

> If I print using cups-pdf as root-user, everything works correctly.
> 
> If I print as a normal user (tkn), I get the following error in "/var/log/cups/cups-pdf_log":
> 
>   [ERROR] failed to set file mode for PDF file (/home/tkn/cups-pdf/fstab.pdf)

Could you please make the following change to src/cups-pdf.h and rebuild
from source (dpkg-buildpackage -b -us -uc):

-#define CPLOGTYPE 1
+#define CPLOGTYPE 4

Install this modified package.

Then try printing again as user 'tkn' and send the log to this bug report.

I also suggest checking answers provided earlier by upstream for this bug,
also on the Debian BTS at bug #301406.

-- 
Martin-Éric Racine
http://www.iki.fi/q-funk/




Information forwarded to debian-bugs-dist@lists.debian.org, Martin-Éric Racine <q-funk@iki.fi>:
Bug#301406; Package cups-pdf. Full text and rfc822 format available.

Acknowledgement sent to Thomas Kuhlmann <thomas.kuhlmann@thk-systems.de>:
Extra info received and forwarded to list. Copy sent to Martin-Éric Racine <q-funk@iki.fi>. Full text and rfc822 format available.

Message #20 received at 301406@bugs.debian.org (full text, mbox):

From: Thomas Kuhlmann <thomas.kuhlmann@thk-systems.de>
To: 301406@bugs.debian.org,
	Martin-Éric Racine <q-funk@iki.fi>
Subject: Re: Bug#301406: cups-pdf: "failed to set file mode for PDF file" in
 user-directory
Date: Sat, 2 Apr 2005 02:24:37 +0200 (CEST)
Now, everythings works fine (with and without logging).
I wonder why, because I have not change anything.
But it works now, so everything is good and the bug can be closed from my 
point of view.

(It works also fine after reinstalling the delivered binary-package instead 
of the self-compiled packaged.)

Here is the log: (It looks good!)

Sat Apr  2 02:17:25 2005  [DEBUG] switching to new gid (lpadmin)
Sat Apr  2 02:17:25 2005  [DEBUG] output redirected to home directory ($HOME)
Sat Apr  2 02:17:25 2005  [DEBUG] initialization finished
Sat Apr  2 02:17:25 2005  [DEBUG] user identified (tkn)
Sat Apr  2 02:17:25 2005  [DEBUG] user information prepared
Sat Apr  2 02:17:25 2005  [DEBUG] spoolfile name created (/var/spool/cups-pdf/SPOOL/cups2pdf-21544)
Sat Apr  2 02:17:25 2005  [DEBUG] source stream ready
Sat Apr  2 02:17:25 2005  [DEBUG] destination stream ready (/var/spool/cups-pdf/SPOOL/cups2pdf-21544)
Sat Apr  2 02:17:25 2005  [DEBUG] owner set for spoolfile (/var/spool/cups-pdf/SPOOL/cups2pdf-21544)
Sat Apr  2 02:17:25 2005  [DEBUG] found beginning of postscript code (%!PS-Adobe-3.0)
Sat Apr  2 02:17:25 2005  [DEBUG] now extracting postscript code
Sat Apr  2 02:17:25 2005  [DEBUG] found embedded (e)ps code (%!PS-AdobeFont-1.0: Courier-Bold 1.05)
Sat Apr  2 02:17:25 2005  [DEBUG] found embedded (e)ps code (%!PS-AdobeFont-1.0: Courier 1.05)
Sat Apr  2 02:17:25 2005  [DEBUG] found end of embedded (e)ps code (%%EOF)
Sat Apr  2 02:17:25 2005  [DEBUG] all data written to spoolfile (/var/spool/cups-pdf/SPOOL/cups2pdf-21544)
Sat Apr  2 02:17:25 2005  [DEBUG] removing special characters from title (exports)
Sat Apr  2 02:17:25 2005  [DEBUG] title successfully retrieved (exports)
Sat Apr  2 02:17:25 2005  [DEBUG] input data read from stdin
Sat Apr  2 02:17:25 2005  [DEBUG] output filename created (/home/tkn/cups-pdf/exports.pdf)
Sat Apr  2 02:17:25 2005  [DEBUG] ghostscript commandline built (/usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER      -sDEVICE=pdfwrite -sOutputFile="/home/tkn/cups-pdf/exports.pdf" -dAutoRotatePages=/PageByPage   -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode   -dPDFSETTINGS=/prepress -c save pop -f /var/spool/cups-pdf/SPOOL/cups2pdf-21544)
Sat Apr  2 02:17:25 2005  [DEBUG] output file unlinked (/home/tkn/cups-pdf/exports.pdf)
Sat Apr  2 02:17:25 2005  [DEBUG] TMPDIR set for GhostScript (/var/tmp)
Sat Apr  2 02:17:25 2005  [DEBUG] entering child process
Sat Apr  2 02:17:25 2005  [DEBUG] GID set for current user
Sat Apr  2 02:17:25 2005  [DEBUG] UID set for current user (tkn)
Sat Apr  2 02:17:25 2005  [DEBUG] ghostscript has finished (0)
Sat Apr  2 02:17:25 2005  [DEBUG] waiting for child to exit
Sat Apr  2 02:17:25 2005  [DEBUG] spoolfile unlinked (/var/spool/cups-pdf/SPOOL/cups2pdf-21544)
Sat Apr  2 02:17:25 2005  [DEBUG] file mode set for user output (/home/tkn/cups-pdf/exports.pdf)
Sat Apr  2 02:17:25 2005  [DEBUG] all memory has been freed

Best regards
and thanks for help

Thomas



Reply sent to Martin-Éric Racine <q-funk@iki.fi>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Thomas Kuhlmann <thomas.kuhlmann@thk-systems.de>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #25 received at 301406-done@bugs.debian.org (full text, mbox):

From: Martin-Éric Racine <q-funk@iki.fi>
To: 301406-done@bugs.debian.org
Subject: Re: Bug#301406: cups-pdf: "failed to set file mode for PDF file" in
 user-directory
Date: Sat, 2 Apr 2005 11:27:09 +0300 (EEST)
On Sat, 2 Apr 2005, Thomas Kuhlmann wrote:

> Now, everythings works fine (with and without logging).
> I wonder why, because I have not change anything.
> But it works now, so everything is good and the bug can be closed from my 
> point of view.

And so we close it. :)

-- 
Martin-Éric Racine
http://www.iki.fi/q-funk/




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Feb 9 19:36:25 2010; Machine Name: busoni.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.