LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-09-2006, 01:12 PM   #1
danritter
LQ Newbie
 
Registered: Oct 2004
Posts: 9

Rep: Reputation: 0
Question How do I give root console access to x-org?


When I go to the console and use the su command to get root access I can't run any x windows programs. For example.

dan@Linux1:~$ su
Password:
root@Linux1:/home/dan# konqueror
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

konqueror: cannot connect to X server :0.0
root@Linux1:/home/dan#

I understand the problem is that root console doesn't have permission to access x-org. So how do I give it permission? And does anyone know why ubuntu or kubuntu doesn't have this automatically configured? I've used a large number of distributions and I think this is the first time I've run into this problem.

Thank 8-)
 
Old 07-09-2006, 01:24 PM   #2
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
Quote:
Originally Posted by danritter
When I go to the console and use the su command to get root access I can't run any x windows programs. For example.

dan@Linux1:~$ su
Password:
root@Linux1:/home/dan# konqueror
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

konqueror: cannot connect to X server :0.0
root@Linux1:/home/dan#

I understand the problem is that root console doesn't have permission to access x-org. So how do I give it permission? And does anyone know why ubuntu or kubuntu doesn't have this automatically configured? I've used a large number of distributions and I think this is the first time I've run into this problem.

Thank 8-)
https://help.ubuntu.com/community/RootSudo
 
Old 07-09-2006, 01:30 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by danritter
When I go to the console and use the su command to get root access I can't run any x windows programs. For example.

dan@Linux1:~$ su
Password:
root@Linux1:/home/dan# konqueror
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

konqueror: cannot connect to X server :0.0
root@Linux1:/home/dan#

I understand the problem is that root console doesn't have permission to access x-org. So how do I give it permission? And does anyone know why ubuntu or kubuntu doesn't have this automatically configured? I've used a large number of distributions and I think this is the first time I've run into this problem.

Thank 8-)
Try with this in your /root/.bashrc.

Code:
## allows me to run X program as root

export XAUTHORITY=/home/dan/.Xauthority
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to give apache root access Roll Linux - Software 2 03-02-2005 07:55 AM
Give Root Access To A Normal User waknauss Linux - Security 2 11-11-2004 09:00 AM
How to give non-root users access to mounted partitions? black hole sun Linux - Software 5 10-28-2004 05:52 PM
What command will give me root access from the gui? Thaidog Linux - Newbie 9 09-21-2004 09:39 AM
how to give root ftp access blaha Linux - Software 3 05-30-2003 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:33 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
Open Source Consulting | Domain Registration