Re: can't use editor when su... why?
Jesse Evans wrote:
> Hi, folks!
>
> I like to use fte as my default editor, however, when I su to modify
> my system I cannot use it. I get the following messages:
>
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> Could not open display: :0.0
>
> However, if I log in as root (as opposed to su from my users
> account, it works just fine. Any ideas as to what's up?
You have to explicitly give other machines and users permission to
run on an x server that you start. This prevents other users on the
network from annoyingly displaying things on your screen.
In your case, just type 'xhost +root' before su'ing.
See man xhost for more.
-Mitch
Reply to: