<?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: Script for changing root passwd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-changing-root-passwd/m-p/2850770#M93527</link>
    <description>hi&lt;BR /&gt;&lt;BR /&gt;Cut and Paste problem&lt;BR /&gt;&lt;BR /&gt;f:lct:$NEWPASSx! &lt;BR /&gt;&lt;BR /&gt;should have an ESC (use CTRL-V then ESC)inserted before last x :&lt;BR /&gt;&lt;BR /&gt;f:lct:$NEWPASS^[x! &lt;BR /&gt;&lt;BR /&gt;Regards.</description>
    <pubDate>Mon, 25 Nov 2002 11:48:51 GMT</pubDate>
    <dc:creator>Jean-Louis Phelix</dc:creator>
    <dc:date>2002-11-25T11:48:51Z</dc:date>
    <item>
      <title>Script for changing root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-changing-root-passwd/m-p/2850767#M93524</link>
      <description>HI,&lt;BR /&gt;I would like to write a script to change the root passwd in /etc/passwd on every machine on a monthly basis i.e the 1st day of the month.&lt;BR /&gt;&lt;BR /&gt;But I'm really unsure how I could just access the 1st line in the /etc/passwd file which contains the entry for root and its encrypted passwd. I'd then like to modify the second field for root's entry (the encrypted passwd) to a new value. &lt;BR /&gt;&lt;BR /&gt;The new passwd value is to be read from a file.  &lt;BR /&gt;&lt;BR /&gt;Could someone show me how the script should be written in AWK or any other scripting languages? I need to also check that for every begining of the month, the passwd should be modified.     &lt;BR /&gt;&lt;BR /&gt;Could someone kindly help me out? I'm still a newbie to scripting. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 24 Nov 2002 05:02:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-changing-root-passwd/m-p/2850767#M93524</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-11-24T05:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script for changing root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-changing-root-passwd/m-p/2850768#M93525</link>
      <description>&lt;BR /&gt;do something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbdb6cf38d6bdd5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbdb6cf38d6bdd5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and please read this&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://66.216.15.50/ITRCForumsEtiquette" target="_blank"&gt;http://66.216.15.50/ITRCForumsEtiquette&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Sun, 24 Nov 2002 20:16:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-changing-root-passwd/m-p/2850768#M93525</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-11-24T20:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script for changing root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-changing-root-passwd/m-p/2850769#M93526</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This script should d it :&lt;BR /&gt;&lt;BR /&gt;/tmp/NEW contains the new password. I use vipw to add security check after modification. Just in case ...&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;[ $(date +'%d') != 1 ] &amp;amp;&amp;amp;&lt;BR /&gt;{&lt;BR /&gt;  echo not first day of month ...&lt;BR /&gt;  exit 1&lt;BR /&gt;}&lt;BR /&gt;NEWPASS=$(cat /tmp/NEW)&lt;BR /&gt;vipw &amp;lt;&amp;lt;+++&lt;BR /&gt;/^root:&lt;BR /&gt;f:lct:$NEWPASSx!&lt;BR /&gt;+++&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Nov 2002 08:32:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-changing-root-passwd/m-p/2850769#M93526</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2002-11-25T08:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script for changing root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-changing-root-passwd/m-p/2850770#M93527</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;Cut and Paste problem&lt;BR /&gt;&lt;BR /&gt;f:lct:$NEWPASSx! &lt;BR /&gt;&lt;BR /&gt;should have an ESC (use CTRL-V then ESC)inserted before last x :&lt;BR /&gt;&lt;BR /&gt;f:lct:$NEWPASS^[x! &lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Mon, 25 Nov 2002 11:48:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-changing-root-passwd/m-p/2850770#M93527</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2002-11-25T11:48:51Z</dc:date>
    </item>
  </channel>
</rss>

