QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2163|回复: 2

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

[复制链接]
发表于 2008-9-13 03:06:38 | 显示全部楼层 |阅读模式
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

  1. # device classes -- these are shell-style globs
  2. <floppy>=/dev/fd[0-1]* \
  3.          /dev/floppy* /mnt/floppy*
  4. <sound>=/dev/dsp* /dev/audio* /dev/midi* \
  5.         /dev/mixer* /dev/sequencer \
  6.         /dev/sound/* /dev/beep \
  7.         /dev/snd/* /dev/adsp*
  8. <cdrom>=/dev/cdrom* /dev/cdroms/* /dev/cdwriter* /mnt/cdrom*
  9. <pilot>=/dev/pilot
  10. <jaz>=/mnt/jaz*
  11. <zip>=/mnt/pocketzip* /mnt/zip* /dev/zip*
  12. <ls120>=/dev/ls120 /mnt/ls120*
  13. <scanner>=/dev/scanner* /dev/usb/scanner*
  14. <rio500>=/dev/usb/rio500
  15. <camera>=/mnt/camera* /dev/usb/dc2xx* /dev/usb/mdc800*
  16. <memstick>=/mnt/memstick*
  17. <flash>=/mnt/flash* /dev/flash*
  18. <diskonkey>=/mnt/diskonkey*
  19. <rem_ide>=/mnt/microdrive*
  20. <fb>=/dev/fb /dev/fb[0-9]* \
  21.      /dev/fb/*
  22. <kbd>=/dev/kbd
  23. <joystick>=/dev/js[0-9]*
  24. <v4l>=/dev/video* /dev/radio* /dev/winradio* /dev/vtx* /dev/vbi* \
  25.       /dev/video/*
  26. <gpm>=/dev/gpmctl
  27. <dri>=/dev/nvidia* /dev/3dfx* /dev/dri/card*
  28. <mainboard>=/dev/apm_bios
  29. <pmu>=/dev/pmu
  30. <bluetooth>=/dev/rfcomm*
  31. <raw1394>=/dev/raw1394

  32. # permission definitions
  33. <console>  0660 <floppy>     0666 root.floppy
  34. <console>  0600 <sound>      0666 root
  35. <console>  0600 <cdrom>      0666 root.disk
  36. <console>  0600 <pilot>      0666 root.uucp
  37. <console>  0600 <jaz>        0666 root.disk
  38. <console>  0600 <zip>        0666 root.disk
  39. <console>  0600 <ls120>      0666 root.disk
  40. <console>  0600 <scanner>    0666 root
  41. <console>  0600 <camera>     0666 root.disk
  42. <console>  0600 <memstick>   0666 root.disk
  43. <console>  0600 <flash>      0666 root.disk
  44. <console>  0600 <diskonkey>  0666 root.disk
  45. <console>  0600 <rem_ide>    0666 root.disk
  46. <console>  0600 <fb>         0666 root
  47. <console>  0600 <kbd>        0666 root
  48. <console>  0600 <joystick>   0666 root
  49. <console>  0600 <v4l>        0666 root
  50. <console>  0700 <gpm>             0777 root
  51. <console>  0600 <mainboard>  0666 root
  52. <console>  0600 <rio500>     0666 root
  53. <console>  0600 <pmu>        0666 root
  54. <console>  0600 <bluetooth>  0666 root
  55. <console>  0600 <raw1394>    0666 root

  56. <xconsole> 0600 /dev/console 0666 root.root
  57. <console> 0600 <dri>             0666 root
复制代码
发表于 2008-9-13 05:12:35 | 显示全部楼层
我已经解决了普通用户无声音的问题,谢谢版主
回复

使用道具 举报

发表于 2008-9-13 08:42:05 | 显示全部楼层
噢,那fuse应该也和这个有关了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-25 22:00 , Processed in 0.079957 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表