Monday, 7 November 2011

VNC Server: Running as Root Vs User

VNC Server: Running as Root Vs User

Hi All,

I was setting up VNC server for RHEL 5.5 and ran into an "interesting" outcome. I'm not sure if this is expected:

Now, all works as expected *if* I run vncserver as one of the users:

Code:

<user1># vncserver
When I run nestat -an | grep 5801 I see:
Code:

tcp        0      0 0.0.0.0:5801              0.0.0.0:*                  LIST
OK, all good. Now, if I want to run vncserver as root to run connections for all users, vnc will start a separate connection for each, however I see this in netstat:

Code:

<root># /sbin/service vncserver start
Code:

tcp        0      0 127.0.0.1:5801              0.0.0.0:*                  LIST
tcp        0      0 127.0.0.1:5802              0.0.0.0:*                  LIST
tcp        0      0 127.0.0.1:5803              0.0.0.0:*                  LIST

Now, I can connect via an ssh tunnel, however I am wondering why I cannot simply connect over http? It seems to revolve around VNC running on 0.0.0.0 as the user and 127.0.0.1 as root. I checked through the VNC config files, but I do not see anything that specifies to run it one way as a user and another way as root.

Help!

No comments:

Post a Comment