<?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: Reset password of 50 users trusted system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5693659#M480629</link>
    <description>&lt;P&gt;To use a for-loop reading from a file, in a real shell you can do:&lt;/P&gt;&lt;P&gt;for user in $(&amp;lt; 50_user_list.txt); do&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2012 23:02:32 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2012-06-18T23:02:32Z</dc:date>
    <item>
      <title>Reset password of 50 users trusted system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5692937#M480621</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have hpux 11iv2 , trusted system , i need to reset password of 50 users , i.e same passwd for all 50 users.&lt;/P&gt;&lt;P&gt;Also it must force them to change their passwords at first login .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we have any script for this ??&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2012 07:39:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5692937#M480621</guid>
      <dc:creator>zxcv</dc:creator>
      <dc:date>2012-06-18T07:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reset password of 50 users trusted system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5693641#M480628</link>
      <description>&lt;P&gt;Hi Zxcv,&lt;/P&gt;&lt;P&gt;You can try to do the above task with a for loop,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. get the 50 user list from the password file and create a file that will have only the users name: (ex: 50_user_list.txt )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#---------------- Start Script -------&lt;/P&gt;&lt;P&gt;# Script for changing 50 users password , with same password.&lt;/P&gt;&lt;P&gt;for user in `cat 50_user_list.txt`&lt;/P&gt;&lt;P&gt;do&lt;/P&gt;&lt;P&gt;passwd $user&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;done&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Forcing passowrd to change at next logon:&lt;/P&gt;&lt;P&gt;for user in `cat 50_user_list.txt`&lt;/P&gt;&lt;P&gt;do&lt;/P&gt;&lt;P&gt;passwd -f&amp;nbsp;$user&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;done&lt;/P&gt;&lt;P&gt;echo " Done.."&lt;/P&gt;&lt;P&gt;#---------------------------------- End Script ---------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-While executing this script , writedown the password in the putty screen and select it with the mouse , so that it will be in the buffer, by pressing the right click it will be pasted when it will ask for a password.&lt;/P&gt;&lt;P&gt;-If you select the password from text screen with a carriage return, you dont even&amp;nbsp; need to press enter&amp;nbsp;&amp;nbsp;, just press 50 times right click when prompted for password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hth&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2012 20:57:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5693641#M480628</guid>
      <dc:creator>RAJD1</dc:creator>
      <dc:date>2012-06-21T20:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reset password of 50 users trusted system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5693659#M480629</link>
      <description>&lt;P&gt;To use a for-loop reading from a file, in a real shell you can do:&lt;/P&gt;&lt;P&gt;for user in $(&amp;lt; 50_user_list.txt); do&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2012 23:02:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5693659#M480629</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-06-18T23:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reset password of 50 users trusted system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5693795#M480631</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any option by means of which i can enter this hash value ( password ) &amp;nbsp;in that script and i dont have to right click 50 times ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2012 05:08:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5693795#M480631</guid>
      <dc:creator>zxcv</dc:creator>
      <dc:date>2012-06-19T05:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reset password of 50 users trusted system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5694389#M480642</link>
      <description>&lt;P&gt;For 11iv2 and older, this is undocumented by HP, but still a widely known procedure. (It was listed in HP-UX FAQ documents available in Internet more than 10 years ago.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Find the hash value. For example, set the desired password to one user on one system, then read the hash value from the user's password file (/tcb/files/auth/&amp;lt;first letter of username&amp;gt;/&amp;lt;username&amp;gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then replace this line in RAJD1's script:&lt;/P&gt;&lt;PRE&gt;passwd $user&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with this line:&lt;/P&gt;&lt;PRE&gt;/usr/sam/lbin/usermod.sam -p "&amp;lt;hashvalue&amp;gt;" $user&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Replace the string &amp;lt;hashvalue&amp;gt; with the actual hash value.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2012 11:55:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5694389#M480642</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2012-06-19T11:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reset password of 50 users trusted system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5695581#M480661</link>
      <description>&lt;P&gt;Thnaks Matti&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 10:47:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5695581#M480661</guid>
      <dc:creator>zxcv</dc:creator>
      <dc:date>2012-06-20T10:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reset password of 50 users trusted system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5696099#M480666</link>
      <description>&lt;P&gt;Correction: &amp;lt;in my first post&amp;gt; in the script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for user in 50_user_list.txt&amp;nbsp; --&amp;gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; &amp;nbsp;should be --&amp;gt;&amp;nbsp;&amp;nbsp; for user in `cat 50_user_list.txt`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 17:10:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5696099#M480666</guid>
      <dc:creator>RAJD1</dc:creator>
      <dc:date>2012-06-20T17:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reset password of 50 users trusted system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5696357#M480670</link>
      <description>&lt;P&gt;&amp;gt;Correction: &amp;lt;in my first post&amp;gt; in the script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the Post's Options &amp;gt; Edit Reply to change your post.&lt;/P&gt;&lt;P&gt;Also better to remove evil cat, as showed above.&amp;nbsp; :-)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 22:51:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-password-of-50-users-trusted-system/m-p/5696357#M480670</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-06-20T22:51:06Z</dc:date>
    </item>
  </channel>
</rss>

