connecting to VNC with a non root user

Maracineanu, Dan Dan.Maracineanu "at" rompetrol.com
Wed Jan 14 14:48:01 2004


Hi,

I would like to start an application on serverX:2 using VNC.
The application owner is a nonroot user (apps).
I've logged on as root on serverX
start vncserver :2
xhost +

logon on serverX as apps
DISPLAY=serverX:2.0
try to launch xterm and receive the following error message:
Xlib: connection to "serverX:2.0" refused by server
Xlib: Client is not authorized to connect to Server
xterm Xt error: Can't open display: serverX:2

What could be wrong?
server IBM AIX 4.3.3

Any suggestions will be apreciated.
Thak you