LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 920|回复: 2

请教:su后执行gedit出现错误提示

[复制链接]
发表于 2007-3-5 19:17:07 | 显示全部楼层 |阅读模式
在Gnome Terminal中su后执行gedit,出现如下提示:
(gedit:3148): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.


但是gedit能运行起来正常使用。在自己用户下执行没有这个提示。
请问这是什么问题?
发表于 2007-3-5 19:51:56 | 显示全部楼层
When `su', use `su -m' so that X can be correctly forwarded to root
As an alternative, invoke
        echo 'export XAUTHORITY=~/.Xauthority' >> .bashrc
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-5 20:24:01 | 显示全部楼层
哦,这样啊
还以为自己配置有问题呢

又看了一下man su,差不多明白了。谢谢!
回复 支持 反对

使用道具 举报

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

本版积分规则

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