| 
 | 
 
0000074: 普通用户无法启动 smart  
0000077: 部分需要root权限的程序由普通用户执行时提示“未知错误”  
 
相关的包:  smart usermode pam 
 
普通用户终端执行 smart-gui 的调试信息输出: 
- [nihui@Nihui ~]$ smart-gui
 
 - Running child pid=10425.
 
 - Exec arg 0 = "/usr/sbin/userhelper".
 
 - Exec arg 1 = "-w".
 
 - Exec arg 2 = "smart-gui".
 
 - userhelper: ruid user = 'nihui'
 
 - userhelper: current user is nihui
 
 - userhelper: ruid user = 'nihui'
 
 - userhelper: user for auth = 'root'
 
 - userhelper: authenticating "root"
 
 - [Invalid UTF-8] userhelper: PAM retval = 28 (\xc4\xa3\xbf\xe9\xce\xb4\xd6\xaa)
 
 - userhelper: authenticating "root"
 
 - [Invalid UTF-8] userhelper: PAM retval = 28 (\xc4\xa3\xbf\xe9\xce\xb4\xd6\xaa)
 
 - userhelper: authenticating "root"
 
 - [Invalid UTF-8] userhelper: PAM retval = 28 (\xc4\xa3\xbf\xe9\xce\xb4\xd6\xaa)
 
 - userhelper: got PAM error 28.
 
 - userhelper: exiting with status 255.
 
 - EOF from child.
 
 - Child 10425 exited (looking for 10425).
 
 - Child 10425 exited normally, ret = 255.
 
 - Child returned exit status 255.
 
 - Status is "Unknown error.".
 
  
- (smart-gui:10424): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
 
 - Quitting main loop 1.
 
 - Completing startup notification for "".
 
 - Child exited, continuing.
 
 - [nihui@Nihui ~]$ python -c "print '\xc4\xa3\xbf\xe9\xce\xb4\xd6\xaa'"
 
 - 模块未知
 
 
  复制代码 经检查,smart-gui 的 pam 文件中 /lib/security/pam_stack.so 模块已经不存在,按照 fedora 的 smart 包中的配置更新了此行。 
 
再次尝试执行 smart-gui,不再提示未知错误。但仍然有问题。。。 
调试信息输出: 
- [nihui@Nihui ~]$ smart-gui
 
 - Running child pid=10735.
 
 - Exec arg 0 = "/usr/sbin/userhelper".
 
 - Exec arg 1 = "-w".
 
 - Exec arg 2 = "smart-gui".
 
 - userhelper: ruid user = 'nihui'
 
 - userhelper: current user is nihui
 
 - userhelper: ruid user = 'nihui'
 
 - userhelper: user for auth = 'root'
 
 - userhelper: authenticating "root"
 
 - userhelper (cp): converse_pipe_called(num_msg=1, canceled=0)
 
 - userhelper (cp): sending user `root'
 
 - userhelper (cp): sending service `smart-gui'
 
 - userhelper (cp): sending fallback = 0.
 
 - [Invalid UTF-8] userhelper (cp): sending prompt (no echo) = "\xc3\xdc\xc2\xeb\xa3\xba".
 
 - userhelper (cp): sending expected response count = 1.
 
 - userhelper (cp): sending sync point.
 
 - Child message: (42)/"root"
 
 - User is "root".
 
 - Completing startup notification for "".
 
 - Child message: (40)/"smart-gui"
 
 - Service is "smart-gui".
 
 - Completing startup notification for "".
 
 - Child message: (41)/"0"
 
 - Fallback not allowed.
 
 - Completing startup notification for "".
 
 - userhelper (cp): got 0 responses, expected 1 <---- 定位在 userhelper.c 第 451 行
 
 - [Invalid UTF-8] userhelper: PAM retval = 7 (\xbc\xf8\xb6\xa8\xb9\xca\xd5\xcf)
 
 - userhelper: exiting with status 12.
 
 - [nihui@Nihui ~]$ python -c "print '\xc3\xdc\xc2\xeb\xa3\xba'"
 
 - 密码:
 
 - [nihui@Nihui ~]$ python -c "print '\xbc\xf8\xb6\xa8\xb9\xca\xd5\xcf'"
 
 - 鉴定故障
 
 
  复制代码 
[ 本帖最后由 nihui 于 2009-7-7 11:40 编辑 ] |   
 
 
 
 |