I installed slim login manager on my slack12.2, when user logged into desktop with slim, run command "alsamixer", it greeted an error message:
alsamixer: function snd_ctl_open failed for default: No such file or directory
I have straced the alsamixer, and find that the problem is permissions. I have no permissions on /dev/snd/* and /dev/dsp, etc.
the default permissions just like this:
crw-rw---- 1 root audio 116, 0 2009-06-18 22:32 /dev/snd/controlC0
Now i'm in x-window logged in with slim, and run command "groups" or "id", find that i'm not a member of group "audio".
then i'm logged in from tty console, run "alsamixer", no errors, and run "groups" and "id", the result is : i'm a member of group "audio".
the problem is: if use slim, the addtional group audio will missed, but tty not.
I know, if I changed the permissions of the /dev/snd/*, this problem may be solved, but it's not a correct way.
Anyone can tell me why? Thx at first.
solved. add the groups manually.