<?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 Checking shadow based and non-shadow based HP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-shadow-based-and-non-shadow-based-hp/m-p/4177474#M321973</link>
    <description>HI,&lt;BR /&gt;&lt;BR /&gt;Is there some system call/ command to check if a given non-trusted HP machine has password stored in the shadow file or are they stored in he passwd file?&lt;BR /&gt;&lt;BR /&gt;How can a program come to know about this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;-Deo</description>
    <pubDate>Thu, 10 Apr 2008 07:08:27 GMT</pubDate>
    <dc:creator>Deoashish</dc:creator>
    <dc:date>2008-04-10T07:08:27Z</dc:date>
    <item>
      <title>Checking shadow based and non-shadow based HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-shadow-based-and-non-shadow-based-hp/m-p/4177474#M321973</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;Is there some system call/ command to check if a given non-trusted HP machine has password stored in the shadow file or are they stored in he passwd file?&lt;BR /&gt;&lt;BR /&gt;How can a program come to know about this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;-Deo</description>
      <pubDate>Thu, 10 Apr 2008 07:08:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-shadow-based-and-non-shadow-based-hp/m-p/4177474#M321973</guid>
      <dc:creator>Deoashish</dc:creator>
      <dc:date>2008-04-10T07:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Checking shadow based and non-shadow based HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-shadow-based-and-non-shadow-based-hp/m-p/4177475#M321974</link>
      <description>Greetings,&lt;BR /&gt;&lt;BR /&gt;A simple way would be to know if it has the required bundle and the file /etc/shadow exist...&lt;BR /&gt;swlist|grep Shadow&lt;BR /&gt;ll /etc/shadow&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Thu, 10 Apr 2008 07:19:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-shadow-based-and-non-shadow-based-hp/m-p/4177475#M321974</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2008-04-10T07:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Checking shadow based and non-shadow based HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-shadow-based-and-non-shadow-based-hp/m-p/4177476#M321975</link>
      <description>If the file /etc/shadow exists and the users' password fields in /etc/passwd contain just a single "x" character, passwords are definitely stored in /etc/shadow.&lt;BR /&gt;&lt;BR /&gt;If some users have a single "x" in the password field of /etc/passwd and others have an encrypted password in it, the password file is in an invalid state and pwconv should be re-run to automatically create the necessary /etc/shadow entries and migrate the password data to that file. Based on a quick test, a non-shadow user account entry in a shadow-using machine simply does not work (=is equivalent to a locked account) until that is done.&lt;BR /&gt;&lt;BR /&gt;If your application needs to check a password, you should not do it by directly reading /etc/password or /etc/shadow files: instead you could use the getpwent()/endpwent()/getspent()/endspent() functions. If these functions are not suitable for your needs, you should consider using the PAM API (see "man 3 pam" and the other manpages referred to by it). &lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Thu, 10 Apr 2008 08:17:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-shadow-based-and-non-shadow-based-hp/m-p/4177476#M321975</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-04-10T08:17:48Z</dc:date>
    </item>
  </channel>
</rss>

