Your message dated Thu, 17 Feb 2005 12:29:04 -0600
with message-id <[EMAIL PROTECTED]>
and subject line Fixed long time ago
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 31 Mar 2001 16:22:49 +0000
>From [EMAIL PROTECTED] Sat Mar 31 10:22:49 2001
Return-path: <[EMAIL PROTECTED]>
Received: from hihhuli.adsl.netsonic.fi [194.29.195.1] (mail)
        by master.debian.org with esmtp (Exim 3.12 1 (Debian))
        id 14jO9I-0002XU-00; Sat, 31 Mar 2001 10:22:49 -0600
Received: from oar by hihhuli.adsl.netsonic.fi with local (Exim 3.12 #1 
(Debian))
        id 14jO9F-0006En-00; Sat, 31 Mar 2001 19:22:45 +0300
From: Olli Arnberg <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: lprm doesn't remove remote print jobs, permission denied
X-Reportbug-Version: 0.54.1
X-Mailer: reportbug 0.54.1
Date: Sat, 31 Mar 2001 19:22:45 +0300
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]

Package: lpr
Version: 1:0.48-1
Severity: normal

Removing remote print jobs responds with "remotename: cfXXXXX:
permission denied".  When I (as root) edited the 'cfXXXX' file on the
server machine to have a FQDN 'Hxxx.xxx.xxx' line, then the client
machine was able to 'lprm 25' the job just fine.

It seems to me that 'permission denied' happens because:

1) The 'Hxxx' host line in original 'cfXXXX' file originates
from 'gethostname()' (lpr/lpr.c, line 139) and at least in my
setup this is the "short" name 'killi', not FQDN 'killi.adsl.netsonic.fi'.

2) When 'cfXXXX' gets transported to remote lpd, it takes the
long 'from' name with 'gethostbyaddr()' (lpd/lpd.c, chkhost(), lines
439 and 447).  However, this long "client name" ends up only in
the _name_ of 'cfXXXX'; the contents of 'Hxxxx' line remains
at original 'Hkilli' and doesn't change to 'Hkilli.adsl.netsonic.fi'.

3) When lpd performs a remote 'lprm' it directly compares the host
name read from 'cfXXXX' 'Hxxxx' line to that returned by
'gethostbyaddr()'.  (Read host from 'cfXXXX' at common_source/rmjob.c
line 229; compare read host with "from" (established at lpd/lpd.c,
chkhost(), lines 439 and 447) in function isowner(), line 268.)

Replacing the 'Hxxxx' line when copying the control file from client
to server with the "from" name as seen by server would appear to fix
this problem.  However, I'm not sure at all if this is the "right"
way to do this...

-- System Information
Debian Release: 2.2
Architecture: i386
Kernel: Linux hihhuli 2.2.5 #2 Sat Jul 22 21:55:44 EEST 2000 i586

Versions of packages lpr depends on:
ii  libc6                         2.1.3-18   GNU C Library: Shared libraries an
ii  netbase                       3.18-4     Basic TCP/IP networking binaries  


---------------------------------------
Received: (at 92321-done) by bugs.debian.org; 17 Feb 2005 18:28:59 +0000
>From [EMAIL PROTECTED] Thu Feb 17 10:28:59 2005
Return-path: <[EMAIL PROTECTED]>
Received: from polaris.galacticasoftware.com [206.45.95.222] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1D1qOZ-00044P-00; Thu, 17 Feb 2005 10:28:59 -0800
Received: from mira.lan.galacticasoftware.com ([192.168.53.2] helo=mira)
        by polaris.galacticasoftware.com with esmtp (Exim 4.34)
        id 1D1qOY-0005lR-Fm
        for [EMAIL PROTECTED]; Thu, 17 Feb 2005 12:28:58 -0600
Received: from adamm by mira with local (Exim 4.44)
        id 1D1qOe-00056w-Fk
        for [EMAIL PROTECTED]; Thu, 17 Feb 2005 12:29:04 -0600
Date: Thu, 17 Feb 2005 12:29:04 -0600
To: [EMAIL PROTECTED]
Subject: Fixed long time ago
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
From: Adam Majer <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

This bug was fixed in lpr a LONG time ago.

Closing

- Adam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to