LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1083|回复: 0

请教VNC多用户连接的问题?

[复制链接]
发表于 2009-3-27 13:41:56 | 显示全部楼层 |阅读模式
请问我在配置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&gt;.

# 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用户。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表