<?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 Script help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710547#M60396</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Does any one has a script in place or any idea on changing root passwd on multiple system.  I realy don't want to rlogin in each system and do "passwd root".  I would like to use script.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Mike</description>
    <pubDate>Wed, 24 Apr 2002 21:48:47 GMT</pubDate>
    <dc:creator>Mike_305</dc:creator>
    <dc:date>2002-04-24T21:48:47Z</dc:date>
    <item>
      <title>Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710547#M60396</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Does any one has a script in place or any idea on changing root passwd on multiple system.  I realy don't want to rlogin in each system and do "passwd root".  I would like to use script.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Mike</description>
      <pubDate>Wed, 24 Apr 2002 21:48:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710547#M60396</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2002-04-24T21:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710548#M60397</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;Do yoy have a system which is trusted by all other servers if yes then I can give you a script to do the password change.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;&lt;BR /&gt;Hari&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2002 21:53:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710548#M60397</guid>
      <dc:creator>hari jayaram_1</dc:creator>
      <dc:date>2002-04-24T21:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710549#M60398</link>
      <description>No all the system are non trusted and it's combination of Sun, IBM, and HP.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Mike</description>
      <pubDate>Wed, 24 Apr 2002 21:57:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710549#M60398</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2002-04-24T21:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710550#M60399</link>
      <description>Hi Mike,&lt;BR /&gt;&lt;BR /&gt; Your best bet would be to use an Expect script - mainly because of it's interactive capability.&lt;BR /&gt;Can be obtained at &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dsportal.eservices.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,543,00.html" target="_blank"&gt;http://dsportal.eservices.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,543,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Someone may already have an Expect script written....&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 24 Apr 2002 21:59:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710550#M60399</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-04-24T21:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710551#M60400</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;If you have ssh configured across all your servers your task is simple. If you have the ability to ssh as root to all your servers ... then:&lt;BR /&gt;&lt;BR /&gt;OWNER="root"&lt;BR /&gt;SYS_LIST="host1 host2 host3 host4 host5"&lt;BR /&gt;for HOST in "${SYS_LIST}"&lt;BR /&gt; do&lt;BR /&gt;   echo "Changing Root passwd on ${HOST}................................"&lt;BR /&gt;   /usr/local/bin/ssh ${HOST} /usr/bin/passwd ${OWNER}&lt;BR /&gt;   echo "passwd changed successfully for ${HOST} ......................."               done&lt;BR /&gt;&lt;BR /&gt;should work ... You will be prompted for new passwd for each of these servers ... This is NOT TESTED ...&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shabu</description>
      <pubDate>Wed, 24 Apr 2002 22:11:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710551#M60400</guid>
      <dc:creator>SHABU KHAN</dc:creator>
      <dc:date>2002-04-24T22:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710552#M60401</link>
      <description>Hi Shabu,&lt;BR /&gt;&lt;BR /&gt;I modified your script but some how it hangs when it prompts me for new passwd.  Any idea.&lt;BR /&gt;&lt;BR /&gt;Mike</description>
      <pubDate>Wed, 24 Apr 2002 23:38:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710552#M60401</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2002-04-24T23:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710553#M60402</link>
      <description>Hi Shabu,&lt;BR /&gt;&lt;BR /&gt;Here is the script.&lt;BR /&gt;&lt;BR /&gt;OWNER="root" &lt;BR /&gt;SYS_LIST=`cat mike3`&lt;BR /&gt;for HOST in $SYS_LIST &lt;BR /&gt;do &lt;BR /&gt;echo "Changing Root passwd on ${HOST}................................" &lt;BR /&gt;/usr/bin/rlogin -l root ${HOST} | /usr/bin/passwd ${OWNER} &lt;BR /&gt;echo "passwd changed successfully for $HOST ......................." &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Mike</description>
      <pubDate>Wed, 24 Apr 2002 23:40:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710553#M60402</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2002-04-24T23:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710554#M60403</link>
      <description>Hi Mike,&lt;BR /&gt;&lt;BR /&gt;Thank You ! You just made me a ITRC Graduate :-)&lt;BR /&gt;&lt;BR /&gt;Okay ... I would test two things first:&lt;BR /&gt;prompt&amp;gt;cat mike&lt;BR /&gt;host1 host2 host3 host4 ...&lt;BR /&gt;&lt;BR /&gt;1) Try changing:&lt;BR /&gt;the first line (for loop)&lt;BR /&gt;to:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;for HOST in `cat /tmp/mike`&lt;BR /&gt;&lt;BR /&gt;2) Try manually from the command prompt:&lt;BR /&gt;&lt;BR /&gt;prompt&amp;gt;/usr/bin/rlogin -l root host1 | /usr/bin/passwd root&lt;BR /&gt;&lt;BR /&gt;I've executed other commands using ssh before and it works. I use it to create logins for users across servers ...&lt;BR /&gt;&lt;BR /&gt;Did you check the rlogin syntax ?&lt;BR /&gt;&lt;BR /&gt;All the best !&lt;BR /&gt;-Thanks,&lt;BR /&gt;Shabu</description>
      <pubDate>Thu, 25 Apr 2002 01:18:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710554#M60403</guid>
      <dc:creator>SHABU KHAN</dc:creator>
      <dc:date>2002-04-25T01:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710555#M60404</link>
      <description>Hi SHABU,&lt;BR /&gt;&lt;BR /&gt;Not running SSH on the server.  Is their any other way I can do this.&lt;BR /&gt;&lt;BR /&gt;Mike</description>
      <pubDate>Fri, 26 Apr 2002 17:32:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710555#M60404</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2002-04-26T17:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710556#M60405</link>
      <description>&lt;BR /&gt;Well you can do this a many number of ways.&lt;BR /&gt;I sometimes just cut and paste the encyped password into wordpad then vipw and paste in the new encyped key.&lt;BR /&gt;&lt;BR /&gt;I have in the passed used expect to do this too. &lt;BR /&gt;&lt;BR /&gt;One other suggestion is to use NIS for managing the systems passwords, but there are some security concerns that come along with that.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Apr 2002 17:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710556#M60405</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2002-04-26T17:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710557#M60406</link>
      <description>Yes Mike,&lt;BR /&gt;I had same problem like you. I go to one system then run script. I might have to type passwd 100 time but I am sure that it works.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;for i in `cat systemlist`&lt;BR /&gt;do&lt;BR /&gt;  rlogin $i&lt;BR /&gt;  #then I change passwd.&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;#cat systemlist = my systems names one in one line.&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Fri, 26 Apr 2002 17:59:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2710557#M60406</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2002-04-26T17:59:11Z</dc:date>
    </item>
  </channel>
</rss>

