- 论坛徽章:
- 0
|
本帖最后由 fatbird00055 于 2010-02-12 15:51 编辑
- [root@linux1 ~]# /usr/lib/yp/ypinit -m
- At this point, we have to construct a list of the hosts which will run NIS
- servers. linux1 is in the list of NIS server hosts. Please continue to add
- the names for the other hosts, one per line. When you are done with the
- list, type a <control D>.
- next host to add: linux1
- next host to add:
复制代码 就这样不动了,停了,请问各位大侠什么情况
ypserv.conf文件- [root@linux1 ~]# vim /etc/ypserv.conf
- # Some options for ypserv. This things are all not needed, if
- # you have a Linux net.
- # Should we do DNS lookups for hosts not found in the hosts table ?
- # This option is ignored in the moment.
- dns: no
- # How many map file handles should be cached ?
- files: 30
- # Should we register ypserv with SLP ?
- slp: no
- # After how many seconds we should re-register ypserv with SLP ?
- slp_timeout: 3600
- # xfr requests are only allowed from ports < 1024
- xfr_check_port: yes
- # The following, when uncommented, will give you shadow like passwords.
- # Note that it will not work if you have slave NIS servers in your
- # network that do not run the same server as you.
- # Host : Domain : Map : Security
- #
- # * : * : passwd.byname : port
- # * : * : passwd.byuid : port
- 127.0.0.1/255.255.255.0:dmz:*:none
- 192.168.1.3/255.255.255.0:dmz:*:none
- *:*:*:deny
- # Not everybody should see the shadow passwords, not secure, since
- # under MSDOG everbody is root and can access ports < 1024 !!!
- * : * : shadow.byname : port
- * : * : passwd.adjunct.byname : port
- # If you comment out the next rule, ypserv and rpc.ypxfrd will
- # look for YP_SECURE and YP_AUTHDES in the maps. This will make
- # the security check a little bit slower, but you only have to
- # change the keys on the master server, not the configuration files
- "/etc/ypserv.conf" 51L, 1839C 已写入
复制代码- [root@linux1 ~]# vim /etc/sysconfig/network
- NETWORKING=yes
- NETWORKING_IPV6=no
- HOSTNAME=linux1
- NISDOMAIN=dmz
复制代码 |
|