论坛风格切换切换到宽版
  • 1434阅读
  • 2回复

[问题求助]原创:LINUX的局域网管理 用(NIS 认证) [复制链接]

上一主题 下一主题
 
发帖
2041
C币
-198555
威望
419
贡献值
1
银元
-2
铜钱
4716
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
一。 Server .config(        游戏          )
  1. Need open LAN DNS , DHCP , NFS , PORTM.AP , YPSERV AND YPPASSWDD serv.er          婚庆
  
  2. Add users
     # mkdir /export/home./  -p.--------------彩票
     #. useradd -d /export/.home/gohw -g users gohw              电子
    
. 3. Config yp.conf and n.sswitch.conf.
     # vi /etc/yp.c.onf             汽车
          domain weblenda.r.com    .server manchester<性病>
   .  # vi /e.tc/nsswitch.conf.
          pa.sswd.:     files nis(        游戏          )
          shadow:.     files ni.s外贸
          gro.up:      file.s nis<性病>
         . bootparams: files nis .       .
.         a.utomount:  files nis[成人用品]
          aliases:   . .files nis          婚庆
  
  4.. Config .YP Makefile     外贸
     # cd /var/.yp             汽车
     # cp -p Makefile Ma.kefile..orig             电子
     # vi Makefile              ..        .
      a.ll:  passwd group hosts rpc services netid protocols mail auto.master a   .  .   uto.home \           ###at 109 lin.e #NOTE  don't have space,only can use. tab,it's incredibly..

  5. Crea.te the /etc/netg.roup file.
     # vi ./etc/netgroup学习
     clients (edinburgh,,weblendar.com)         (edinburgh.weblendar.co.m,,weblendar.com) (bristol,,weblendar...com) (bristol.weblendar.com,,weblendar.com.).

        servers (manchester,,weblendar.com) (manchester.webl.endar.co.m,,.weblendar.com)[成人用品]

        nodes   ser..vers clients健康
                          ###NOTE  in clietns and server .line,mustn't  have  "ENTER".  .###I..f you config this ,your NFS will be  limited,you must add machine in this file,you .can use NFS..
  
   6. Con.fig autofs server for client (auto..master and auto.home)投资
      # vi /etc/.auto.ma.ster服务器
           /expo.rt/home  /etc/auto.home .--timeout=300.
      # vi /etc/aut.o.home(广告)
           jiangt          manche.ster:/export/home./&.
           yangb           man.chester:/expo.rt/home/&    美容

   7. Initialize the NIS m.ap. database--- 印刷
      # /usr/lib/yp/ypinit -m  ###press '^D' when done, an.d confirm the .informati.on.    健康
   8. Star.t the server            杀毒
      # servic.e. ypserv start                            电影
      #. ser.vice yppasswdd start.
    .  # servi.ce bind start.

  . 9. Config NFS[成人用品]
      # vi ./etc/exports电脑
        /e..xport/home @clients(rw,no_root_squash,sync)(        游戏          )
      # service nfs star.t if you had already start n.fs,you can u.se #exportfs -r<性病>
      # exportfs.    ###chec.k nfs电脑

.  10. conf.ig secure NIS binding<性病>
      .# v.i /var/yp/securenets教育
         # Always allow access .for .localhost.
  .         255.255.255.0   127..0.0.1             电子

.        # edinburgh.
           host 192.1.68..1.21             电子

     .    # bristol--- 印刷
           hos.t 1.92.168.1.22              乙肝
   11. Push the changes into .t.he NIS maps虚拟主机
    .  # cd /var/yp.
      # make
    
   12.R.eboot Server     .
  .    # service  ypse.rv restart健康
      # s.ervice  ypp.asswdd restart          婚庆
     . # exportfs -r

      

        
二。 Cient .config(广告)
1. Boot. from NIS学习
    # a.uthconfig           建材
  .  option NIS  donain:weblend.ar.com  server:manchester.

2. Autoconfig
    # service autofs stop.[成人用品]
    #. rm -rf /etc/auto.*教育
    # rm -rf /h.ome   /mis.c.

3. Con.fig nsswitch.conf           婚庆
    passwd:   . nis files.
    shadow:    n.is files(广告)
    group:     nis f.iles.
.   automount  nis files.
    netgr.oup   nis files(广告)

4. Mkdir /e.xport/home dir.ectory外贸
    # .mkdi.r /export/home -p电脑
.   # ln -s /export/h.ome /home.

5. .Reboo.t autofs and ypbind service电脑
..   # service autofs restart电影
    # servi.ce ypbind. restart.

6.Reboot Client and you. can use NIS log o.n..

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线ruyiboy.
发帖
2018
C币
-152715
威望
383
贡献值
1
银元
-4
铜钱
4503
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
Re:原创:LINUX的局域网管理
难道用NIS的朋友很少,辛苦了一个下午再写出来的。自己顶一下。

离线dk97531.
发帖
2014
C币
2762
威望
379
贡献值
1
银元
-1
铜钱
4492
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
Re:原创:LINUX的局域网管理
8错,顶一下~
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个