⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doc048.htm

📁 Reh Hat user manual. really goooood
💻 HTM
字号:
<html><body><a href="doc049.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc047.html"><img src=../icons/previous.gif alt="Previous"></a><a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a><a href="doc123.html"><img src=../icons/index.gif alt="Index"></a><hr><h2><a name="s5.12">5.12 NIS/NYS Setup</a></h2><title>NIS/NYS Setup</title><a name="i149"><p>The basic content of this section was donated by Grant Taylor.<a name="i150">It was edited for clarity and space.  Other content was contributed by users on the <tt>redhat-list</tt> mailing list.<a name="i151"><p>This text attempts to describe the yp, NIS, and NIS+<a name="i152"> <a name="i153">support offered in Red Hat Linux products.<p><ul><p><li>What is yp? NIS? NIS+? NYS?These questions are answered in the NIS-HOWTO.  It is included withRed Hat Linux in the <tt>ldp</tt> package and on the CD.  If you installthe <tt>ldp</tt> package, you will find the NIS-HOWTO in <tt>/usr/doc/HOWTO</tt>.<p>The quick answer is that while yp ("Yellow Pages") is the phone bookin Britain, NIS is the traditional RPC-based implementation forsharing passwd, group, hosts, services, and other useful thingsbetween many machines.  NIS+ is a snazzier, and more secureimplementation of the same idea.  NYS is the public domain version of NIS.<p><li>What <em>is</em> offered?Red Hat ships NYS client code in its <tt>libc</tt> and plain yp/NIS clientprograms like <tt>ypcat</tt> and <tt>ypbind</tt>.  We ship a plain NIS serverdaemon, since the NYS (aka NIS+) server daemon is not yet ready forprime-time. Our <tt>ypserv</tt> does not appear to have the<tt>tcp_wrapper</tt>-style <tt>/etc/hosts.allow/deny</tt> checking compiled in.<p><li>How do I get <tt>ypbind</tt> to work properly?  How do I set up a client workstation? <a name="i154">The NYS code in <tt>libc</tt> does it all.  There is no need to run<tt>ypbind</tt>. Youprobably /em do need to run <tt>domainname</tt> (apparently for thebenefit of of plain NIS client programs).  You must configure whichmaps are read from where in <tt>/etc/nsswitch.conf</tt>, and which NISserver and domain you are in using <tt>/etc/yp.conf</tt>.  <tt>nsswitch.conf</tt> is well commented, and <tt>yp.conf</tt> will look likethis:<p><blockquote><font size=-1><tt><pre>  domain foo  ypserver foo.bar.com</pre></tt></font></blockquote><p>Do not put the usual <tt>+::::</tt> lines at the end of <tt>passwd</tt> or<tt>group</tt>.<p><li>How do I run <tt>ypserv</tt> (master)? <a name="i155">Red Hat ships a plain NIS (a.k.a. yp) server.  It works just like anyother <tt>ypserv</tt>---modify the <tt>Makefile</tt> in <tt>/var/nis</tt> totaste, perhaps move the source files into <tt>/var/nis/src</tt>, orperhaps not, run <tt>make</tt> to make the databases, and run<tt>ypserv</tt>.  Further documentation is in <tt>/usr/doc/ypserv*/*</tt>.<p><li>Where are <tt>yppasswd</tt> and <tt>yppasswdd</tt>? <a name="i156">They are not included in Red Hat Linux, but you can obtain the regularNIS distribution and install it yourself without too much hassle.  It isavailable from the places listed in the NIS HOWTO.  You have to modifythe <tt>pwupdate</tt> script that comes with it, even though the README claimsit works with the NYS Makefile we ship.  We also don'tship a <tt>rpcsrv/yppasswd.h</tt>, although we do have the <tt>.x</tt> file.  The<tt>yppasswdd</tt> package comes with both so it doesn't matter much.The <tt>NYS</tt> define should be used, but don't use the <tt>-lnsl</tt>library since it is built into our <tt>libc</tt>.<p><li>This information is miserably incomplete!There is already an NIS-HOWTO that describes how to set things up farbetter than this document does or should.  It is also included with Red Hat Linux in the <tt>ldp</tt> package.<p></ul><p><p><hr><a href="doc049.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc047.html"><img src=../icons/previous.gif alt="Previous"></a><a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a><a href="doc123.html"><img src=../icons/index.gif alt="Index"></a><hr></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -