<?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: Verify user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888661#M102440</link>
    <description>Clay,&lt;BR /&gt;&lt;BR /&gt;I'm sorry that I doubted you. I should have known better.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Mary&lt;BR /&gt;</description>
    <pubDate>Wed, 22 Jan 2003 22:05:43 GMT</pubDate>
    <dc:creator>Mary Rice</dc:creator>
    <dc:date>2003-01-22T22:05:43Z</dc:date>
    <item>
      <title>Verify user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888656#M102435</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I'm hoping someone has a handy script that will allow me to verify a login. I would like  to know if 'mrice' is valid. I can't just grep /etc/passwd because we run NIS.&lt;BR /&gt;&lt;BR /&gt;Thanks for any ideas,&lt;BR /&gt;Mary Rice</description>
      <pubDate>Wed, 22 Jan 2003 21:18:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888656#M102435</guid>
      <dc:creator>Mary Rice</dc:creator>
      <dc:date>2003-01-22T21:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Verify user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888657#M102436</link>
      <description>Hi Mary:&lt;BR /&gt;&lt;BR /&gt;I just happen to have something very clsoe in my /utils directory, Getpwnam.pl.&lt;BR /&gt;&lt;BR /&gt;Use it like this:&lt;BR /&gt;&lt;BR /&gt;USER="mrice"&lt;BR /&gt;&lt;BR /&gt;Getpwnam.pl -q ${USER}&lt;BR /&gt;STAT=${?}&lt;BR /&gt;if [[ ${STAT} -eq 0 ]]&lt;BR /&gt;then&lt;BR /&gt;echo "${USER} is valid"&lt;BR /&gt;else&lt;BR /&gt;echo "${USER} ain't no good"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;The -q says only return a status; without it you get a list of passwd fields.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jan 2003 21:23:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888657#M102436</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-22T21:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Verify user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888658#M102437</link>
      <description>Ooops, I suppose you might want the script.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jan 2003 21:25:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888658#M102437</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-22T21:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Verify user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888659#M102438</link>
      <description>Hi Clay,&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick reply. Does this script work with NIS/NIS+ or will I need to modify it? It looks like it reads the passwd file.&lt;BR /&gt;&lt;BR /&gt;Mary</description>
      <pubDate>Wed, 22 Jan 2003 21:52:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888659#M102438</guid>
      <dc:creator>Mary Rice</dc:creator>
      <dc:date>2003-01-22T21:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Verify user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888660#M102439</link>
      <description>Mary, Mary, Mary ...&lt;BR /&gt;&lt;BR /&gt;You should have asked your box rather than me but yes, Getpwnam.pl does read /etc/passwd BUT it also reads the NIS/NIS+ passwd map. Perl's getpwnam() function simply calls the underlying getpwnam() C libC function. It takes care of all of this for you. If no matching user is found in /etc/passwd and a '+' entry is founds then the NIS map is examined for a match.&lt;BR /&gt;&lt;BR /&gt;This routine works equally well in the NIS and non-NIS worlds. Ain't Perl nice?&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jan 2003 21:57:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888660#M102439</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-22T21:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Verify user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888661#M102440</link>
      <description>Clay,&lt;BR /&gt;&lt;BR /&gt;I'm sorry that I doubted you. I should have known better.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Mary&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jan 2003 22:05:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888661#M102440</guid>
      <dc:creator>Mary Rice</dc:creator>
      <dc:date>2003-01-22T22:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Verify user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888662#M102441</link>
      <description>Hi Mary:&lt;BR /&gt;&lt;BR /&gt;I trust you know that that was tongue in cheek. &lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jan 2003 22:07:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/verify-user/m-p/2888662#M102441</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-22T22:07:21Z</dc:date>
    </item>
  </channel>
</rss>

