From owner-freebsd-questions@FreeBSD.ORG Tue Feb 27 14:30:32 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BA7FB16A400 for ; Tue, 27 Feb 2007 14:30:32 +0000 (UTC) (envelope-from kirk@strauser.com) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.freebsd.org (Postfix) with ESMTP id 78E4913C4A6 for ; Tue, 27 Feb 2007 14:30:32 +0000 (UTC) (envelope-from kirk@strauser.com) Received: from localhost (localhost [127.0.0.1]) by kanga.honeypot.net (Postfix) with ESMTP id B6C1F20583F for ; Tue, 27 Feb 2007 08:30:31 -0600 (CST) X-Virus-Scanned: amavisd-new at honeypot.net Received: from kanga.honeypot.net ([127.0.0.1]) by localhost (kanga.honeypot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DC5sppwYU-pY for ; Tue, 27 Feb 2007 08:30:21 -0600 (CST) Received: from kanga.honeypot.net (kanga.honeypot.net [IPv6:2001:470:1f01:224:1::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by kanga.honeypot.net (Postfix) with ESMTP id 88F39205856 for ; Tue, 27 Feb 2007 08:30:21 -0600 (CST) From: Kirk Strauser To: freebsd-questions@freebsd.org Date: Tue, 27 Feb 2007 08:30:15 -0600 User-Agent: KMail/1.9.5 References: <45E0C941.2030203@gmail.com> In-Reply-To: <45E0C941.2030203@gmail.com> X-Face: &'; cS03F?rr_w2Qce.d2f7xmwXfcJWDs>}CkpDw.c]ZJJ_)i0Nx Subject: Re: how to run root cmds when starting xorg? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 14:30:32 -0000 --nextPart1355448.s5Mb2O1ekE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 24 February 2007 17:24, deeptech71@gmail.com wrote: > how do i exec a kldload script when starting ttyv8 kdm (or xorg) ? Another idea not yet mentioned is to create two wrapper scripts like so: $ cat /usr/local/bin/loadsound #!/bin/sh kldload whatever.ko $ cat /usr/local/bin/unloadsound #!/bin/sh kldunload whatever.ko and the install sudo and configure it to give your user the ability to run= =20 those two commands without entering your password. Finally, add "sudo=20 loadsound" and "sudo unloadsound" to your startup and exit scripts. =2D-=20 Kirk Strauser --nextPart1355448.s5Mb2O1ekE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBF5EB75sRg+Y0CpvERAuRIAJ0d7I9Ysafl51jgkL172UIxquDpxgCeIgpA 1apJZ7TMTXDmkeaiOkOzbtg= =QL5J -----END PGP SIGNATURE----- --nextPart1355448.s5Mb2O1ekE--