LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-16-2005, 03:39 PM   #1
bjmorse
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
xhost + and displaying an xterm


We are running RH Rel4 Enterprise. I just set up a couple of new workstations. Running great ... with the exception of trying to display back to the console.
If the user logs in and does an xhost + ... then logs into another node at our site and trying to display back (an xterm, anything) to the console, we get a can't open display message.
Yes, we are setting setenv DISPLAY hostname:0.0 (tried all possible variations, the IP address etc.)

Possibly some default settings in /etc/pam.d or initd ???? Any suggestions?
 
Old 08-16-2005, 04:06 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
Ummm ... just checking:

As far as I know DeadRat uses bash by default, but
the DISPLAY statement is using (t)csh syntax. Are
you using tcsh or bash?

If it were bash indeed, try
export DISPLAY=hostname:0.0
instead.

And since you came to security: xhost + is generally
bad practice, if you MUST do that redirect this way,
do an xhost +servername.


Cheers,
Tink
 
Old 08-23-2005, 01:34 PM   #3
eglnx
LQ Newbie
 
Registered: Mar 2005
Posts: 10

Rep: Reputation: 0
Re: xhost + and displaying an xterm

Quote:
Originally posted by bjmorse
We are running RH Rel4 Enterprise. I just set up a couple of new workstations. Running great ... with the exception of trying to display back to the console.
If the user logs in and does an xhost + ... then logs into another node at our site and trying to display back (an xterm, anything) to the console, we get a can't open display message.
Yes, we are setting setenv DISPLAY hostname:0.0 (tried all possible variations, the IP address etc.)

Possibly some default settings in /etc/pam.d or initd ???? Any suggestions?
Are you using telnet to log in to these nodes?

If you use ssh, it has the ability to automatically forward X clients back to you. It is encrypted over the SSH tunnel and does not require the xhost stuff at all.

See man ssh if you are not familiar with this. You might have to use ssh -X hostname to enable, or set it in the config files.

If you already knew this but have a special need that ssh will not support, please excuse me.

Also, do you have a firewall (iptables) blocking the inbound X connection?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm - howto lauch an xterm into a specific directory jobano Linux - Software 8 02-26-2008 04:18 PM
xterm: freetype error displaying hypens? prell Linux - Software 1 03-18-2005 09:19 PM
xhost + mlykam Linux - Software 3 03-17-2005 10:50 AM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 04:51 AM
xhost + RoaCh Of DisCor Slackware 3 10-02-2004 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration