QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1071|回复: 2

关于 bug74/77 “未知错误”的一些详情

[复制链接]
发表于 2009-7-7 11:39:29 | 显示全部楼层 |阅读模式
0000074: 普通用户无法启动 smart
0000077: 部分需要root权限的程序由普通用户执行时提示“未知错误”

相关的包:  smart usermode pam

普通用户终端执行 smart-gui 的调试信息输出:

  1. [nihui@Nihui ~]$ smart-gui
  2. Running child pid=10425.
  3. Exec arg 0 = "/usr/sbin/userhelper".
  4. Exec arg 1 = "-w".
  5. Exec arg 2 = "smart-gui".
  6. userhelper: ruid user = 'nihui'
  7. userhelper: current user is nihui
  8. userhelper: ruid user = 'nihui'
  9. userhelper: user for auth = 'root'
  10. userhelper: authenticating "root"
  11. [Invalid UTF-8] userhelper: PAM retval = 28 (\xc4\xa3\xbf\xe9\xce\xb4\xd6\xaa)
  12. userhelper: authenticating "root"
  13. [Invalid UTF-8] userhelper: PAM retval = 28 (\xc4\xa3\xbf\xe9\xce\xb4\xd6\xaa)
  14. userhelper: authenticating "root"
  15. [Invalid UTF-8] userhelper: PAM retval = 28 (\xc4\xa3\xbf\xe9\xce\xb4\xd6\xaa)
  16. userhelper: got PAM error 28.
  17. userhelper: exiting with status 255.
  18. EOF from child.
  19. Child 10425 exited (looking for 10425).
  20. Child 10425 exited normally, ret = 255.
  21. Child returned exit status 255.
  22. Status is "Unknown error.".

  23. (smart-gui:10424): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
  24. Quitting main loop 1.
  25. Completing startup notification for "".
  26. Child exited, continuing.
  27. [nihui@Nihui ~]$ python -c "print '\xc4\xa3\xbf\xe9\xce\xb4\xd6\xaa'"
  28. 模块未知
复制代码
经检查,smart-gui 的 pam 文件中 /lib/security/pam_stack.so 模块已经不存在,按照 fedora 的 smart 包中的配置更新了此行。

再次尝试执行 smart-gui,不再提示未知错误。但仍然有问题。。。
调试信息输出:

  1. [nihui@Nihui ~]$ smart-gui
  2. Running child pid=10735.
  3. Exec arg 0 = "/usr/sbin/userhelper".
  4. Exec arg 1 = "-w".
  5. Exec arg 2 = "smart-gui".
  6. userhelper: ruid user = 'nihui'
  7. userhelper: current user is nihui
  8. userhelper: ruid user = 'nihui'
  9. userhelper: user for auth = 'root'
  10. userhelper: authenticating "root"
  11. userhelper (cp): converse_pipe_called(num_msg=1, canceled=0)
  12. userhelper (cp): sending user `root'
  13. userhelper (cp): sending service `smart-gui'
  14. userhelper (cp): sending fallback = 0.
  15. [Invalid UTF-8] userhelper (cp): sending prompt (no echo) = "\xc3\xdc\xc2\xeb\xa3\xba".
  16. userhelper (cp): sending expected response count = 1.
  17. userhelper (cp): sending sync point.
  18. Child message: (42)/"root"
  19. User is "root".
  20. Completing startup notification for "".
  21. Child message: (40)/"smart-gui"
  22. Service is "smart-gui".
  23. Completing startup notification for "".
  24. Child message: (41)/"0"
  25. Fallback not allowed.
  26. Completing startup notification for "".
  27. userhelper (cp): got 0 responses, expected 1 <---- 定位在 userhelper.c 第 451 行
  28. [Invalid UTF-8] userhelper: PAM retval = 7 (\xbc\xf8\xb6\xa8\xb9\xca\xd5\xcf)
  29. userhelper: exiting with status 12.
  30. [nihui@Nihui ~]$ python -c "print '\xc3\xdc\xc2\xeb\xa3\xba'"
  31. 密码:
  32. [nihui@Nihui ~]$ python -c "print '\xbc\xf8\xb6\xa8\xb9\xca\xd5\xcf'"
  33. 鉴定故障
复制代码

[ 本帖最后由 nihui 于 2009-7-7 11:40 编辑 ]
发表于 2009-7-7 12:04:01 | 显示全部楼层
看起来和pam有关?
我更新了pam。另外,usermode的配置是否有和pam有关的呢。
回复

使用道具 举报

 楼主| 发表于 2009-7-7 12:53:41 | 显示全部楼层
system-config-mouse 的 pam 文件也有 pam_stack.so 无效模块。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-23 09:56 , Processed in 0.041182 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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