Re: [Alsa-user] How can I prevent change owner of /dev/snd/* after gnome session login
Brought to you by:
perex
From: John H. <jc...@th...> - 2004-09-30 21:30:51
|
Lee Revell wrote: >On Thu, 2004-09-30 at 15:48, Rocky Zhang wrote: > > >>Hi John, >> >>You're right. I commented out the lines "sound" in >>/etc/security/console.perms, and it works. As you said, if I set >>permission by group, I must specify users to belong to the group. I'd >>like to change the audio owner to specific end user (different audio >>device ownered by different user), here still some problem: normal end >>user can't change owner of others file, I must use "sudo" command to do >>it (it's also a headache for me). No good solution so far. >> >> >> > >Then please report this as a Fedora bug. It is not an ALSA problem, but >a distro problem. > > Well, I think "bug" is a bit strong. Enhancement request perhaps. The console.perms stuff allows for users to have access to special files (eg /dev/fd0, /dev/snd/*, stuff like that) when the log in to the console or an x-console. That's because when you're logged in to the console you have physical access to the machine so you're given access to some physical resources (floppy, sound, cdrom and whatnot) associated with the machine. What Rocky wants, I think, is to extend that to allow a different class of user with physical access to have physical access to a different set of physical resources. I'm really not sure how to achieve this with the current framework -- there's a not unreasonable assumption that there's only one user with physical access to the machine. I think I'd be inclined to take the easy way out -- specifically exclude the USB sound device from console.perms and fix the permissions of that to allow anyone access who is in the right group. It's not perfect by any means, but probably doable in a reasonable time. The only downside is that anyone in the right group can get to the sound device, usually by accident. That's the downside with the debian scheme as well: once you have access, you've got it all the time, regardless of who actually has the headphones one. jch jch |