Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:
Suggested Courses

705 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