Cannot open X display from other userid

Posted on 1999-07-01
Medium Priority
Last Modified: 2008-02-20
Using Redhat 6.0 on a Pentium, when I login
as me (not root) and startx, then start an xterm
and in the xterm I issue:
su - othername

then othername works fine, EXCEPT it cannot open the
X display.  I get messages like:

Fatal Error in gearspgm: could not open display:

or from Emacs:
Error in init file: error: "X windows are not in use or not initialized"

% xclock
Error: Can't open display:

% echo $DISPLAY

I tried issuing, from my userid xterm:
$ xhost +
access control disabled, clients can connect from any host

But that didn't help.

How can I get X working for other userids as well?
Many thanks -

Question by:ssullivan

Accepted Solution

czamudio earned 400 total points
ID: 1634904

export DISPLAY

and that's it.

Author Comment

ID: 1634905
Thanks ... works great!  I'd set it, but still
needed to export the var.

Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
This article explains how to use the rsync command to create backups and sync data across hosts. Rsync is a very useful command that is often used to copy data, make backups, migrate hosts, and bridge the gap between site staging and production envi…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question