NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to restrict (audio) device permissions to a group?



On Mon, Nov 14, 2011 at 09:15:58AM +0100, Ignatios Souvatzis wrote:
> On Sun, Nov 13, 2011 at 01:16:07AM +0530, Mayuresh wrote:
> > While trying to get audio work on NetBSD I realize the audio device is
> > writable to all.
> > 
> > Can the use of audio device be restricted to a group of users only?
> > (I am not really looking for who-ever-logs-in-at-desktop-gets-permissions
> > stuff. Just looking for statically defined perbmissions using group
> > membership.)
> 
> By normal file permissions, applied to the audio devices. In case you have
> only one audio device:
> 
> chmod o-rwx /dev/audio0 /dev/audioctl0 /dev/sound0 
> chmod g+rwx /dev/audio0 /dev/audioctl0 /dev/sound0 

Where to put such commands so that this happens on every boot?

rc.local? - but sounds a little ad hoc to me.

Basically, is there any convention for this, since this seems a general
requirement with devices

Mayuresh.


Home | Main Index | Thread Index | Old Index