<?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: changing passwd on remote machines using script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283868#M882502</link>
    <description>This question has come up before. Take a look at these posts for some ideas:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=48946" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=48946&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=214045" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=214045&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=347973" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=347973&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
    <pubDate>Sat, 22 May 2004 09:10:48 GMT</pubDate>
    <dc:creator>John Poff</dc:creator>
    <dc:date>2004-05-22T09:10:48Z</dc:date>
    <item>
      <title>changing passwd on remote machines using script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283865#M882499</link>
      <description>Hi,&lt;BR /&gt;I have 180 Machines running hpux11i. I have to change the passwd for a particular user in all the systems. I can use remote shell and i want to run a script from one server for this purpose. Can any one help me how can i achieve this?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;...</description>
      <pubDate>Sat, 22 May 2004 07:11:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283865#M882499</guid>
      <dc:creator>jagdeesh</dc:creator>
      <dc:date>2004-05-22T07:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: changing passwd on remote machines using script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283866#M882500</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;One thing you could do (if you want the same password for the user on all boxes) is to change the password on one box, and then write a script to put that password entry in the /etc/passwd file for that user on all the other boxes.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Sat, 22 May 2004 07:27:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283866#M882500</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2004-05-22T07:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: changing passwd on remote machines using script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283867#M882501</link>
      <description>You mean put the passwd in /etc/passwd passwd field on remote machines? How can we do in the scipt (edit the /etc/passwd and replace the passwd in /etc/passwd field)? any examples available...?&lt;BR /&gt;&lt;BR /&gt;...</description>
      <pubDate>Sat, 22 May 2004 07:41:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283867#M882501</guid>
      <dc:creator>jagdeesh</dc:creator>
      <dc:date>2004-05-22T07:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: changing passwd on remote machines using script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283868#M882502</link>
      <description>This question has come up before. Take a look at these posts for some ideas:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=48946" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=48946&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=214045" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=214045&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=347973" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=347973&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Sat, 22 May 2004 09:10:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283868#M882502</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2004-05-22T09:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: changing passwd on remote machines using script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283869#M882503</link>
      <description>my thought would be to write a shell script and update the PASSWORD entry for this user.  you migh start with somethin likehs one.&lt;BR /&gt;echo "FULL NAME= \c"&lt;BR /&gt;read NAME&lt;BR /&gt;echo "LOGIN = \c"&lt;BR /&gt;read USER&lt;BR /&gt;echo "PASS= \c"&lt;BR /&gt;read PASS&lt;BR /&gt;&lt;BR /&gt;GRP=users&lt;BR /&gt;&lt;BR /&gt;CMD="/usr/sbin/useradd -g $GRP -c \"$NAME\" \&lt;BR /&gt;-d /home/equiv -s /usr/bin/true $USER"&lt;BR /&gt;&lt;BR /&gt;echo $CMD&lt;BR /&gt;&lt;BR /&gt;echo "run y/n ? \c"&lt;BR /&gt;read resp&lt;BR /&gt;if test "$resp" != "y"&lt;BR /&gt;then&lt;BR /&gt;        echo "not running...bye"&lt;BR /&gt;else&lt;BR /&gt;        eval $CMD&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 22 May 2004 23:03:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283869#M882503</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2004-05-22T23:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: changing passwd on remote machines using script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283870#M882504</link>
      <description>Hi Jagdeesh,&lt;BR /&gt;&lt;BR /&gt;"Expect" is good if you don't have remote shell capability as well to automatically supply responses to passwd program.&lt;BR /&gt;&lt;BR /&gt;If you have remote shell access to all the systems, then there is a better secured way of doing it. First, generate the encrypted password. Then change it on the remote system using the command "/usr/sam/lbin/usermod.sam -p &lt;ENCRYPTED_PASSWD&gt;" command. &lt;BR /&gt;&lt;BR /&gt;1. Generate encrypted password. It's really easy to do it if you are willing to go with 8 char password. Use /usr/lib/makekey to generate encrypted password for you. &lt;BR /&gt;&lt;BR /&gt;echo "&lt;YOUR_8CHAR_PASSWD&gt;&lt;TWO randomchars="" of="" your="" choice=""&gt;"|/usr/lib/makekey&lt;BR /&gt;&lt;BR /&gt;For ex., &lt;BR /&gt;&lt;BR /&gt;echo "Test123!xy" |/usr/lib/makekey&lt;BR /&gt;xyZz5eiXOP3r.&lt;BR /&gt;&lt;BR /&gt;Otherwise, change the password on one system and grab the encrypted key from /etc/passwd or /tcb/auth/files/ (for trusted).&lt;BR /&gt;&lt;BR /&gt;2. Place the encrypted password obtained in the above step into password field by using the command&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/usermod.sam -p "xyZz5eiXOP3r." login_name&lt;BR /&gt;&lt;BR /&gt;It works for both trusted and non-trusted sytems.&lt;BR /&gt;&lt;BR /&gt;Put it in remsh for the remote systems.&lt;BR /&gt;&lt;BR /&gt;Good thing about it is, though your remsh session transmits the information in clear text, your password is encrypted so it's relatively safer than using "expect".&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/TWO&gt;&lt;/YOUR_8CHAR_PASSWD&gt;&lt;/ENCRYPTED_PASSWD&gt;</description>
      <pubDate>Sun, 23 May 2004 01:36:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283870#M882504</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-05-23T01:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: changing passwd on remote machines using script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283871#M882505</link>
      <description>what about NIS / NIS+ ...is this available for HP-UX?</description>
      <pubDate>Mon, 24 May 2004 09:52:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283871#M882505</guid>
      <dc:creator>Tim Howell</dc:creator>
      <dc:date>2004-05-24T09:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: changing passwd on remote machines using script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283872#M882506</link>
      <description>It's actually quite simple. Make the change for this user on one machine. Capture the encrypted password from the /etc/passwd file or the /tcb directory. Then from a list of all the machines, use remsh (I prefer rexec for security reasons) to run the command:&lt;BR /&gt; &lt;BR /&gt;rexec $REMOTE_SYSTEM /usr/sam/lbin/usermod.sam -p $NEWPASS SomeUserName&lt;BR /&gt; &lt;BR /&gt;wher $NEWPASS is a copy of the encrypted password. If this is a temporary password, you can then run:&lt;BR /&gt; &lt;BR /&gt;rexec $REMOTE_SYSTEM passwd -f SomeUserName&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 24 May 2004 13:17:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-on-remote-machines-using-script/m-p/3283872#M882506</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-05-24T13:17:43Z</dc:date>
    </item>
  </channel>
</rss>

