<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924827#M110341</link>
    <description>Hi SK,&lt;BR /&gt;&lt;BR /&gt;See attached file...</description>
    <pubDate>Wed, 12 Mar 2003 05:23:39 GMT</pubDate>
    <dc:creator>Ricky B. Nino</dc:creator>
    <dc:date>2003-03-12T05:23:39Z</dc:date>
    <item>
      <title>NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924823#M110337</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have 3 UNIX Servers.&lt;BR /&gt;&lt;BR /&gt;I have all the users in my SERVER1 (NIS Server). &lt;BR /&gt;&lt;BR /&gt;I wanted to prevent certain users to login in my SERVER2.&lt;BR /&gt;&lt;BR /&gt;What's the best thing to do?&lt;BR /&gt;&lt;BR /&gt;regards...</description>
      <pubDate>Wed, 12 Mar 2003 02:37:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924823#M110337</guid>
      <dc:creator>Ricky B. Nino</dc:creator>
      <dc:date>2003-03-12T02:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924824#M110338</link>
      <description>You're saying SERVER1 is your master NIS. And lets say SERVER2 is a NIS client. For instance if you want to prevent user "skchan", "jim" and "robbie" (their password entries are in the NIS password map) from being able to login to SERVER2 you would ..&lt;BR /&gt;==&amp;gt; Edit SERVER2 /etc/passwd and insert these above your last line that typically looks like this ..&lt;BR /&gt;+::0:0:::&lt;BR /&gt;or&lt;BR /&gt;+::-2:60001:::&lt;BR /&gt;The lines you should put above it are ..&lt;BR /&gt;-skchan::0:0:::&lt;BR /&gt;-jim::0:0:::&lt;BR /&gt;-robbie::0:0:::&lt;BR /&gt;I think that should do it and you would want to test it thoroughly afterwards.&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Mar 2003 03:55:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924824#M110338</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-03-12T03:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924825#M110339</link>
      <description>Hi SK,&lt;BR /&gt;&lt;BR /&gt;Nothings happened. Still the user (i.e. "rickyn") I put on the SERVER2://etc/passwd gets thru.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Mar 2003 05:01:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924825#M110339</guid>
      <dc:creator>Ricky B. Nino</dc:creator>
      <dc:date>2003-03-12T05:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924826#M110340</link>
      <description>Can you show me the last 3 lines in SERVER2's /etc/passwd. Also attach the content of /etc/nsswitch.conf. Thanks..</description>
      <pubDate>Wed, 12 Mar 2003 05:08:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924826#M110340</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-03-12T05:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924827#M110341</link>
      <description>Hi SK,&lt;BR /&gt;&lt;BR /&gt;See attached file...</description>
      <pubDate>Wed, 12 Mar 2003 05:23:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924827#M110341</guid>
      <dc:creator>Ricky B. Nino</dc:creator>
      <dc:date>2003-03-12T05:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924828#M110342</link>
      <description>The order is all wrong in the /etc/passwd file ... cut the last line ..&lt;BR /&gt;tftp:*:510:1:Trivial FTP user:/usr/tftpdir:false&lt;BR /&gt;and paste above ..&lt;BR /&gt;-rickyn::0:0:::&lt;BR /&gt;Basically the ..&lt;BR /&gt;+::-2:-2:::&lt;BR /&gt;should be last. So the last 2 lines in the file should be ..&lt;BR /&gt;-rickyn::0:0:::&lt;BR /&gt;+::-2:-2:::&lt;BR /&gt;As for the /etc/nsswitch.conf file, change these so that the + and - syntax can be used by the password file.&lt;BR /&gt;passwd:       compat&lt;BR /&gt;group:        compat&lt;BR /&gt;Now try the login again .. &lt;BR /&gt;</description>
      <pubDate>Wed, 12 Mar 2003 05:40:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924828#M110342</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-03-12T05:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924829#M110343</link>
      <description>Hi SK,&lt;BR /&gt;&lt;BR /&gt;Its working now. Many thanks... &lt;BR /&gt;&lt;BR /&gt;If its not to much to you, could you provide brief explanation on the solution you have provided.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance and best regards...</description>
      <pubDate>Wed, 12 Mar 2003 08:26:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924829#M110343</guid>
      <dc:creator>Ricky B. Nino</dc:creator>
      <dc:date>2003-03-12T08:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924830#M110344</link>
      <description>Sure .. first the /etc/passwd file. If you want it to look at the NIS password map to authenticate users in that map you need to have the escape sequence put at the end of the file (ie the last line in the local password file). The escape sequence can be in the form of ..&lt;BR /&gt;+::-2:60001:::&lt;BR /&gt;which in my opinion is more secure. But it's still ok to have ..&lt;BR /&gt;+::-2:-2:::&lt;BR /&gt;No big deal. So remember the order of that entry is important. Let say for some reason you want to create a local temporary user account (not NIS), you can edit the /etc/passwd file and put the appropriate entry above the escape sequence entry and that password entry would only apply to that particular machine. Bottomline .. escape sequence MUST be at the last line. The "-" key is used to disallow login of a particular NIS account, as simple as that.&lt;BR /&gt;Finally the /etc/nsswitch.conf file. Your original entry ..&lt;BR /&gt;passwd:       files nis&lt;BR /&gt;group:        files nis&lt;BR /&gt;basically tell the system to first look in the local /etc/passwd and /etc/group for an entry. If not found then fall-back and query NIS map. The rule is if you want the "+" and "-" to behave well you got to put "compat" instead.&lt;BR /&gt;Hope that explains it .. :)&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Mar 2003 08:45:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924830#M110344</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-03-12T08:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924831#M110345</link>
      <description>Hi SK,&lt;BR /&gt;&lt;BR /&gt;Very well said...I got it.&lt;BR /&gt;&lt;BR /&gt;regards...</description>
      <pubDate>Wed, 12 Mar 2003 08:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2924831#M110345</guid>
      <dc:creator>Ricky B. Nino</dc:creator>
      <dc:date>2003-03-12T08:54:19Z</dc:date>
    </item>
  </channel>
</rss>

