![](https://seccdn.libravatar.org/avatar/7d518627350cee602a61c0807ce78fda.jpg?s=120&d=mm&r=g)
Hi Anders, Yes. It does work! I prefer to modify permission from 0600 to 0660. Thanks. Rocky On Mon, 2005-03-07 at 19:57 +0000, Anders Johansson wrote:
On Monday 07 March 2005 19:51, Rocky Zhang wrote:
Hi,
I have a computer running with SuSe 9.1, KDE desktop. And I connected 2 USB audio headsets to my computer. I found that before user log in, the audio devices (such as /dev/dsp*, /dev/snd/*) owner is root:audio, permission is 660; After one user log in, all the audio device files change owner to $USER:audio, permission change to 600, so another users can't have permission to use the USB headset. How can I prevent it ( keep audio device owner always root, and permission is 660, no matter user login or not)?
I know in Fedora Core 2/3 and Mandrake 10.1, it's a configuration file ( /etc/security/console.perms) , which is included in pam RPM, that you can edit to prevent normal session login change audio device owner. I checked my SuSe ( version 9.1), there does have pam-0.77-221 RPM there, but there is no such file (/etc/security/console.perms) included in the RPM. How does SuSe control device owner and permission when normal session log in which are controlled by PAM and console.perms configuration file in other Linux Distribution?
The permissions are controlled by the file /etc/logindevperm where you can control in detail which files get chown()ed, and if you want to stop the chown()ing altogether remove the line "session required pam_devperm.so" from the files /etc/pam.d/xdm and /etc/pam.d/xdm-np