<?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: passwd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063124#M139110</link>
    <description>And how will I make sure that the user not using the same default password</description>
    <pubDate>Wed, 03 Sep 2003 18:04:37 GMT</pubDate>
    <dc:creator>Constantine_1</dc:creator>
    <dc:date>2003-09-03T18:04:37Z</dc:date>
    <item>
      <title>passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063123#M139109</link>
      <description>When new account is set &lt;BR /&gt;Users receive the default password&lt;BR /&gt;How can I check that the password was changed &lt;BR /&gt;We don't have trusted server setup and no ageing on our machines&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Sep 2003 18:02:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063123#M139109</guid>
      <dc:creator>Constantine_1</dc:creator>
      <dc:date>2003-09-03T18:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063124#M139110</link>
      <description>And how will I make sure that the user not using the same default password</description>
      <pubDate>Wed, 03 Sep 2003 18:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063124#M139110</guid>
      <dc:creator>Constantine_1</dc:creator>
      <dc:date>2003-09-03T18:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063125#M139111</link>
      <description>passwd -sa &lt;BR /&gt;will provide you some data.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Sep 2003 18:07:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063125#M139111</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-03T18:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063126#M139112</link>
      <description>Hi,&lt;BR /&gt;You can force the user to change password at next login. Check the password option in SAM/Accounts for Users and Groups.</description>
      <pubDate>Wed, 03 Sep 2003 18:09:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063126#M139112</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2003-09-03T18:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063127#M139113</link>
      <description>passwd -f &lt;USERNAME&gt;&lt;BR /&gt;&lt;BR /&gt;Will force the user to change the default password at first login.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/USERNAME&gt;</description>
      <pubDate>Wed, 03 Sep 2003 18:09:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063127#M139113</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-03T18:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063128#M139114</link>
      <description>You could copy the passwd file and compare it with "diff" to the real one from time to time.&lt;BR /&gt;&lt;BR /&gt;However, if you put ",M0" at the end of the encrypted password for the user in /etc/passwd, they will be forced to change there password when they first use it but it won't force them to change it again later.  In other words, it doesn't implement password aging but does ensure that the original password gets changed.</description>
      <pubDate>Wed, 03 Sep 2003 18:10:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063128#M139114</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-03T18:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063129#M139115</link>
      <description>Constantine,&lt;BR /&gt;&lt;BR /&gt;In SAM, create the user account with the option "Force passwd change at next login" under Set Password options.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy</description>
      <pubDate>Wed, 03 Sep 2003 18:11:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063129#M139115</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-09-03T18:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063130#M139116</link>
      <description>This is a bit tricky given that a user could change his password back to the default value but there is a way to do this rather easily (and in fact given that a user could revert to the default password) should be done for all users periodically.&lt;BR /&gt;&lt;BR /&gt;I would use Perl to extract all users from the passwd file and then call getpwnam() to get the hashed passwd word, extract the 1st 2 chars of this field and this bemomes the 'salt' value. Now&lt;BR /&gt;call crypt() using your default password and the $salt value and if that hash matches the hashed passwd found in /etc/passwd then the user is using the default passwd.&lt;BR /&gt;&lt;BR /&gt;Very easy Perl script.&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Sep 2003 18:18:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063130#M139116</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-03T18:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063131#M139117</link>
      <description>passwd -f loginname will force to change the passwd at next login</description>
      <pubDate>Wed, 03 Sep 2003 18:19:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063131#M139117</guid>
      <dc:creator>GK_5</dc:creator>
      <dc:date>2003-09-03T18:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063132#M139118</link>
      <description>Forcing the users to change the password that's not a problem&lt;BR /&gt;Finding who should change that is a problem &lt;BR /&gt;&lt;BR /&gt;Any Ideas how I can take default pasword and compare to what users have&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Sep 2003 18:20:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063132#M139118</guid>
      <dc:creator>Constantine_1</dc:creator>
      <dc:date>2003-09-03T18:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063133#M139119</link>
      <description>Dear ,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;See directly to the /etc/passwd file.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Jayan</description>
      <pubDate>Wed, 03 Sep 2003 18:35:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063133#M139119</guid>
      <dc:creator>Jayan_2</dc:creator>
      <dc:date>2003-09-03T18:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063134#M139120</link>
      <description>Okay, here is a 2 minute Perl example:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl -w&lt;BR /&gt;&lt;BR /&gt;use strict;&lt;BR /&gt;&lt;BR /&gt;use constant MIN_UID    =&amp;gt; 101; # no need to check values below this&lt;BR /&gt;use constant DEFAULT_PW =&amp;gt; "secret";&lt;BR /&gt;&lt;BR /&gt;my ($name,$passwd,$uid);&lt;BR /&gt;&lt;BR /&gt;setpwent();&lt;BR /&gt;while (($name,$passwd,$uid) = getpwent())&lt;BR /&gt;  {&lt;BR /&gt;    if ($uid &amp;gt;= MIN_UID)&lt;BR /&gt;      {&lt;BR /&gt;        my $salt = substr($passwd,0,2);&lt;BR /&gt;        my $hash = crypt(DEFAULT_PW,$salt);&lt;BR /&gt;        if ($hash eq $passwd)&lt;BR /&gt;          {&lt;BR /&gt;            printf("User %s (UID %d) is using the default passwd %s\n",&lt;BR /&gt;                   $name,$uid,DEFAULT_PW);&lt;BR /&gt;          }&lt;BR /&gt;      }&lt;BR /&gt;  }&lt;BR /&gt;endpwent();&lt;BR /&gt;&lt;BR /&gt;Just set to DEFAULT_PW constant to your value and it will work. It will even work with NIS/NIS+ or plain /etc/passwd.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Sep 2003 18:41:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063134#M139120</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-03T18:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063135#M139121</link>
      <description>Hi,&lt;BR /&gt;Copy the crypted default passwd from the password file, in my example it is "sNiloRtBTvMzI".&lt;BR /&gt; &lt;BR /&gt;awk 'BEGIN { FS=":" } $2 == "sNiloRtBTvMzI" { print }' /etc/passwd&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Sep 2003 19:01:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063135#M139121</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2003-09-03T19:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063136#M139122</link>
      <description>Unfortunately, Leif's approach is not very robust because the user could change the passwd back to the default value using the passwd command and because a new "salt" value would be randomly chosen the values would compare differently even though the plaintext passwds are identical. You really have to extract the "salt" from the passwd field and run it through crypt and compare that result to the original.&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Sep 2003 19:09:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063136#M139122</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-03T19:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063137#M139123</link>
      <description>Hi,&lt;BR /&gt;Yes, I discovered that. Sorry, it was not a good solution.</description>
      <pubDate>Wed, 03 Sep 2003 19:12:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd/m-p/3063137#M139123</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2003-09-03T19:12:00Z</dc:date>
    </item>
  </channel>
</rss>

