You are not logged in.

#1 2007-10-04 08:03:19

Amphaeon
Member
Registered: 2007-01-31
Posts: 72

root X being denied.

when ever i need to run a program as root i keep getting this error.

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


im using fglrx drivers i also tried to add root to the video group in /etc/group

Offline

#2 2007-10-04 08:11:25

muczyjoe
Member
From: Szeged (Hungary)
Registered: 2007-05-16
Posts: 45
Website

Re: root X being denied.

xhost +
but there is a not so temporary solution too, but i forgot it...

Offline

#3 2007-10-04 08:28:41

Amphaeon
Member
Registered: 2007-01-31
Posts: 72

Re: root X being denied.

well i just tried xhost +root and its still giving me the same issue. i ran xhost as my regular user.

Offline

#4 2007-10-04 08:38:29

Amphaeon
Member
Registered: 2007-01-31
Posts: 72

Re: root X being denied.

o, ok i just ran xhost + and its now working. but now how can we get it where root wont come across this problem again. i mean its root how can it be denied?

Offline

#5 2007-10-04 12:21:33

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,155

Re: root X being denied.

Because it is dangerous to run X as root ?

Both KDE and Gnome have options to run ONE PROGRAM as root.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2007-10-04 12:30:24

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: root X being denied.

You can use kdesu or gtksu from a terminal, like this:

kdesu konqueror

Offline

#7 2007-10-04 15:47:00

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: root X being denied.

or vanilla sudo konqueror (or rather: sudo krusader :-)
I don't know what extra advantages (kde|gtk)su have over sudo, but one major advantage for me with sudo is that the app opens with my own settings and keyboard shortcuts, and not the crappy defaults which, since I haven't bothered to change them in the root account, are still there.
Gawd, it's not that KDE can't be nice on the eyes, but they sure manage to give that impression with their defaults... It's like they're standing on their chairs, shouting: "We're not Gnome, We're not Gnome!"

Offline

#8 2007-10-04 22:41:10

mutlu_inek
Member
From: all over the place
Registered: 2006-11-18
Posts: 684

Re: root X being denied.

Eyolf [sorry, OT]: Kdesu has a gui to enter your password. So you can create menu entries and do not need to use the command line to run programs as root.

Offline

#9 2007-10-04 23:17:59

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: root X being denied.

That's true... Hm, I never thought of

do not need to use the command line

as an advantage :-)

Offline

Board footer

Powered by FluxBB