From owner-freebsd-chat Wed Sep 5 9:40:50 2001 Delivered-To: freebsd-chat@freebsd.org Received: from aragorn.neomedia.it (aragorn.neomedia.it [195.103.207.6]) by hub.freebsd.org (Postfix) with ESMTP id 84EFB37B401 for ; Wed, 5 Sep 2001 09:40:46 -0700 (PDT) Received: (from httpd@localhost) by aragorn.neomedia.it (8.11.4/8.11.4) id f85GeXi12486; Wed, 5 Sep 2001 18:40:33 +0200 (CEST) To: Piet Delport Subject: Re: Scripts and setuid Message-ID: <999708032.3b96558062cd2@webmail.neomedia.it> Date: Wed, 05 Sep 2001 18:40:32 +0200 (CEST) From: Salvo Bartolotta Cc: freebsd-chat@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.4-cvs X-WebMail-Company: Neomedia s.a.s. X-Originating-IP: 62.98.170.42 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Tidings, > Some background: > Having recently discovered cdcontrol(1), and finding it useful for > playing CDs from the console, i was in search of a way to cleanly run it > as a non-root user. > I initially tried playing around with the modes of /dev/acd0c and the > /usr/sbin/cdcontrol binary, which works, but has the disadvantage of > being overwritten whenever i "make world". Maybe I am missing something. Surely your /dev/MAKEDEV.local doesn't work? (cf MAKEDEV(8)) Anyway, the [device-creating &] chmod'ing commands could be put in a two-liner, or rather, a one-liner to be executed as part of your make world. As to user settings, this is an excerpt from my ~/.login: # Cdcontrol(1) & mixer(8) stuff. setenv CDROM /dev/acd0c mixer vol 86:86 > /dev/null mixer igain 75:75 > /dev/null mixer ogain 75:75 > /dev/null mixer pcm 33:33 > /dev/null mixer cd 100:100 > /dev/null mixer mic 0:0 > /dev/null mixer speaker 0:0 > /dev/null mixer line 0:0 > /dev/null mixer bass 75:75 > /dev/null mixer treble 75:75 > /dev/null mixer synth 75:75 > /dev/null ------------------------------ HTH, Salvo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message