[Email protected] ~]# Vi/etc/inittab
#
# Inittab This file describes how the INIT process should set up
# The system in a certain run-level.
#
# Author:miquel van Smoorenburg, <[email protected]>
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
#
# Default RunLevel. The runlevels used by RHS is:
# 0-halt (do not set Initdefault to this)
# 1-single User mode
# 2-multiuser, without NFS (the same as 3, if you don't have networking)
# 3-full Multiuser mode
# 4-unused
# 5-x11
# 6-reboot (do not set Initdefault to this)
#
Id:5:initdefault:
# System initialization.
Si::sysinit:/etc/rc.d/rc.sysinit
[Email protected] ~]# vi/etc/x11/gdm/gdm.conf
# The first form tells XDm which displays to respond.
# 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;
# $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 ...
#
# XDMCP is the protocol that allows remote login. If you want to log into
# GDM remotely (I ' d never turn this on the open network, use SSH for such
# remote usage that). You can then run X with-query <thishost> to log in,
# Or-indirect <thishost> to run a chooser. Look for the ' Terminal ' server
# type at the bottom of this config file.
[XDMCP]
# distributions:ship with this off. It's never a safe thing to leave
# out on the net. Setting Up/etc/hosts.allow And/etc/hosts.deny to only
# Allow local access is another alternative and not the safest.
# firewalling Port 177 is the safest if your wish to has XDMCP on.
# Read The Manual for more notes on the security of XDMCP.
Enable=true
# Honour indirect queries, we run a chooser for these, and then redirect
# The user to the chosen host. Otherwise We just log the user in locally.
#HonorIndirect =true
# Maximum Pending Requests
#MaxPending =4
#MaxPendingIndirect =4
# Maximum Open XDMCP sessions at any point in time
#MaxSessions =16
# Maximum wait times
#MaxWait =15
#MaxWaitIndirect =15
# How many times can a person, log in from a single host. Usually better to
# Keep low to fend off DoS attacks by running many logins from a single
# host. This is now set at 2 since if the server crashes then GDM doesn ' t
# know for some time and wouldn ' t allow another session.
#DisplaysPerHost =2
# The number of seconds after which a non-responsive session is logged off.
# Better Keep this low.
#PingIntervalSeconds =15
# the Port. 177 is the standard port so better keep it
port=177
[Email protected] ~]# Vi/etc/x11/xdm/xdm-config
! Security:do not listen for XDMCP or Chooser requests
! Comment out the If you want to manage X terminals with XDm
! displaymanager.requestport:0
[Email protected] ~]# vi/etc/x11/xdm/xaccess
# The first form tells XDm which displays to respond.
# The second form tells XDm to forward indirect queries from hosts matching
# The specified pattern to the indicate D List of hosts.
# The third form tells XDm to handle indirect queries using the Chooser;
# The Chooser is directed to send it own queries out via the broadcast
# address and display the results on the TE Rminal.
# The fourth form is similar to the third, except instead of using the
# broadcast address, it sends Directquerys t o 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, O nly entries without
# right hand sides can match.
#
# * #any host can get a login window
#
# to hardwire a specific terminal to a specific host, can
# leave the terminal sending indirect queries to this host, and
# Use an entry of the form:
#
#terminal-A Host-a
#
# The nicest-to-run the Chooser is-to-just ask it to broadcast
# requests to the Network-that, new hosts show up automatically.
# Sometimes, however, the Chooser can ' t figure out what to broadcast,
# So this could not be work on all environments.
#
* CHOOSER Broadcast #any Indirect host can get a CHOOSER
Xmanager Enterprise linking VM Redhat Linux AS4.7 x64–server Configuration