[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: x apps won't start as root under normal user



--- "Michael B. Levy" <mblevy2000@yahoo.com> wrote: >
 Folks,
> 
> When I need to do file admin on my system, I often
> open up Konqueror as root while logged in as a normal
> user, or open up an X text editor to do the same, but
> for the last couple of days, any attempt to open up an
> application that depends on X returns this error:
> 
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified

What you should really do is install "sudo" and use that, or if you're
GUI-friendly, "sux" also helps. Of course, _really_ you shouldn't ever run
Xapps as root for security reasons. What you should do is:

su -
password:

xauth ~user/.Xauthority
export DISPLAY=:0.0

Where ~user above us the username of the person who currently has X
running.

-- Thomas Adam

=====
"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor"                 -- http://linuxgazette.net

"<shrug> We'll just save up your sins, Thomas, and punish 
you for all of them at once when you get better. The 
experience will probably kill you. :)"

 -- Benjamin A. Okopnik (Linux Gazette Technical Editor)


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com



Reply to: