- 论坛徽章:
- 0
|
通过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配置文件了?
先谢谢大家的关注! |
|