From owner-FreeBSD-users-jp@jp.freebsd.org  Wed May 27 09:32:43 1998
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.8.8+3.0Wbeta13/8.7.3) id JAA11427;
	Wed, 27 May 1998 09:32:43 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from rins.st.ryukoku.ac.jp (rins.st.ryukoku.ac.jp [133.83.4.1])
	by jaz.jp.freebsd.org (8.8.8+3.0Wbeta13/8.7.3) with ESMTP id JAA11421
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 27 May 1998 09:32:41 +0900 (JST)
	(envelope-from kjm@hyperion.st.ryukoku.ac.jp)
Received: from hyperion.st.ryukoku.ac.jp (hyperion.st.ryukoku.ac.jp [133.83.36.7])
	by rins.st.ryukoku.ac.jp (8.8.8+2.7Wbeta7/3.6Wbeta7/RINS-1.9.4-NOSPAM) with ESMTP id JAA02654
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 27 May 1998 09:32:40 +0900 (JST)
Received: from hyperion.st.ryukoku.ac.jp (kjm@localhost [127.0.0.1])
	by hyperion.st.ryukoku.ac.jp (8.8.8/3.6Wbeta7/kjm-1.2) with ESMTP id JAA16548
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 27 May 1998 09:32:39 +0900 (JST)
From: kjm@rins.ryukoku.ac.jp (KOJIMA Hajime /
    =?ISO-2022-JP?B?GyRCPi5FZ0glGyhC?=)
To: FreeBSD-users-jp@jp.freebsd.org
In-reply-to: Your message of "Tue, 26 May 1998 21:21:48 JST"
References: <19980526212148L.ryuichi@falcon.cs.ritsumei.ac.jp> 
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
Date: Wed, 27 May 1998 09:32:39 +0900
Message-ID: <16544.896229159@hyperion.st.ryukoku.ac.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=24]
X-Sequence: FreeBSD-users-jp 28721
Subject: [FreeBSD-users-jp 28721] Re: Can't setup NIS slave 
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

<19980526212148L.ryuichi@falcon.cs.ritsumei.ac.jp>$B$K$*$$$F(B
Ryuichi Hino $B$5$s$,$*$C$7$c$k$K$O(B:
| 
| $B:#$^$G!"C1FH$N(B NIS$B%5!<%P$r$"$2$F$$$?$N$G$9$,!"(B
| NIS $B%9%l!<%V%5!<%P$r$"$2$h$&$H4hD%$C$F$$$^$9!#(B
| 
| $B$H$3$m$,!"$I$&$b$&$^$/$$$-$^$;$s!#(B

  $B<j85$N(B FreeBSD(98) 2.2.1R-RELEASE $B$G$O<!$N$h$&$K$7$^$7$?!#$3$3$G(B 
  mimas $B$O(B NIS master $B$N(B NEWS-OS 4.2.1a+R $B$G!"(Benceladus $B$O(B FreeBSD(98)
  $B$N%[%9%HL>$G$9!#(B

 -1.  $B0J2<$r9T$&$?$a$K$O!"$"$i$+$8$a(B NIS client $B$H$7$FF0:n$7$F$$$kI,MW$,$"(B
      $B$k!#(B

  0.  mimas $B$G0J2<$r<B9T(B:

      # ypcat -k ypservers > /tmp/foo
      # vi /tmp/foo (enceladus $B$rDI2C(B)
      # cd /etc/yp
      # cat /tmp/foo | /usr/etc/yp/makedbm - /etc/yp/`domainname`/ypservers

      O'Reilly $B$N!V(BManaging NFS & NIS$B!WF|K\8lHG(B ($B%"%9%-!<=PHG6I(B) p. 63 
      $B$=$N$^$s$^!#(B

  1.  ypinit -s $B$N$+$o$j$K(B

      http://www.jp.FreeBSD.ORG/~yuki/FreeBSD/readmail.cgi?source=users-jp&docnum=10507

      $B$K$"$k(B script $B$r;H$C$F=i4|>pJs$r(B get$B!#(B

        #!/bin/sh
        
        if [ ! -d /var/yp/`domainname` ]; then
                mkdir /var/yp/`domainname`
        fi
        maps=`ypwhich -m | egrep $master$| awk '{ printf("%s ",$1) }' -`

        for map in $maps
        do
	    /usr/libexec/ypxfr -h mimas.st.ryukoku.ac.jp -c -d `domainname` $map
        done

  2.  /etc/sysconfig $B$r<!$N$h$&$KJQ99(B:

      # Set to appropriate flags if you want to start NIS for a client
      #nis_clientflags="NO"                   # default: NIS doesn't use
      #nis_clientflags="-ypsetme"             # NIS via other segment
      nis_clientflags=""                      # NIS via same segment

      # Name of host to ypset to, if no YP server on this wire
      #nis_ypsetflags="NO"                    # default: NIS doesn't use
      #nis_ypsetflags="133.83.xx.xx"          # NIS via other segment
      nis_ypsetflags="NO"                     # NIS via same segment

      # Set to appropriate flags if you want to start NIS for a server
      #nis_serverflags="NO"                   # default: NIS server doesn't run
      nis_serverflags="-n"                    # NIS master/slave server run

  3.  reboot

  4.  /etc/host.conf $B$G(B nis $B$rM-8z$K!#(B

----
// $BLZ2<@'M:!VM}2J7O$N:nJ85;=Q!WCf8x?7=q(B 624 $B$rFI$b$&(B!!

$B>.Eg(B $BH%(B - KOJIMA Hajime
[Office] kjm@rins.ryukoku.ac.jp, http://tethys.st.ryukoku.ac.jp/%7Ekjm/
         Phone: 077-543-7414  Fax: 077-543-0706
