<?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: updating root password in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427134#M1750</link>
    <description>Perl offers the same system functions (e.g. getpwent, getpwnam, setpwnam etc.) as the C libs.&lt;BR /&gt;But I would consider them much easier to use from Perl, especially when it comes to parsing of text files.&lt;BR /&gt;If you have Perl on your system (BTW HP-UX ships a very dated Perl 4.X under /usr/contrib/bin, which should be superseded by a recent Perl 5.6 ;-) consult the POD&lt;BR /&gt;&lt;BR /&gt;$ perldoc perlfunc&lt;BR /&gt;&lt;BR /&gt;Perl even offers an Expect Module from CPAN, which is modelled after the TCL expect, in case you need to run jobs that require some kind of user interaction.</description>
    <pubDate>Tue, 17 Oct 2000 09:10:20 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2000-10-17T09:10:20Z</dc:date>
    <item>
      <title>updating root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427128#M1744</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am trying to pass a new password of the ROOT account from a script rub by ROOT&lt;BR /&gt;&lt;BR /&gt;ie  simply in a script using th following&lt;BR /&gt;&lt;BR /&gt;passwd root &lt;NEW passwd=""&gt;&lt;BR /&gt;&lt;BR /&gt;It doesn't like it.  Any ideas ??&lt;BR /&gt;&lt;BR /&gt;Steve&lt;/NEW&gt;</description>
      <pubDate>Thu, 22 Jun 2000 14:24:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427128#M1744</guid>
      <dc:creator>Steve Massey_1</dc:creator>
      <dc:date>2000-06-22T14:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: updating root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427129#M1745</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;passwd(1) command do not accept passwd on the command line. For security purpose, I guess.&lt;BR /&gt;And it requires entering the new passwd twice.&lt;BR /&gt;&lt;BR /&gt;To be able to do what you want, I have write your own program that will update the passwd file, using getpw[ent|name|uid](3) and putpwent(3) functions.&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Thu, 22 Jun 2000 14:43:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427129#M1745</guid>
      <dc:creator>Benoit MARC</dc:creator>
      <dc:date>2000-06-22T14:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: updating root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427130#M1746</link>
      <description>Any idea on the format of these calls within a script??&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or an example  &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Steve&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2000 15:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427130#M1746</guid>
      <dc:creator>Steve Massey_1</dc:creator>
      <dc:date>2000-06-22T15:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: updating root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427131#M1747</link>
      <description>These are 'C' functions, and you would need to create a 'C' program in order to use.&lt;BR /&gt;&lt;BR /&gt;This would probably be a better option so that the password is not in plain text in the script.&lt;BR /&gt;&lt;BR /&gt;Check the man pages on the putpwent(3C).</description>
      <pubDate>Thu, 22 Jun 2000 15:46:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427131#M1747</guid>
      <dc:creator>Dale McNamara</dc:creator>
      <dc:date>2000-06-22T15:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: updating root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427132#M1748</link>
      <description>It is also possible to use an expect script to update passwords.  Of course, you have to have expect and tcl installed on your system, first.</description>
      <pubDate>Thu, 22 Jun 2000 18:56:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427132#M1748</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-06-22T18:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: updating root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427133#M1749</link>
      <description>hi there&lt;BR /&gt;there's another way to solve your problem. i'm running an terminal emulator on my pc called PWACCESS . with this tool it's possible to create a script handling events/actions. i'd solve your problem with following script :&lt;BR /&gt;waitfor "login:"&lt;BR /&gt;send "root"&lt;BR /&gt;waitfor "Password:"&lt;BR /&gt;send "hp"             (send root's password)&lt;BR /&gt;waitfor "hp03a:/#"     (system prompt)&lt;BR /&gt;send "passwd"&lt;BR /&gt;waitfor "New password:"&lt;BR /&gt;send "xyz"             (send new password"&lt;BR /&gt;waitfor "Re-enter..."&lt;BR /&gt;send "xyz"&lt;BR /&gt;&lt;BR /&gt;This should work, but you would have to modify the password in this script everytime you run it (not very comfortable...)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Oct 2000 07:47:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427133#M1749</guid>
      <dc:creator>Sandro Schaer</dc:creator>
      <dc:date>2000-10-13T07:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: updating root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427134#M1750</link>
      <description>Perl offers the same system functions (e.g. getpwent, getpwnam, setpwnam etc.) as the C libs.&lt;BR /&gt;But I would consider them much easier to use from Perl, especially when it comes to parsing of text files.&lt;BR /&gt;If you have Perl on your system (BTW HP-UX ships a very dated Perl 4.X under /usr/contrib/bin, which should be superseded by a recent Perl 5.6 ;-) consult the POD&lt;BR /&gt;&lt;BR /&gt;$ perldoc perlfunc&lt;BR /&gt;&lt;BR /&gt;Perl even offers an Expect Module from CPAN, which is modelled after the TCL expect, in case you need to run jobs that require some kind of user interaction.</description>
      <pubDate>Tue, 17 Oct 2000 09:10:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427134#M1750</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2000-10-17T09:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: updating root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427135#M1751</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can of course do it in C.&lt;BR /&gt;&lt;BR /&gt;Attached to this reply you find a piece of code that changes the password of a user. The code works on trusted an non trusted systems.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Rik</description>
      <pubDate>Tue, 17 Oct 2000 09:39:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/updating-root-password/m-p/2427135#M1751</guid>
      <dc:creator>RikTytgat</dc:creator>
      <dc:date>2000-10-17T09:39:19Z</dc:date>
    </item>
  </channel>
</rss>

