From owner-freebsd-current@FreeBSD.ORG Tue Sep 27 15:02:05 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.ORG Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7252916A459 for ; Tue, 27 Sep 2005 15:02:05 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F80743D5D for ; Tue, 27 Sep 2005 15:02:04 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (wxklmr@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.1/8.13.1) with ESMTP id j8RF22OB002505; Tue, 27 Sep 2005 17:02:03 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.1/8.13.1/Submit) id j8RF22Yl002495; Tue, 27 Sep 2005 17:02:02 +0200 (CEST) (envelope-from olli) Date: Tue, 27 Sep 2005 17:02:02 +0200 (CEST) Message-Id: <200509271502.j8RF22Yl002495@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG, Emanuel.strobl@gmx.net In-Reply-To: <200509261820.05930@harrymail> X-Newsgroups: list.freebsd-current User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.11-RELEASE (i386)) X-Mailman-Approved-At: Wed, 28 Sep 2005 11:22:52 +0000 Cc: Subject: Re: user changable brightness? [Was: Re: acpi_sony - no powerd, no man page!] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-current@FreeBSD.ORG List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2005 15:02:05 -0000 Emanuel Strobl wrote: > But now I have the problem that a regular user can't change the brightness: > > akima:~>6: sysctl -w dev.acpi_sony.0.brightness=5 > dev.acpi_sony.0.brightness: 7 > sysctl: dev.acpi_sony.0.brightness: Operation not permitted > > Is there a tunable to allow regular users to write to dev. sysctls or even > better, a sysctl MIB security mask to assign "rights" to a specific MIB? How about using "sudo" or "super" (from ports collection)? Write a small script, so the user can simply type "brightness 5" or whatever, and put it under sudo/super control so it's executed as root. (Just a suggestion.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "I learned Java 3 years before Python. It was my language of choice. It took me two weekends with Python before I was more productive with it than with Java." -- Anthony Roberts