'/ usr / bin / myapp'是'/ usr / bin / consolehelper'的链接 .
当非root用户尝试在命令提示符下运行'/usr/bin/myapp'时,它显示' userhelper must be setuid root '. But running with ' sudo / usr / bin / myapp'它工作正常 .
使用GUI时,它显示' Insufficient rights ' popup. I tried by changing permissions of related files ' /etc/security/console.apps/myapp ' and ' /etc/pam.d/myapp' .
我打开' System->Administration->Users and Groups '时会弹出相同的弹出窗口 .
1 回答
我得到了解决方案!问题是/ usr / sbin / userhelper缺少setuid位 . 我使用以下命令设置:
这改变了' -rwx--x--x ' to ' -rws--x--x '的权限