Date: Thu, 14 Jan 1999 10:08:05 +0100 (CET) From: Konrad Heuer <kheuer@gwdu60.gwdg.de> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/9485: lpr uses wrong username (3.0-R) Message-ID: <199901140908.KAA26298@gwdu60.gwdg.de>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901140908.KAA26298>