LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 12-17-2003, 05:24 AM   #1
indigojo_uk
LQ Newbie
 
Registered: Nov 2003
Location: New Malden, London, UK
Posts: 15

Rep: Reputation: 0
Allowing root to use X


Does anyone know how to allow 'root' to use the X server when a common user is logged in? Whenever I try to run an X program as root, I get a message like this:

linux:/home/indigojo # yast2 &
[1] 2085
linux:/home/indigojo # Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

y2controlcenter: cannot connect to X server :0.0

How do I sort this out? I would have thought that root would have access to the X server anyway?!
 
Old 12-17-2003, 05:25 AM   #2
indigojo_uk
LQ Newbie
 
Registered: Nov 2003
Location: New Malden, London, UK
Posts: 15

Original Poster
Rep: Reputation: 0
BTW I'm using SuSE v9 professional
 
Old 12-18-2003, 10:46 AM   #3
BrianNJ
Member
 
Registered: Jul 2003
Distribution: Gentoo 2004.0
Posts: 157

Rep: Reputation: 30
i'm no guru... but the short of the answer is that only one user has access to an x session at a time.

i get around it by issuing
Code:
 xhost +localhost
then switch to root, and run yast2
 
Old 12-19-2003, 06:38 AM   #4
indigojo_uk
LQ Newbie
 
Registered: Nov 2003
Location: New Malden, London, UK
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks ... I had heard of xhost +localhost but I didn't realise you had to type it *before* going into root mode. I thought root had general access as with the file system.
 
  


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
Allowing non-root to bind to ports < 1024? MWTJ Linux - Networking 8 08-12-2011 07:06 PM
Allowing port access to non-root joosep Linux - Networking 1 08-05-2005 09:24 AM
Allowing non-root to use mounted partition Sir Gawain Linux - General 11 10-16-2003 04:19 PM
Help a Newb.. allowing root to telnet and ftp in. shanebuss Linux - General 29 01-15-2003 02:31 PM
Anyway to use rsync ssh without allowing root access? ifm Linux - Security 0 06-12-2002 01:01 PM

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

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