From owner-freebsd-bugs Thu Jan 14 01:10:38 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA11470 for freebsd-bugs-outgoing; Thu, 14 Jan 1999 01:10:38 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA11460 for ; Thu, 14 Jan 1999 01:10:36 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id BAA16948; Thu, 14 Jan 1999 01:10:00 -0800 (PST) Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.10.60]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA11330 for ; Thu, 14 Jan 1999 01:09:16 -0800 (PST) (envelope-from kheuer@gwdu60.gwdg.de) Received: (from kheuer@localhost) by gwdu60.gwdg.de (8.9.0/8.9.0) id KAA26298; Thu, 14 Jan 1999 10:08:05 +0100 (CET) Message-Id: <199901140908.KAA26298@gwdu60.gwdg.de> Date: Thu, 14 Jan 1999 10:08:05 +0100 (CET) From: Konrad Heuer Reply-To: kheuer@gwdu60.gwdg.de To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/9485: lpr uses wrong username (3.0-R) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 9485 >Category: bin >Synopsis: lpr uses wrong username (3.0-R) >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 14 01:10:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Konrad Heuer >Release: FreeBSD 3.0-RELEASE i386 >Organization: Gesellschaft fuer wissenschaftliche Datenverarbeitung mbH Goettingen >Environment: Typical 3.0-RELEASE installation ; -current also buggy. >Description: The lpr command may use an unappropriate user name when setting up a print job if called from a shell spawned by su or by a daemon process like smbd (Samba). Thus printer accounting is impossible. The `-r' option of lpr isn't reliable, too, since lpr may not have the permissions to remove a printed file. >How-To-Repeat: Login on a 3.0-R system as root and stop an arbitrary printer queue to make sure that you've time enough to look a the queue. Print a file (lpr). The su to a normal user and print again. Take a look at the queue by lpq. Both jobs are owned by root. >Fix: Workaround: To run the `lpr' binary of 2.2.x-Release. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message