<?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: check username in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914779#M933765</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This way is full specific user's name retrieval:&lt;BR /&gt;&lt;BR /&gt;#grep ^username: /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
    <pubDate>Thu, 27 Feb 2003 14:08:08 GMT</pubDate>
    <dc:creator>Jose Mosquera</dc:creator>
    <dc:date>2003-02-27T14:08:08Z</dc:date>
    <item>
      <title>check username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914777#M933763</link>
      <description>Hi All, I'd like to know if exists a way to check if a given userid esists on system or not.&lt;BR /&gt;I'd like to have an exit status like 0 = exist 1 = doesn't exist...&lt;BR /&gt;Do You know what I can do?&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Thu, 27 Feb 2003 13:59:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914777#M933763</guid>
      <dc:creator>Mauro Gatti</dc:creator>
      <dc:date>2003-02-27T13:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: check username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914778#M933764</link>
      <description>grep username /etc/passwd</description>
      <pubDate>Thu, 27 Feb 2003 14:02:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914778#M933764</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-02-27T14:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: check username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914779#M933765</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This way is full specific user's name retrieval:&lt;BR /&gt;&lt;BR /&gt;#grep ^username: /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Thu, 27 Feb 2003 14:08:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914779#M933765</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2003-02-27T14:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: check username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914780#M933766</link>
      <description>#logins|awk -F " " '{print $1}'|grep &lt;USERNAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Thu, 27 Feb 2003 14:09:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914780#M933766</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-02-27T14:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: check username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914781#M933767</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you want to check NIS too, then maybe use perl:&lt;BR /&gt;&lt;BR /&gt;var=`perl -e '{print ! (defined getpwnam shift)|| 0}' username`&lt;BR /&gt;&lt;BR /&gt;this will give you the return codes as in your question.&lt;BR /&gt;&lt;BR /&gt;rgds, Robin</description>
      <pubDate>Thu, 27 Feb 2003 14:15:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914781#M933767</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2003-02-27T14:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: check username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914782#M933768</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Another way,&lt;BR /&gt;&lt;BR /&gt;#more /etc/passwd&lt;BR /&gt;press and type the user name you are looking for.&lt;BR /&gt;e.g) \username and press Enter key get the result.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 27 Feb 2003 14:16:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-username/m-p/2914782#M933768</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2003-02-27T14:16:20Z</dc:date>
    </item>
  </channel>
</rss>

