免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2400 | 回复: 7
打印 上一主题 下一主题

控制XDMCP显示的主机列表 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-28 20:39 |只看该作者 |倒序浏览
通过XDMCP可以让很多客户机远程通过xmanager,exceed以图形方式登陆到linux服务器,但是如果我只想特别的IP主机可以登陆该如何来控制?
应该是/etc/X11/xdm/Xaccess这个文件来控制访问列表的,但是我设置了好像没有任何作用?不知道为什么?具体的设置如下(比如我只想IP地址为192.168.0.12的机器可以访问):
# $XConsortium: Xaccess,v 1.5 91/08/26 11:52:51 rws Exp $
#
# Access control file for XDMCP connections
#
# To control Direct and Broadcast access:
#
#        pattern
#
# To control Indirect queries:
#
#         pattern                list of hostnames and/or macros ...
#
# To use the chooser:
#
#        pattern                CHOOSER BROADCAST
#
# or
#
#        pattern                CHOOSER list of hostnames and/or macros ...
#
# To define macros:
#
#       %name                list of hosts ...
#
# The first form tells xdm which displays to respond to itself.
# The second form tells xdm to forward indirect queries from hosts matching
# the specified pattern to the indicated list of hosts.
# The third form tells xdm to handle indirect queries using the chooser;
# the chooser is directed to send its own queries out via the broadcast
# address and display the results on the terminal.
# The fourth form is similar to the third, except instead of using the
# broadcast address, it sends DirectQuerys to each of the hosts in the list
#
# In all cases, xdm uses the first entry which matches the terminal;
# for IndirectQuery messages only entries with right hand sides can
# match, for Direct and Broadcast Query messages, only entries without
# right hand sides can match.
#

# *                                        #any host can get a login window
# *                                        #any host can get a login window
192.168.0.12
#
# To hardwire a specific terminal to a specific host, you can
# leave the terminal sending indirect queries to this host, and
# use an entry of the form:
#

#terminal-a        host-a


#
# The nicest way to run the chooser is to just ask it to broadcast
# requests to the network - that way new hosts show up automatically.
# Sometimes, however, the chooser can't figure out how to broadcast,
# so this may not work in all environments.
#

#*                CHOOSER BROADCAST        #any indirect host can get a chooser

#
# If you'd prefer to configure the set of hosts each terminal sees,
# then just uncomment these lines (and comment the CHOOSER line above)
# and edit the %hostlist line as appropriate
#

#%hostlist        host-a host-b

#*                CHOOSER %hostlist        #

但是这样的设置好像没有作用,其他的机器仍然可以访问?我知道在solaris上是这样设置的,同时有什么命令告诉xdm我修改了Xaccess而不需要重新启动linux服务器呢?在solaris中有这样的命令/usr/dt/bin/dtconfig -reset,这样xdm就会读取新的Xaccess配置文件了?

先谢谢大家的关注!

论坛徽章:
0
2 [报告]
发表于 2007-03-28 23:45 |只看该作者
顶 一 顶 吧,明天早上再上来了.

论坛徽章:
0
3 [报告]
发表于 2007-03-29 20:34 |只看该作者
在公司不能上网,晚上回家顶一顶,大家有遇到这种需求么?

论坛徽章:
0
4 [报告]
发表于 2007-03-30 19:20 |只看该作者
再顶顶吧,大侠出手啊!

论坛徽章:
0
5 [报告]
发表于 2007-04-02 19:22 |只看该作者
再顶吧,有人分享一下解决方法啊!

论坛徽章:
0
6 [报告]
发表于 2007-04-03 17:00 |只看该作者
花都谢了,大侠出手啊.

论坛徽章:
0
7 [报告]
发表于 2007-04-06 18:37 |只看该作者
没有人关注啊,凄惨,哈哈!

论坛徽章:
0
8 [报告]
发表于 2007-04-16 21:44 |只看该作者
凄惨啊,没有人帮帮我么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP