Douglas Mayne wrote:
> I just noticed that on version 13.37 of Slackware the individual user
> doesn't have to be a member of the audio group to use the sound devices.
> The same goes for the user not having to be a member of the video group
> to use webcams, etc. In a way it makes more sense for the user to have
> to be given explicit permission. What changed that makes it possible
> to /* just work */ without requiring tweaks to the /etc/group file?
>
> The permissions to /dev/dsp look like this:
>
> $ ls -la /dev/dsp1
> crw-rw----+ 1 root audio 14, 19 Feb 3 09:39 /dev/dsp1
>
> Thanks in advance for any help shedding some light on this!
Have a look at /etc/login.defs:
[...]
# List of groups to add to the user's supplementary group set
# when logging in on the console (as determined by the CONSOLE
# setting). Default is none.
#
# Use with caution - it is possible for users to gain permanent
# access to these groups, even when not logged in on the console.
# How to do it is left as an exercise for the reader...
#
# Most of these groups are self-explanatory.
#
# Note that users are added to these default groups only when
# logging into a shell with /bin/login, not when using a login
# manager such as kdm. In that case, users who should have
# hardware access must be added to the appropriate groups
# when the user is added with adduser or useradd, or by editing
# /etc/group directly, preferably using "vigr"
#
CONSOLE_GROUPS floppy:audio:cdrom:video:scanner
[...]
I suppose you're running in the default runlevel 3 and users
log in on a virtual console, not with kdm/xdm.
> By the way, I ran into this problem while trying to debug why a new
> user couldn't play audio files remotely using ssh. These error
> messages were a bit cryptic, but google helped to decode that
> it was a permissions problem, and not some environment variable
> or other edge case.
>
> ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
> ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
> ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
> ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
> ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
> ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
> ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
> ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM default
> sox FAIL formats: can't open output file `default': snd_pcm_open error: No such file or directory
>
Regards,
Kees.
--
Kees Theunissen.