|
请问我在配置vnc多用户登陆的时候,为什么vnc1(root)用户是正常的,而vnc2(test)用户却不正常呢?
重启vncserver服务,2:test启动失败。
而单独的第一个vnc用户可以正常远程连接。
以下是我/etc/sysconfig/vncservers文件内容:
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# <URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html>.
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-nohttpd" to prevent web-based VNC clients connecting.
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
VNCSERVERS="1:root 2:test"
VNCSERVERARGS[1]="-geometry 800x600 -query localhost"
VNCSERVERARGS[2]="-geometry 800x600 -query localhost"
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
将里面的内容换成下面这种:
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600 -query localhost"
VNCSERVERS="2:test"
VNCSERVERARGS[2]="-geometry 800x600 -query localhost"
也是一样的情况。
请问是哪里有问题呢?
系统中创建的有test用户。 |
|