LinuxSir.cn,穿越时空的Linuxsir!

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

一般用户su root后无法运行任何图形界面的软件?

[复制链接]
发表于 2003-2-25 12:45:26 | 显示全部楼层 |阅读模式
一般用户su root后无法运行任何图形界面的软件?

这个挺不方便的!
发表于 2003-2-25 14:06:31 | 显示全部楼层

Re: 大家遇到这个问题吗?

最初由 euboy 发布
无法运行任何图形界面的软件?


说具体些,如果说不能运行任何图形界面的软件,是不是X也不能运行呢?
发表于 2003-2-25 20:10:17 | 显示全部楼层
我没有遇到过。如果是连x都进不了,那可以找精华里面的帖子。
发表于 2003-2-25 20:20:58 | 显示全部楼层

我以前也遇到过

但后来不知道怎么解决了
现在可以了
发表于 2003-2-25 20:34:00 | 显示全部楼层
是不和xdm/gdm/kdm这东西有关?
发表于 2003-2-25 23:48:53 | 显示全部楼层
su - 试试
发表于 2003-2-26 05:08:08 | 显示全部楼层
first of all, take a second shell with normal user, and do a : "xhost +", then under your switch user (su) shell, try to do this:
a)export DISPLAY=yourhost:0.0
b)export XAUTHORITY=/home/normaluser/.Xauthority
c)xine&

Werix
发表于 2003-2-26 05:41:36 | 显示全部楼层
or even (with su):
ssh yourhost /path/application -display yourhost:0
it seems to be a X security mechanism, read this doc:
"zmore /usr/share/doc/xfree86-common/FAQ.gz" for more info.

Werix
发表于 2003-2-26 05:46:27 | 显示全部楼层
in this document, they says or you can: ln -s /home/normaluser/.Xauthority /root/.Xauthority
or XAUTHORITY=/home/normaluser/.Xauthority xpdf (or mozilla ...)
 楼主| 发表于 2003-2-26 11:51:22 | 显示全部楼层
谢谢大家的回答!
ln -s /home/normaluser/.Xauthority /root/.Xauthority
解决了问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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