Report forwarded to debian-bugs-dist@lists.debian.org, Sven Rudolph <sr1@inf.tu-dresden.de>:
Bug#8689; Package lpr.   debian-bugs-dist@lists.debian.orgSven Rudolph <sr1@inf.tu-dresden.de>  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Richard Kettlewell <richard@greenend.org.uk>:
New bug report received and forwarded. Copy sent to Sven Rudolph <sr1@inf.tu-dresden.de>.   Richard Kettlewell <richard@greenend.org.uk>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at submit) by bugs.debian.org; 13 Apr 1997 06:04:52 +0000 Received: (qmail 22823 invoked from network); 13 Apr 1997 06:04:51 -0000 Received: from mercury.elmailer.net (195.224.76.4) by master.debian.org with SMTP; 13 Apr 1997 06:04:50 -0000 Received: from sfere.greenend.org.uk (sfere.greenend.org.uk [195.224.38.1]) by mercury.elmailer.net with ESMTP id HAA13708 for (2.2-8.8.5/3.1.13); Sun, 13 Apr 1997 07:03:54 +0100 (BST) Received: (richard@localhost) by sfere.greenend.org.uk id BAA16489 (2.1.1h-8.8.5/2.1b-greenend); Sun, 13 Apr 1997 01:25:16 +0100 From: Richard Kettlewell Message-Id: Date: Sun, 13 Apr 97 01:25:16 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: submit@bugs.debian.org Subject: lprm can't dequeue job! X-Mailer: VM 6.22 under Emacs 19.34.1 Package: lpr Version: 5.9-13.1 : sfere; lpr /etc/motd : sfere; lpq lp is ready and printing Rank Owner Job Files Total Size active richard 87 /etc/motd 250 bytes : sfere; lprm 87 cfA087Aa16362: Permission denied cfA087Aa16362: Permission denied : sfere; ls -lR /var/spool/lpd/ total 2 drwxrwsr-x 2 root lp 1024 Apr 13 01:17 lp/ drwxrwsr-x 2 root lp 1024 Mar 16 1995 remote/ /var/spool/lpd/lp: total 4 -rw-rw---- 1 daemon lp 111 Apr 13 01:17 cfA087Aa16362 -rw-rw---- 1 richard lp 250 Apr 13 01:17 dfA087Aa16362 -rw-rw-r-- 1 root lp 20 Apr 13 01:17 lock -rw-rw-r-- 1 root lp 25 Apr 13 01:17 status /var/spool/lpd/remote: total 0 : sfere; ls -l `which lpr` `which lprm` `which lpq` -rwsr-sr-x 1 root lp 13320 Feb 12 01:03 /usr/bin/lpq* -rwsr-sr-x 1 root lp 14232 Feb 12 01:03 /usr/bin/lpr* -rwsr-sr-x 1 root lp 13208 Feb 12 01:03 /usr/bin/lprm* Here's some strace from an attempt to lprm the job. Since running lprm as root doesn't exhibit the bug, and strace won't work on setuid programs, it's somewhat fun to obtain this! 16437 mprotect(0x8048000, 10984, PROT_READ|PROT_EXEC) = 0 16437 mprotect(0x4000a000, 528723, PROT_READ|PROT_EXEC) = 0 16437 mprotect(0x40000000, 20301, PROT_READ|PROT_EXEC) = 0 16437 personality(PER_LINUX) = 0 16437 geteuid() = 0 16437 getuid() = 4000 16437 uname({sys="Linux", node="sfere", ...}) = 0 16437 getuid() = 4000 16437 brk(0x804c7d8) = 0x804c7d8 16437 brk(0x804d000) = 0x804d000 16437 open("/etc/passwd", O_RDONLY) = 3 16437 fstat(3, {st_mode=S_IFREG|0644, st_size=1740, ...}) = 0 16437 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40008000 16437 read(3, "root:CuBl5I.g552jw:0:0:The Mgt:/"..., 4096) = 1740 16437 close(3) = 0 16437 munmap(0x40008000, 4096) = 0 16437 open("/etc/printcap", O_RDONLY) = 3 16437 read(3, "# /etc/printcap: printer capabil"..., 1024) = 784 16437 close(3) = 0 16437 chdir("/var/spool/lpd/lp") = 0 16437 stat(".", {st_mode=S_IFDIR|S_ISGID|0775, st_size=1024, ...}) = 0 16437 open(".", O_RDONLY) = 3 16437 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 16437 brk(0x804f000) = 0x804f000 16437 getdents(3, /* 8 entries */, 4096) = 148 16437 getdents(3, /* 0 entries */, 4096) = 0 16437 close(3) = 0 16437 open("lock", O_RDONLY) = 3 16437 fstat(3, {st_mode=S_IFREG|0664, st_size=20, ...}) = 0 16437 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40008000 16437 read(3, "16363\ncfA087Aa16362\n", 4096) = 20 16437 kill(16363, SIG_0) = 0 16437 read(3, "", 4096) = 0 16437 close(3) = 0 16437 munmap(0x40008000, 4096) = 0 16437 open("cfA087Aa16362", O_RDONLY) = 3 16437 fstat(3, {st_mode=S_IFREG|0660, st_size=111, ...}) = 0 16437 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40008000 16437 read(3, "Hsfere.greenend.org.uk\nPrichard"..., 4096) = 111 16437 read(3, "", 4096) = 0 16437 close(3) = 0 16437 munmap(0x40008000, 4096) = 0 16437 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 194), ...}) = 0 16437 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40008000 16437 ioctl(1, TCGETS, {B9600 opost isig icanon echo ...}) = 0 16437 write(1, "cfA087Aa16362: Permission denied"..., 33) = 33 16437 open("cfA087Aa16362", O_RDONLY) = 3 16437 fstat(3, {st_mode=S_IFREG|0660, st_size=111, ...}) = 0 16437 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40009000 16437 read(3, "Hsfere.greenend.org.uk\nPrichard"..., 4096) = 111 16437 read(3, "", 4096) = 0 16437 close(3) = 0 16437 munmap(0x40009000, 4096) = 0 16437 write(1, "cfA087Aa16362: Permission denied"..., 33) = 33 16437 _exit(0) = ? -- Richard Kettlewell http://www.elmail.co.uk/~richard/   Information forwarded to debian-bugs-dist@lists.debian.org, Sven Rudolph <sr1@inf.tu-dresden.de>:
Bug#8689; Package lpr.   debian-bugs-dist@lists.debian.orgSven Rudolph <sr1@inf.tu-dresden.de>  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Rob Browning <osiris@cs.utexas.edu>:
Extra info received and forwarded to list. Copy sent to Sven Rudolph <sr1@inf.tu-dresden.de>.   Rob Browning <osiris@cs.utexas.edu>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at 8689) by bugs.debian.org; 13 Apr 1997 07:16:51 +0000 Received: (qmail 23542 invoked from network); 13 Apr 1997 07:16:50 -0000 Received: from slip-115-31.ots.utexas.edu (HELO nevermore.csres.utexas.edu) (@128.83.168.127) by master.debian.org with SMTP; 13 Apr 1997 07:16:49 -0000 Received: (from osiris@localhost) by nevermore.csres.utexas.edu (8.8.5/8.8.5) id CAA02051; Sun, 13 Apr 1997 02:16:16 -0500 Sender: osiris@janus.csres.utexas.edu To: Richard Kettlewell Cc: 8689@bugs.debian.org Subject: Re: Bug#8689: lprm can't dequeue job! References: Mime-Version: 1.0 (generated by tm-edit 7.105) Content-Type: text/plain; charset=US-ASCII From: Rob Browning Date: 13 Apr 1997 02:16:15 -0500 In-Reply-To: Richard Kettlewell's message of Sun, 13 Apr 97 01:25:16 +0100 (BST) Message-ID: <87zpv375po.fsf@nevermore.csres.utexas.edu> Lines: 14 X-Mailer: Gnus v5.4.44/Emacs 19.34 Hmm, I wonder if it's your directory permissions. Mine are: drwxrwsr-x lp lp /var/spool/lpd drwxrwsr-x lp lp /var/spool/lpd/lp -rw------- lp lp /var/spool/lpd/lp/control.lp -rw------- lp lp /var/spool/lpd/lpd.lock.dirt.printer I had something screw up my /var/spool/lpd permissions. The way I fixed them was to purge lprng, make sure that /var/spool/lpd had been deleted, and then reinstall. -- Rob   Information forwarded to debian-bugs-dist@lists.debian.org, Sven Rudolph <sr1@inf.tu-dresden.de>:
Bug#8689; Package lpr.   debian-bugs-dist@lists.debian.orgSven Rudolph <sr1@inf.tu-dresden.de>  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Richard Kettlewell <richard@greenend.org.uk>:
Extra info received and forwarded to list. Copy sent to Sven Rudolph <sr1@inf.tu-dresden.de>.   Richard Kettlewell <richard@greenend.org.uk>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at 8689) by bugs.debian.org; 14 Apr 1997 06:05:17 +0000 Received: (qmail 22742 invoked from network); 14 Apr 1997 06:05:16 -0000 Received: from mercury.elmailer.net (195.224.76.4) by master.debian.org with SMTP; 14 Apr 1997 06:05:15 -0000 Received: from sfere.greenend.org.uk (sfere.greenend.org.uk [195.224.38.1]) by mercury.elmailer.net with ESMTP id HAA18538 (2.2-8.8.5/3.1.13); Mon, 14 Apr 1997 07:04:08 +0100 (BST) Received: (richard@localhost) by sfere.greenend.org.uk id BAA09866 (2.1.1h-8.8.5/2.1b-greenend); Mon, 14 Apr 1997 01:21:39 +0100 From: Richard Kettlewell Message-Id: Date: Mon, 14 Apr 97 01:21:38 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Rob Browning Cc: 8689@bugs.debian.org Subject: Bug#8689: lprm can't dequeue job! In-Reply-To: <87zpv375po.fsf@nevermore.csres.utexas.edu> References: <87zpv375po.fsf@nevermore.csres.utexas.edu> X-Mailer: VM 6.22 under Emacs 19.34.1 Rob Browning writes: >Hmm, I wonder if it's your directory permissions. Mine are: > >drwxrwsr-x lp lp /var/spool/lpd >drwxrwsr-x lp lp /var/spool/lpd/lp >-rw------- lp lp /var/spool/lpd/lp/control.lp >-rw------- lp lp /var/spool/lpd/lpd.lock.dirt.printer > >I had something screw up my /var/spool/lpd permissions. The way I >fixed them was to purge lprng, make sure that /var/spool/lpd had been >deleted, and then reinstall. Changing the relevant directories to be owned by `lp' doesn't seem to make any difference. See below. lprng has never been installed on sfere, so purging it would do little good! I tried purging and reinstalling lpr, manually removing /var/spool/lpd inbetween, but the problem persists; see even further below, search for /^--/. I don't print very often, and there's another printer in the house, so I'm happy to break things in an effort to find the cause of the problem. ------------------------------------------------------------------------ : sfere; ls -lR /var/spool/lpd/ total 2 drwxrwsr-x 2 root lp 1024 Apr 13 01:25 lp/ drwxrwsr-x 2 root lp 1024 Mar 16 1995 remote/ /var/spool/lpd/lp: total 2 -rw-rw-r-- 1 root lp 4 Apr 13 22:46 lock -rw-rw-r-- 1 root lp 25 Apr 13 01:17 status /var/spool/lpd/remote: total 0 : sfere; ls -lRd /var/spool/lpd/ drwxrwsr-x 4 root lp 1024 Mar 16 1995 /var/spool/lpd// : sfere; lpq no entries : sfere; ls -ld /var/spool/lpd drwxrwsr-x 4 root lp 1024 Mar 16 1995 /var/spool/lpd/ : sfere; lpr /etc/motd : sfere; lpq lp is ready and printing Rank Owner Job Files Total Size active richard 88 /etc/motd 250 bytes : sfere; lprm 88 cfA088Aa08348: Permission denied cfA088Aa08348: Permission denied : sfere; really chown lp /var/spool/lpd : sfere; lprm 88 cfA088Aa08348: Permission denied cfA088Aa08348: Permission denied : sfere; ls -lR /var/spool/lpd/ total 2 drwxrwsr-x 2 root lp 1024 Apr 14 01:05 lp/ drwxrwsr-x 2 root lp 1024 Mar 16 1995 remote/ /var/spool/lpd/lp: total 4 -rw-rw---- 1 daemon lp 111 Apr 14 01:05 cfA088Aa08348 -rw-rw---- 1 richard lp 250 Apr 14 01:05 dfA088Aa08348 -rw-rw-r-- 1 root lp 19 Apr 14 01:05 lock -rw-rw-r-- 1 root lp 25 Apr 14 01:05 status /var/spool/lpd/remote: total 0 : sfere; really chown lp /var/spool/lpd/lp : sfere; lprm 88 cfA088Aa08348: Permission denied cfA088Aa08348: Permission denied : sfere; ls -lR /var/spool/lpd total 2 drwxrwxr-x 2 lp lp 1024 Apr 14 01:05 lp/ drwxrwsr-x 2 root lp 1024 Mar 16 1995 remote/ /var/spool/lpd/lp: total 4 -rw-rw---- 1 daemon lp 111 Apr 14 01:05 cfA088Aa08348 -rw-rw---- 1 richard lp 250 Apr 14 01:05 dfA088Aa08348 -rw-rw-r-- 1 root lp 19 Apr 14 01:05 lock -rw-rw-r-- 1 root lp 25 Apr 14 01:05 status /var/spool/lpd/remote: total 0 : sfere; really chown root /var/spool/lpd /var/spool/lpd/lp : sfere; ------------------------------------------------------------------------ : sfere; : sfere; really dpkg --purge lpr (Reading database ... 24205 files and directories currently installed.) Removing lpr ... dpkg - warning: while removing lpr, directory `/var/spool/lpd/lp' not empty so not removed. dpkg - warning: while removing lpr, directory `/var/spool/lpd' not empty so not removed. Purging configuration files for lpr ... : sfere; ls -lR /var/spool/lpd/ total 1 drwxrwxr-x 2 root lp 1024 Apr 14 01:08 lp/ /var/spool/lpd/lp: total 2 -rw-rw-r-- 1 root lp 5 Apr 14 01:08 lock -rw-rw-r-- 1 root lp 25 Apr 14 01:05 status : sfere; really rm -rf /var/spool/lpd : sfere; really dpkg -i /myrddin-anon/debian/unstable/binary/net/lpr_5.9-13.1.deb Selecting previously deselected package lpr. (Reading database ... 24175 files and directories currently installed.) Unpacking lpr (from .../binary/net/lpr_5.9-13.1.deb) ... Setting up lpr (5.9-13.1) ... Starting printer daemon : sfere; ls -lR /var/spool/lpd total 2 drwxrwsr-x 2 root lp 1024 Apr 14 01:10 lp/ drwxrwsr-x 2 root lp 1024 Feb 12 01:02 remote/ /var/spool/lpd/lp: total 1 -rw-r--r-- 1 root lp 5 Apr 14 01:10 lock /var/spool/lpd/remote: total 0 : sfere; lpr /etc/motd : sfere; lpq lp is ready and printing Rank Owner Job Files Total Size active richard 0 /etc/motd 250 bytes : sfere; lprm 0 cfA000Aa09530: Permission denied cfA000Aa09530: Permission denied : sfere; ------------------------------------------------------------------------ -- Richard Kettlewell http://www.elmail.co.uk/~richard/   Information forwarded to debian-bugs-dist@lists.debian.org, Sven Rudolph <sr1@inf.tu-dresden.de>:
Bug#8689; Package lpr.   debian-bugs-dist@lists.debian.orgSven Rudolph <sr1@inf.tu-dresden.de>  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Rob Browning <osiris@cs.utexas.edu>:
Extra info received and forwarded to list. Copy sent to Sven Rudolph <sr1@inf.tu-dresden.de>.   Rob Browning <osiris@cs.utexas.edu>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at 8689) by bugs.debian.org; 16 Apr 1997 05:27:05 +0000 Received: (qmail 13515 invoked from network); 16 Apr 1997 05:27:01 -0000 Received: from slip-120-37.ots.utexas.edu (HELO nevermore.csres.utexas.edu) (@128.83.154.181) by master.debian.org with SMTP; 16 Apr 1997 05:26:59 -0000 Received: (from osiris@localhost) by nevermore.csres.utexas.edu (8.8.5/8.8.5) id AAA01750; Wed, 16 Apr 1997 00:26:15 -0500 Sender: osiris@janus.csres.utexas.edu To: Richard Kettlewell Cc: 8689@bugs.debian.org Subject: Re: Bug#8689: lprm can't dequeue job! References: <87zpv375po.fsf@nevermore.csres.utexas.edu> Mime-Version: 1.0 (generated by tm-edit 7.105) Content-Type: text/plain; charset=US-ASCII From: Rob Browning Date: 16 Apr 1997 00:26:14 -0500 In-Reply-To: Richard Kettlewell's message of Mon, 14 Apr 97 01:21:38 +0100 (BST) Message-ID: <87d8rv5yid.fsf@nevermore.csres.utexas.edu> Lines: 21 X-Mailer: Gnus v5.4.40/Emacs 19.34 Richard Kettlewell writes: > Changing the relevant directories to be owned by `lp' doesn't seem to > make any difference. See below. > > lprng has never been installed on sfere, so purging it would do little > good! > > I tried purging and reinstalling lpr, manually removing /var/spool/lpd > inbetween, but the problem persists; see even further below, search > for /^--/. Maybe a dumb, question, but are you opposed to switching to lprng? That might solve your trouble. I think I actually recall the maintainer of lpr advocating dropping lpr in favor of lprng because it functioned better. I switched, and it worked for me. There were a couple of things I had to figure out about its config file, but that didn't take very long, and it has a bunch of nice features... -- Rob   Information forwarded to debian-bugs-dist@lists.debian.org, Sven Rudolph <sr1@inf.tu-dresden.de>:
Bug#8689; Package lpr.   debian-bugs-dist@lists.debian.orgSven Rudolph <sr1@inf.tu-dresden.de>  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Richard Kettlewell <richard@greenend.org.uk>:
Extra info received and forwarded to list. Copy sent to Sven Rudolph <sr1@inf.tu-dresden.de>.   Richard Kettlewell <richard@greenend.org.uk>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at 8689) by bugs.debian.org; 16 Apr 1997 17:31:21 +0000 Received: (qmail 29461 invoked from network); 16 Apr 1997 17:31:19 -0000 Received: from mercury.elmailer.net (195.224.76.4) by master.debian.org with SMTP; 16 Apr 1997 17:31:18 -0000 Received: from sfere.greenend.org.uk (sfere.greenend.org.uk [195.224.38.1]) by mercury.elmailer.net with ESMTP id SAA28050 (2.2-8.8.5/3.1.13); Wed, 16 Apr 1997 18:30:16 +0100 (BST) Received: (richard@localhost) by sfere.greenend.org.uk id SAA12279 (2.1.1h-8.8.5/2.1b-greenend); Wed, 16 Apr 1997 18:26:55 +0100 From: Richard Kettlewell Message-Id: Date: Wed, 16 Apr 97 18:26:54 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Rob Browning Cc: 8689@bugs.debian.org Subject: Re: Bug#8689: lprm can't dequeue job! In-Reply-To: <87d8rv5yid.fsf@nevermore.csres.utexas.edu> References: <87zpv375po.fsf@nevermore.csres.utexas.edu> <87d8rv5yid.fsf@nevermore.csres.utexas.edu> X-Mailer: VM 6.22 under Emacs 19.34.1 Rob Browning writes: >Maybe a dumb, question, but are you opposed to switching to lprng? >That might solve your trouble. I think I actually recall the >maintainer of lpr advocating dropping lpr in favor of lprng because >it functioned better. I switched, and it worked for me. There were >a couple of things I had to figure out about its config file, but >that didn't take very long, and it has a bunch of nice features... I'll try it out sometime. ttfn/rjk   Merged 5791 6085 7589 7611 8438 8689. Request was from Sven Rudolph <sr1@os.inf.tu-dresden.de> to control@bugs.debian.org.   Sven Rudolph <sr1@os.inf.tu-dresden.de>  Sorry, this message was lost when this bug report was restored from a backup.   Reply sent to Sven Rudolph <sr1@os.inf.tu-dresden.de>:
You have taken responsibility.   Sven Rudolph <sr1@os.inf.tu-dresden.de>  Sorry, this message was lost when this bug report was restored from a backup.   Done: Sven Rudolph <sr1@os.inf.tu-dresden.de>; Maintainer for lpr is Sven Rudolph <sr1@inf.tu-dresden.de>.

Message received at 8689-done@bugs.debian.org:


Received: (at 8689-done) by bugs.debian.org; 15 Jul 1997 11:01:58 +0000
Received: (qmail 5204 invoked from network); 15 Jul 1997 11:01:57 -0000
Received: from os.inf.tu-dresden.de (141.76.1.46)
  by master.debian.org with SMTP; 15 Jul 1997 11:01:57 -0000
Received: (from sr1@localhost)
	by os.inf.tu-dresden.de (8.8.5/8.8.5) id NAA00202;
	Tue, 15 Jul 1997 13:01:41 +0200
To: Richard Kettlewell <richard@greenend.org.uk>
Cc: 8689-done@bugs.debian.org
Subject: Re: Bug#8689: lprm can't dequeue job!
References: <cPk2vI7+v0@sfere.greenend.org.uk>
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
From: Sven Rudolph <sr1@os.inf.tu-dresden.de>
Date: 15 Jul 1997 13:01:40 +0200
In-Reply-To: Richard Kettlewell's message of Sun, 13 Apr 97 01:25:16 +0100 (BST)
Message-ID: <87rad0efzf.fsf@os.inf.tu-dresden.de>
Lines: 10
X-Mailer: Gnus v5.3/Emacs 19.34

Richard Kettlewell <richard@greenend.org.uk> writes:

> Package: lpr
> Version: 5.9-13.1

Fixed in 5.9-14.

	Sven
-- 
Sven Rudolph <sr1@inf.tu-dresden.de> ; WWW : http://www.sax.de/~sr1/


Notification sent to Richard Kettlewell <richard@greenend.org.uk>:
Bug acknowledged by developer.   Richard Kettlewell <richard@greenend.org.uk>  Sorry, this message was lost when this bug report was restored from a backup.