<?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: Change all users password (trusted system) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058601#M138210</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here is what i want and i've got.&lt;BR /&gt;Thanks for all your solutions, it's work.&lt;BR /&gt;&lt;BR /&gt;#! /bin/ksh&lt;BR /&gt;cat /rpt1/userfile | while read line &lt;BR /&gt;do&lt;BR /&gt;first=$(echo $line|awk -F: '{print substr($1,1,1)}')&lt;BR /&gt;S1=/tcb/files/auth/&lt;BR /&gt;S2=$(echo $line|awk -F: '{print $1}')&lt;BR /&gt;S3=$(echo $line|awk -F: '{print $2}')&lt;BR /&gt;S4=$(grep u_pwd  $S1$first/$S2 | awk -F: '{print substr($2,7,2)}')&lt;BR /&gt;/usr/sam/lbin/usermod.sam -p `echo "$S3$S4" | /usr/lbin/makekey` $S2&lt;BR /&gt;done</description>
    <pubDate>Thu, 04 Sep 2003 08:03:59 GMT</pubDate>
    <dc:creator>HAMOU</dc:creator>
    <dc:date>2003-09-04T08:03:59Z</dc:date>
    <item>
      <title>Change all users password (trusted system)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058594#M138203</link>
      <description>Hi, &lt;BR /&gt;How can i change all the users password from a list of users in a trusted system.&lt;BR /&gt;Have you a script who can do it.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Mansour.</description>
      <pubDate>Thu, 28 Aug 2003 07:58:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058594#M138203</guid>
      <dc:creator>HAMOU</dc:creator>
      <dc:date>2003-08-28T07:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change all users password (trusted system)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058595#M138204</link>
      <description>You wish to change all passwords on your system? About only way to do this would be to untrust the system and then trust it again. &lt;BR /&gt;&lt;BR /&gt;# /usr/lbin/tsconvert -r&lt;BR /&gt;&lt;BR /&gt;# /usr/lbin/tsconvert &lt;BR /&gt;All passwords will expire for all accounts and then all users will be asked to change their passwords. Either that or you would have to write an expect script to do it.&lt;BR /&gt;&lt;BR /&gt;Is this what your after ?</description>
      <pubDate>Thu, 28 Aug 2003 08:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058595#M138204</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-08-28T08:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change all users password (trusted system)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058596#M138205</link>
      <description>You just need to use the /usr/lbin/modprpw command, here is the manpage for it;&lt;BR /&gt;&lt;BR /&gt;You can easily write a script to do it on all users, eg;&lt;BR /&gt;&lt;BR /&gt;for i in $(cat &lt;LIST&gt;)&lt;BR /&gt;do&lt;BR /&gt;modprpw .... $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;where &lt;LIST&gt; is a file with a list of all your usernames to change.&lt;/LIST&gt;&lt;/LIST&gt;</description>
      <pubDate>Thu, 28 Aug 2003 08:25:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058596#M138205</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-08-28T08:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change all users password (trusted system)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058597#M138206</link>
      <description>Thanks Stephan and Michael for your answers,&lt;BR /&gt;i think that the modprpw cde could help me.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Mansour.&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Aug 2003 12:06:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058597#M138206</guid>
      <dc:creator>HAMOU</dc:creator>
      <dc:date>2003-08-28T12:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change all users password (trusted system)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058598#M138207</link>
      <description>Stefan,&lt;BR /&gt;&lt;BR /&gt;Can you give the option of modprpw to change a password in a trusted system or can you help to do the script with a file (username:passwd)&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Mansour.</description>
      <pubDate>Thu, 28 Aug 2003 12:54:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058598#M138207</guid>
      <dc:creator>HAMOU</dc:creator>
      <dc:date>2003-08-28T12:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change all users password (trusted system)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058599#M138208</link>
      <description>Here is a script that reads through a copy of the passwd file with the system users taken out.&lt;BR /&gt;&lt;BR /&gt;It can run the modprpw command pretty easily.&lt;BR /&gt;&lt;BR /&gt;Attached&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 28 Aug 2003 13:04:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058599#M138208</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-08-28T13:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change all users password (trusted system)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058600#M138209</link>
      <description>try this out .....&lt;BR /&gt;&lt;BR /&gt;for i in `cat new_ids`&lt;BR /&gt;do&lt;BR /&gt;   echo "--- Processing: "$i&lt;BR /&gt;   export USERID=$i&lt;BR /&gt;   init_pwd.exp&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;contents of init_pwd.exp&lt;BR /&gt;&lt;BR /&gt;set timeout 10&lt;BR /&gt;&lt;BR /&gt;spawn passwd "$env(USERID)"&lt;BR /&gt;expect "*sword:"&lt;BR /&gt;send "rogers1a\r"&lt;BR /&gt;expect "*sword:"&lt;BR /&gt;send "rogers1a\r"&lt;BR /&gt;expect "#"</description>
      <pubDate>Thu, 28 Aug 2003 14:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058600#M138209</guid>
      <dc:creator>Camel_1</dc:creator>
      <dc:date>2003-08-28T14:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change all users password (trusted system)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058601#M138210</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here is what i want and i've got.&lt;BR /&gt;Thanks for all your solutions, it's work.&lt;BR /&gt;&lt;BR /&gt;#! /bin/ksh&lt;BR /&gt;cat /rpt1/userfile | while read line &lt;BR /&gt;do&lt;BR /&gt;first=$(echo $line|awk -F: '{print substr($1,1,1)}')&lt;BR /&gt;S1=/tcb/files/auth/&lt;BR /&gt;S2=$(echo $line|awk -F: '{print $1}')&lt;BR /&gt;S3=$(echo $line|awk -F: '{print $2}')&lt;BR /&gt;S4=$(grep u_pwd  $S1$first/$S2 | awk -F: '{print substr($2,7,2)}')&lt;BR /&gt;/usr/sam/lbin/usermod.sam -p `echo "$S3$S4" | /usr/lbin/makekey` $S2&lt;BR /&gt;done</description>
      <pubDate>Thu, 04 Sep 2003 08:03:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-all-users-password-trusted-system/m-p/3058601#M138210</guid>
      <dc:creator>HAMOU</dc:creator>
      <dc:date>2003-09-04T08:03:59Z</dc:date>
    </item>
  </channel>
</rss>

