<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NIS server configuration in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-server-configuration/m-p/4381748#M348712</link>
    <description>2.2 NIS Master Server Configuration&lt;BR /&gt;2.2.1 Create a master passwd file&lt;BR /&gt;&lt;BR /&gt;1. Copy the /etc/passwd file from each host in your NIS domain to the /etc directory on the host that will be the master server. Name each copy /etc/passwd.hostname, where hostname is the name of the host it came from&lt;BR /&gt;2. Concatenate all the passwd files together, including the master serverâ  s passwd file, into a temporary passwd file, as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cd /etc&lt;BR /&gt;cat passwd passwd.hostname1 passwd.hostname2... &amp;gt; passwd.temp&lt;BR /&gt;&lt;BR /&gt;3.  Issue the following command to sort the temporary passwd file by user name:&lt;BR /&gt; sort -o /etc/passwd.temp -t: -k1,1 /etc/passwd.temp&lt;BR /&gt;&lt;BR /&gt;4. Examine /etc/passwd.temp for duplicate user names. If you find multiple entries for the same user, edit the file to remove redundant ones. Make sure each user in your network has a unique user name.&lt;BR /&gt;5. Issue the following command to sort the temporary passwd file by user ID:&lt;BR /&gt;&lt;BR /&gt; sort -o /etc/passwd.temp -t: -k3n,3 /etc/passwd.temp&lt;BR /&gt;&lt;BR /&gt;6. Examine /etc/passwd.temp for duplicate user IDs. If you find multiple entries with the same user ID, edit the file to change the user IDs so that no two users have the same user ID.&lt;BR /&gt;7. Move /etc/passwd.temp (the sorted, edited file) to /etc/passwd. This file will be used to generate the passwd map for your NIS domain.&lt;BR /&gt;8. Remove all the /etc/passwd.hostname files from the master server.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2.2.2 Create a master group file&lt;BR /&gt;&lt;BR /&gt;Repeat the same procedure for master group file as done for master passwd file.&lt;BR /&gt;2.2.3 Create a master hosts file&lt;BR /&gt;&lt;BR /&gt;Repeat the same procedure for master hosts file as done for master passwd file.&lt;BR /&gt;&lt;BR /&gt;2.2.4 Enable the NIS Master Server capability&lt;BR /&gt;&lt;BR /&gt;1. Log in as root to the host that will be the master server.&lt;BR /&gt;2. On the host that will be the master server, ensure that the $PATH environment variable includes the following directory paths:&lt;BR /&gt;a. /var/yp&lt;BR /&gt;b. /usr/lib/netsvc/yp&lt;BR /&gt;c. /usr/ccs/bin&lt;BR /&gt;3. Issue the following command to set the NIS domain name:&lt;BR /&gt; /usr/bin/domainname &amp;lt;.....&amp;gt;&lt;BR /&gt;&lt;BR /&gt;4. In the /etc/rc.config.d/namesvrs file, set the NIS_DOMAIN variable to the domain name:&lt;BR /&gt;&lt;BR /&gt; NIS_DOMAIN=&amp;lt;......&amp;gt;&lt;BR /&gt;&lt;BR /&gt;5. In the /etc/rc.config.d/namesvrs file, set the NIS_MASTER_SERVER and NIS_CLIENT variables to 1, as follows:&lt;BR /&gt;NIS_MASTER_SERVER=1&lt;BR /&gt;NIS_CLIENT=1&lt;BR /&gt;&lt;BR /&gt;6. Issue the following command to create the NIS maps for the domain:&lt;BR /&gt; /usr/sbin/ypinit -m&lt;BR /&gt;&lt;BR /&gt;The ypinit script will prompt you for the names of your slave servers. Enter the names of your slave servers in response to the prompt.&lt;BR /&gt;7. Issue the following commands to run the NIS startup scripts:&lt;BR /&gt;/sbin/init.d/nis.server start&lt;BR /&gt;/sbin/init.d/nis.client start&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2.2.5 Verify the NIS Master Server configuration&lt;BR /&gt;&lt;BR /&gt;Logon to the NIS master server and execute the following command&lt;BR /&gt;&lt;BR /&gt;ypwhich -m&lt;BR /&gt;</description>
    <pubDate>Wed, 18 Mar 2009 05:30:20 GMT</pubDate>
    <dc:creator>Sunny Jaisinghani</dc:creator>
    <dc:date>2009-03-18T05:30:20Z</dc:date>
    <item>
      <title>NIS server configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-server-configuration/m-p/4381746#M348710</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can any one provide me the NIS server configuration details. I planned to migrate old NIS server to new one.&lt;BR /&gt;I am new to NIS, if possible request you to provide a notes.</description>
      <pubDate>Wed, 18 Mar 2009 03:39:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis-server-configuration/m-p/4381746#M348710</guid>
      <dc:creator>Omprakash_2</dc:creator>
      <dc:date>2009-03-18T03:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: NIS server configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-server-configuration/m-p/4381747#M348711</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please have a look on these links&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B1031-90043/ch04s03.html" target="_blank"&gt;http://www.docs.hp.com/en/B1031-90043/ch04s03.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1237353433771+28353475&amp;amp;threadId=985036" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1237353433771+28353475&amp;amp;threadId=985036&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!</description>
      <pubDate>Wed, 18 Mar 2009 04:21:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis-server-configuration/m-p/4381747#M348711</guid>
      <dc:creator>點燃</dc:creator>
      <dc:date>2009-03-18T04:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: NIS server configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-server-configuration/m-p/4381748#M348712</link>
      <description>2.2 NIS Master Server Configuration&lt;BR /&gt;2.2.1 Create a master passwd file&lt;BR /&gt;&lt;BR /&gt;1. Copy the /etc/passwd file from each host in your NIS domain to the /etc directory on the host that will be the master server. Name each copy /etc/passwd.hostname, where hostname is the name of the host it came from&lt;BR /&gt;2. Concatenate all the passwd files together, including the master serverâ  s passwd file, into a temporary passwd file, as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cd /etc&lt;BR /&gt;cat passwd passwd.hostname1 passwd.hostname2... &amp;gt; passwd.temp&lt;BR /&gt;&lt;BR /&gt;3.  Issue the following command to sort the temporary passwd file by user name:&lt;BR /&gt; sort -o /etc/passwd.temp -t: -k1,1 /etc/passwd.temp&lt;BR /&gt;&lt;BR /&gt;4. Examine /etc/passwd.temp for duplicate user names. If you find multiple entries for the same user, edit the file to remove redundant ones. Make sure each user in your network has a unique user name.&lt;BR /&gt;5. Issue the following command to sort the temporary passwd file by user ID:&lt;BR /&gt;&lt;BR /&gt; sort -o /etc/passwd.temp -t: -k3n,3 /etc/passwd.temp&lt;BR /&gt;&lt;BR /&gt;6. Examine /etc/passwd.temp for duplicate user IDs. If you find multiple entries with the same user ID, edit the file to change the user IDs so that no two users have the same user ID.&lt;BR /&gt;7. Move /etc/passwd.temp (the sorted, edited file) to /etc/passwd. This file will be used to generate the passwd map for your NIS domain.&lt;BR /&gt;8. Remove all the /etc/passwd.hostname files from the master server.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2.2.2 Create a master group file&lt;BR /&gt;&lt;BR /&gt;Repeat the same procedure for master group file as done for master passwd file.&lt;BR /&gt;2.2.3 Create a master hosts file&lt;BR /&gt;&lt;BR /&gt;Repeat the same procedure for master hosts file as done for master passwd file.&lt;BR /&gt;&lt;BR /&gt;2.2.4 Enable the NIS Master Server capability&lt;BR /&gt;&lt;BR /&gt;1. Log in as root to the host that will be the master server.&lt;BR /&gt;2. On the host that will be the master server, ensure that the $PATH environment variable includes the following directory paths:&lt;BR /&gt;a. /var/yp&lt;BR /&gt;b. /usr/lib/netsvc/yp&lt;BR /&gt;c. /usr/ccs/bin&lt;BR /&gt;3. Issue the following command to set the NIS domain name:&lt;BR /&gt; /usr/bin/domainname &amp;lt;.....&amp;gt;&lt;BR /&gt;&lt;BR /&gt;4. In the /etc/rc.config.d/namesvrs file, set the NIS_DOMAIN variable to the domain name:&lt;BR /&gt;&lt;BR /&gt; NIS_DOMAIN=&amp;lt;......&amp;gt;&lt;BR /&gt;&lt;BR /&gt;5. In the /etc/rc.config.d/namesvrs file, set the NIS_MASTER_SERVER and NIS_CLIENT variables to 1, as follows:&lt;BR /&gt;NIS_MASTER_SERVER=1&lt;BR /&gt;NIS_CLIENT=1&lt;BR /&gt;&lt;BR /&gt;6. Issue the following command to create the NIS maps for the domain:&lt;BR /&gt; /usr/sbin/ypinit -m&lt;BR /&gt;&lt;BR /&gt;The ypinit script will prompt you for the names of your slave servers. Enter the names of your slave servers in response to the prompt.&lt;BR /&gt;7. Issue the following commands to run the NIS startup scripts:&lt;BR /&gt;/sbin/init.d/nis.server start&lt;BR /&gt;/sbin/init.d/nis.client start&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2.2.5 Verify the NIS Master Server configuration&lt;BR /&gt;&lt;BR /&gt;Logon to the NIS master server and execute the following command&lt;BR /&gt;&lt;BR /&gt;ypwhich -m&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Mar 2009 05:30:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis-server-configuration/m-p/4381748#M348712</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-03-18T05:30:20Z</dc:date>
    </item>
  </channel>
</rss>

