LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-21-2011, 08:59 PM   #1
creative
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Rep: Reputation: Disabled
cant connect xwindow as root


I have VNCed to a Solaris machine. When logged in as the default user I am able to start xwindow, but when I su - root.. export DISPLAY and try to open an xwindow I get this error:

[root@patton:/] xclock
Xlib: connection to "patton:6.0" refused by server
Xlib: No protocol specified
Error: Can't open display: patton:6

when I ssh from my local windows machine using putty to the same host and use Cygwin for xWindow. I am able to start the x-window on my local machine as a root,

Loged in as default user on VNC, I tried
xauth list $DISPLAY
to see if there is an authentication cookie I can add to root, but it returns nothing to me.

Appreciate your help !
 
Old 12-21-2011, 09:08 PM   #2
creative
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
I also tried it opening on different vnc ports, same problem - opens with default user - doesnt open as root !

Appreciate yoru help
 
Old 12-22-2011, 06:58 AM   #3
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Rep: Reputation: 62
This is kind of a shot in the dark (haven't had problems with X for a long time, strange huh?) but in the past when I had problems running an X application as root I used the xhost to solve the problem:

Code:
xhost +si:localuser:root
This is run as a regular user.
 
  


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
How to connect to xwindow niker_20001 Linux - Desktop 1 06-19-2008 07:26 AM
Only root can use and connect to the internet VerTiCal Linux - General 2 04-28-2004 07:25 PM
cannot connect to X as root spuppett Linux - General 4 04-13-2004 11:30 PM
xwindow to xwindow connection? ziggie216 Linux - Software 1 03-18-2004 01:53 PM
KPPP can't connect if I'm not root White R4bbit Linux - Software 10 10-24-2003 03:24 PM


All times are GMT -5. The time now is 12: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