haulm 发表于 2008-9-13 03:06:38

仍然是pam升级后的错,解决普通用户无声音的问题

pam现用版本对比pam0.8-3mgc,在/etc/security/console.perms.d/50-default.perms里发现明显差异,MGC的声音定义名称是sound,我用别的名字没成功过,有兴趣的朋友可以尝试。

解决办法,重新打包pam,并重写定义 /etc/security/console.perms.d/50-default.perms

不想等待升级的朋友请把以下内容复制替换 /etc/security/console.perms.d/50-default.perms

# device classes -- these are shell-style globs
<floppy>=/dev/fd* \
       /dev/floppy* /mnt/floppy*
<sound>=/dev/dsp* /dev/audio* /dev/midi* \
        /dev/mixer* /dev/sequencer \
        /dev/sound/* /dev/beep \
        /dev/snd/* /dev/adsp*
<cdrom>=/dev/cdrom* /dev/cdroms/* /dev/cdwriter* /mnt/cdrom*
<pilot>=/dev/pilot
<jaz>=/mnt/jaz*
<zip>=/mnt/pocketzip* /mnt/zip* /dev/zip*
<ls120>=/dev/ls120 /mnt/ls120*
<scanner>=/dev/scanner* /dev/usb/scanner*
<rio500>=/dev/usb/rio500
<camera>=/mnt/camera* /dev/usb/dc2xx* /dev/usb/mdc800*
<memstick>=/mnt/memstick*
<flash>=/mnt/flash* /dev/flash*
<diskonkey>=/mnt/diskonkey*
<rem_ide>=/mnt/microdrive*
<fb>=/dev/fb /dev/fb* \
   /dev/fb/*
<kbd>=/dev/kbd
<joystick>=/dev/js*
<v4l>=/dev/video* /dev/radio* /dev/winradio* /dev/vtx* /dev/vbi* \
      /dev/video/*
<gpm>=/dev/gpmctl
<dri>=/dev/nvidia* /dev/3dfx* /dev/dri/card*
<mainboard>=/dev/apm_bios
<pmu>=/dev/pmu
<bluetooth>=/dev/rfcomm*
<raw1394>=/dev/raw1394

# permission definitions
<console>0660 <floppy>   0666 root.floppy
<console>0600 <sound>      0666 root
<console>0600 <cdrom>      0666 root.disk
<console>0600 <pilot>      0666 root.uucp
<console>0600 <jaz>      0666 root.disk
<console>0600 <zip>      0666 root.disk
<console>0600 <ls120>      0666 root.disk
<console>0600 <scanner>    0666 root
<console>0600 <camera>   0666 root.disk
<console>0600 <memstick>   0666 root.disk
<console>0600 <flash>      0666 root.disk
<console>0600 <diskonkey>0666 root.disk
<console>0600 <rem_ide>    0666 root.disk
<console>0600 <fb>         0666 root
<console>0600 <kbd>      0666 root
<console>0600 <joystick>   0666 root
<console>0600 <v4l>      0666 root
<console>0700 <gpm>             0777 root
<console>0600 <mainboard>0666 root
<console>0600 <rio500>   0666 root
<console>0600 <pmu>      0666 root
<console>0600 <bluetooth>0666 root
<console>0600 <raw1394>    0666 root

<xconsole> 0600 /dev/console 0666 root.root
<console> 0600 <dri>             0666 root

ylzzy 发表于 2008-9-13 05:12:35

我已经解决了普通用户无声音的问题,谢谢版主:shock: :-D

sejishikong 发表于 2008-9-13 08:42:05

噢,那fuse应该也和这个有关了。
页: [1]
查看完整版本: 仍然是pam升级后的错,解决普通用户无声音的问题