Why can’t I start SBAdmin GUI interface?

SBAdmin Support

Need Help? We got you covered.

Why can’t I start SBAdmin GUI interface?

When I try to start the application using “stadmin &” from a terminal window, I get the following error:

Error Message:
xlib: connection to “:0.0” refused by server
xlib: No protocol specified
Error: couldn’t connect to display “:0.0” while
initializing application (Tcl_AppInit?)


The problem is not related to SBAdmin in general. The problem occurs because the system user does not have permission to use the Xserver. There are a couple of things you can do to correct this.

1. Use xhost to allow all users to use the Xserver. While logged in as normal user type:
# xhost + localhost
# su
# echo $DISPLAY
DISPLAY should be set to something and you will be able to start your X applications.
If you want to su -, then you will need to export the DISPLAY variable for root:
# export DISPLAY=:0.0 (or whatever $DISPLAY was when logged in as normal user)

2. Use the other user’s XAUTHORITY file. While logged in as a other user type:
# su –
# export XAUTHORITY=/home/user/.Xauthority (where this is the output of echo command for $XAUTHORITY for other user)

3. Create a XAUTHORITY file for the new user. This is a bit more complicated and easier to understand by reading the manual.
# man xauth

4. On some systems, you can use the “sux” command instead of “su”. This will also allow access.