Does your system use devfs?  I can't remember if
Redhat 7.2 uses this, but with devfs device
permissions are allocated to users on the fly as you
describe.

In this case you can force permissions in
/etc/devfsd.conf.  Such a fix is mentioned in the ALSA
"INSTALL" file included with the ALSA drivers.  Here's
the pertinent section for setting up sound device
permissions:

DEVFS support
=============

The ALSA driver fully supports the devfs extension.
You should add lines below to your devfsd.conf file:

LOOKUP snd MODLOAD ACTION snd
REGISTER ^sound/.* PERMISSIONS root.audio 660
REGISTER ^snd/.* PERMISSIONS root.audio 660

Warning: These lines assume that you have the audio
group in your system.

Otherwise replace audio word with another group name
(root for example).

Best,

Kevin

--- Arcana <[EMAIL PROTECTED]> wrote:
> Hello there,
> 
> When I log in as a user all of the audio-related
> devices get their owners 
> changed to the currently logged-in user.
> 
> So, what happens is that if I log in under my user
> name (let's say "irwink") 
> then the devices /dev/audio*, /dev/dsp*,
> /dev/sequencer*, etc. get chowned to 
> "irwink".
> 
> If I log out and log in under a different name, then
> the devices are set under 
> the new login name.
> 
> If I don't log out, and instead log in on another
> tty with a new user name, 
> then the /dev/audio* doesn't change, and is still
> chowned to the first person 
> logged into the machine.
> 
> Originally what I had set up was a group named
> "audio" and I chgrped all of 
> the audio devices to that group, and all users that
> I allowed to play sound 
> would be a part of that group.  However, if I log
> out and log back in 
> everything gets changed back t othe way it
> originally was.
> 
> This is very annoying because sometimes I use
> multiple TTY's that must play 
> sound effects.  So I have to manually chgrp and
> chmod all of the audio 
> devices.
> 
> Does anyone know what might set the owners on login?
> 
> I run:
> 
> Alsa 0.9rc1 on a Linux 2.4.18 kernel.
> Red hat 7.2
> I installed the alsasound init.d script.
> 
> I couldn't find anything in /etc/profile or
> /etc/bashrc that might look like 
> it's changing permissions.  I'm wondering if anyone
> might know about this and 
> where all of these  devices' owners are set on
> logging in.  I presume it's 
> something run before startup as root (or suid root)
> because only root would 
> have permissions to change the owners of the devices
> to anyone who logs in.
> 
> Thank you!
> -- 
> -- Arcana
> 
> Dreams may be in sleep, or may occur waking.  In all
> cases, listen to your 
> dreams.
> 
> 
>
-------------------------------------------------------
> This sf.net email is sponsored by: viaVerio will pay
> you up to
> $1,000 for every account that you consolidate with
> us.
> http://ad.doubleclick.net/clk;4749864;7604308;v?
> http://www.viaverio.com/consolidator/osdn.cfm
> _______________________________________________
> Alsa-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/alsa-user


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to