<?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 root password in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884543#M101723</link>
    <description>I red your previous discussion regarding root password discipline. I care abot 45 HP servers and I cannot use NIS. How can I change root password easily on several servers easily at once! Do you use some scripts or do you click out new password on each server one by one?</description>
    <pubDate>Fri, 17 Jan 2003 15:08:48 GMT</pubDate>
    <dc:creator>Petr Simik_1</dc:creator>
    <dc:date>2003-01-17T15:08:48Z</dc:date>
    <item>
      <title>root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884543#M101723</link>
      <description>I red your previous discussion regarding root password discipline. I care abot 45 HP servers and I cannot use NIS. How can I change root password easily on several servers easily at once! Do you use some scripts or do you click out new password on each server one by one?</description>
      <pubDate>Fri, 17 Jan 2003 15:08:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884543#M101723</guid>
      <dc:creator>Petr Simik_1</dc:creator>
      <dc:date>2003-01-17T15:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884544#M101724</link>
      <description>Petr,&lt;BR /&gt;&lt;BR /&gt;In my case, I keep the passwd file synchronised on all my hp-ux machines by rcp'ing it.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 17 Jan 2003 15:11:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884544#M101724</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-01-17T15:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884545#M101725</link>
      <description>At a previous job we kept a bunch of servers in sync with 'rdist'.&lt;BR /&gt;&lt;BR /&gt;Do a 'man rdist' for more information.</description>
      <pubDate>Fri, 17 Jan 2003 15:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884545#M101725</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-01-17T15:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884546#M101726</link>
      <description>I use the same method as Patrick for Sun and HP (rdist).&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Fri, 17 Jan 2003 15:17:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884546#M101726</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-01-17T15:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884547#M101727</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have a low enough ratio of servers to sys admins [about 5:1] that we just divide them up and change the root passwords manually.&lt;BR /&gt;&lt;BR /&gt;The password files are mostly different on each box so we don't have the luxury of rcp'ing them.  &lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Jan 2003 15:17:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884547#M101727</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-17T15:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884548#M101728</link>
      <description>I use an expect script to make the changes.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Shell wrapper&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;for MACHINE in `cat MACHINES`&lt;BR /&gt;do&lt;BR /&gt;  ./allpw.exp "$MACHINE" "$USERID" "$NEWPW"        &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; allpw.exp&lt;BR /&gt;&lt;BR /&gt;#!/usr/local/bin/expect&lt;BR /&gt;###############################################################################&lt;BR /&gt;&lt;BR /&gt;set term vt100&lt;BR /&gt;set timeout 5&lt;BR /&gt;set SITE [lindex $argv 0]&lt;BR /&gt;set USERID [lindex $argv 1]&lt;BR /&gt;set NEWPW [lindex $argv 2]&lt;BR /&gt; &lt;BR /&gt;spawn rlogin $SITE&lt;BR /&gt; &lt;BR /&gt;expect {*TERM*)} {}&lt;BR /&gt;send "$term\n"&lt;BR /&gt;expect {*&amp;gt;} {} {*#} {} {*$} {}&lt;BR /&gt; &lt;BR /&gt;send "/opt/super/bin/super passwd $USERID\n"&lt;BR /&gt;&lt;BR /&gt;expect {*word:} {}&lt;BR /&gt;sleep 2&lt;BR /&gt;&lt;BR /&gt;send "$NEWPW\n"&lt;BR /&gt;expect {*word:} {}&lt;BR /&gt;sleep 2&lt;BR /&gt;&lt;BR /&gt;send "$NEWPW\n"&lt;BR /&gt; &lt;BR /&gt;expect {*&amp;gt;} {} {*#} {} {*$} {}&lt;BR /&gt; &lt;BR /&gt;send "exit\n"&lt;BR /&gt;close -i $spawn_id&lt;BR /&gt; &lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;-----------------------&lt;BR /&gt;&lt;BR /&gt;For convenience,I use a utility called super (similar to sudo) to allow me to change passwords using my own ID.</description>
      <pubDate>Fri, 17 Jan 2003 15:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884548#M101728</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2003-01-17T15:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884549#M101729</link>
      <description>Sorry,&lt;BR /&gt;&lt;BR /&gt;Wrong verision of the shell script posted previously.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;LOG=log/pwchg.log&lt;BR /&gt; &lt;BR /&gt;if [ `whoami` = "root" ]&lt;BR /&gt;then&lt;BR /&gt;        echo "Script must not be run as root"&lt;BR /&gt;        exit 0&lt;BR /&gt;fi&lt;BR /&gt; &lt;BR /&gt;echo "Please enter ID for global password change:\c"&lt;BR /&gt;read USERID&lt;BR /&gt;echo "Please enter new password for ID $USERID: \c"&lt;BR /&gt;stty -echo&lt;BR /&gt;read NEWPW&lt;BR /&gt;stty echo&lt;BR /&gt;echo ""&lt;BR /&gt; &lt;BR /&gt;echo "password change for $USERID on `date`" &amp;gt;&amp;gt; $LOG&lt;BR /&gt; &lt;BR /&gt;for MACHINE in `cat MACHINES`&lt;BR /&gt;do&lt;BR /&gt;        ./allpw.exp "$MACHINE" "$USERID" "$NEWPW"&lt;BR /&gt;done</description>
      <pubDate>Fri, 17 Jan 2003 15:21:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-password/m-p/2884549#M101729</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2003-01-17T15:21:35Z</dc:date>
    </item>
  </channel>
</rss>

