Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Sep 2005 17:02:02 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-current@FreeBSD.ORG, Emanuel.strobl@gmx.net
Subject:   Re: user changable brightness? [Was: Re: acpi_sony - no powerd, no man page!]
Message-ID:  <200509271502.j8RF22Yl002495@lurza.secnetix.de>
In-Reply-To: <200509261820.05930@harrymail>

next in thread | previous in thread | raw e-mail | index | archive | help
Emanuel Strobl <Emanuel.strobl@gmx.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509271502.j8RF22Yl002495>