On Friday 25 October 2002 03:02, KMcLauchlan wrote:
I tried running Synaptic just now, but I get the following result:
schmoo@linux:~> sux - Password: linux:~ # synaptic Xlib: connection to ":0.0" refused by server Xlib: Protocol not supported by server
Gtk-WARNING **: cannot open display: :0.0
If I get this while staring at a WindowMaker screen, am I not already using X and the first device controlled by X?? I thought that's what display: :0.0 was all about.
So, what do these errors really mean?
X has its own authorization system separate from the *nix concept of "root" and "users". Put simply, only the user who started X may connect, unless that user gives authorization to others. In this case, root is just another user. SuSE has written the script "sux" to automate the authorization, but in certain circumstances, the script fails. Usually when a user who normally logs in through kdm/xdm suddenly logs in through "startx" or vice versa. The solution is simple. As root, do rm /root/.Xauthority exit and then go to root with "sux" again. regards Anders