From owner-freebsd-bugs Tue Dec 10 6:40: 4 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 477D937B401 for ; Tue, 10 Dec 2002 06:40:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7940F43EBE for ; Tue, 10 Dec 2002 06:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gBAEe1x3068346 for ; Tue, 10 Dec 2002 06:40:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gBAEe1Sq068345; Tue, 10 Dec 2002 06:40:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E930937B401 for ; Tue, 10 Dec 2002 06:39:59 -0800 (PST) Received: from spxgate.servplex.com (ip66-105-58-82.z58-105-66.customer.algx.net [66.105.58.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E63443EBE for ; Tue, 10 Dec 2002 06:39:59 -0800 (PST) (envelope-from peter@spxgate.servplex.com) Received: (from root@localhost) by spxgate.servplex.com (8.12.6/8.11.1) id gBAEq6Xw088039; Tue, 10 Dec 2002 08:52:06 -0600 (CST) (envelope-from peter) Message-Id: <200212101452.gBAEq6Xw088039@spxgate.servplex.com> Date: Tue, 10 Dec 2002 08:52:06 -0600 (CST) From: Peter Elsner Reply-To: Peter Elsner To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: misc/46163: lpc problem. Only root can modify despite man page info. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 46163 >Category: misc >Synopsis: lpc problem. Only root can modify despite man page info. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 10 06:40:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Peter Elsner >Release: FreeBSD 4.7-STABLE i386 >Organization: ServPlex Corporation >Environment: System: FreeBSD spxgate.servplex.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Wed Nov 20 07:48:39 CST 2002 root@spxgate.servplex.com:/home/obj/usr/src/sys/SPXGATE i386 >Description: I think lpc might have a small bug... According to the man page, lpc is a privlidged command... ?Privileged command you must be a member of group "operator" or root to execute this command So I added a handful of users to the 'operator' group. This way they should be able to send lpc commands to the printers. This works... Each user was able to disable/enable, down/up printers etc... no problem, until root disabled and then re-enabled a printer. Now each person can no longer disable or re-enable printers. Only root can... So something changes when root disabled and enables a printer, so that no one else afterwards (other than root) can disable or enable a printer. >How-To-Repeat: Add yourself to the operator group and issue an lpc disable printername Then issue an lpc enable printername This works fine, now su to root, and issue the same 2 commands, again it works fine, now exit back to your user account, and issue the commands again. This time, you'll find out that it doesn't work any longer, only root can now disable/enable printername from this point on. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message