LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-04-2014, 08:58 AM   #1
ron7000
Member
 
Registered: Nov 2007
Location: CT
Posts: 248

Rep: Reputation: 26
Xlib: no protocol specified; Can't open display


i'm trying to run a graphical program,
I use tightvnc to remote into my system as my user account,
if i type 'nedit' then the window pops up and it works fine.
but if i do an 'su' or 'su -' and become root to use nedit, or su to any other account, then for nedit or any other graphical problem i get the following error:

Xlib: connection to "127.0.0.1:4.0" refused by server
Xlib: No protocol specified
NEdit: Can't open display


what causes this and how can i fix it?
I've verified with echo $DISPLAY that before i do an su the contents of DISPLAY are the exact same.

The system this is happening on is running SLES 10.4 and is itanium.
This problem does not happen on my systems that run SLES 11.x which are x86-64. Not sure if it's a security setting that i can change or mistakenly set, or if it's a bug or oversight in SLES 10 that was fixed in SLES 11.
thanks.
 
Old 11-05-2014, 06:48 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
With vnc you are connecting to a desktop on the server which is a a program run and owned by the login user. That's why other users can't access it. You can give other users access using xauth.

You should not use vnc over public Wi-Fi or insecure networks since it is sending your password in clear text. I don't use it unless going through a VPN. I log in with ssh and forward X to a server on my laptop. This is also better performance over slow networks.

Last edited by smallpond; 11-05-2014 at 09:04 AM. Reason: PEBCAK error
 
Old 11-05-2014, 09:54 AM   #3
ron7000
Member
 
Registered: Nov 2007
Location: CT
Posts: 248

Original Poster
Rep: Reputation: 26
http://www.tightvnc.com/faq.php#howsecure

Quote:
How secure is TightVNC?

Although TightVNC encrypts VNC passwords sent over the net, the rest of the traffic is sent as is, unencrypted (for password encryption, VNC uses a DES-encrypted challenge-response scheme, where the password is limited by 8 characters, and the effective DES key length is 56 bits). So using TightVNC over the Internet can be a security risk. To solve this problem, we have plans to implement built-in encryption in future versions of TightVNC.

In the mean time, if you need real security, we recommend installing an SSH server, and using SSH tunneling for all TightVNC connections from untrusted networks.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified eyalkz Linux - Newbie 12 11-27-2018 01:30 PM
No protocol specified Can't open display: :0.0 brandon@rhiamet.com Linux - General 3 04-06-2009 07:41 AM
Xlib: connection to ":0.0" refused by server Xlib: No protocol ... ousoso@webmail.co.za Linux - Newbie 1 05-06-2008 07:46 AM
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified rajnivanza Linux - Software 1 03-13-2008 01:16 PM
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified eyalkz Programming 1 03-02-2004 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:16 PM.

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
Open Source Consulting | Domain Registration