Cannot open display while running X Apps as another user

安稳与你 提交于 2019-12-13 06:40:56

问题


I am currently using X11RDP to connect to a RHEL 6.5 endpoint, as root user. All X apps work fine, and directed properly to the right display (say 11.0).

Now if I switch to another user (su - user1), then I try to open any X app (say xterm) it will be unable to open the display (even though it is also 11.0).

I do not believe the problem to be with xauth (magic cookies, etc), or the DISPLAY environment variable not being set correctly, or allowing connection with xhost +; but rather something with XRDP.

Any help would be appreciated.


回答1:


The solution to my problem was actually in how x11rdp was starting.

It starts the x server with -nolisten tcp.

If that part is commented out in /etc/xrdp/sesman.ini for x11rdp then the problems described above will be gone.

Hope this helps other people experiencing the same problems.



来源:https://stackoverflow.com/questions/30063218/cannot-open-display-while-running-x-apps-as-another-user

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!