<?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 root password in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133508#M450613</link>
    <description>There is no HPUX way to do this, as i see it you have to options witch are not perfect.&lt;BR /&gt;&lt;BR /&gt;Option 1:&lt;BR /&gt;Write a wrapper for the password program. And change the order of /etc/PATH to run you passwd script before the original. The down site is that users can run the passwd program directly with full qualified path or the /etc/PATH can be changed.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;USER=$1&lt;BR /&gt;&lt;BR /&gt;logger -t PASSWORDCHANGE -p local0.info "The password for $USER is changing"&lt;BR /&gt;&lt;BR /&gt;/usr/bin/passwd $USER&lt;BR /&gt;&lt;BR /&gt;if [ $? -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt; logger -t PASSWORDCHANGE -p local0.info "Failed to change password for $USER"&lt;BR /&gt;else&lt;BR /&gt; logger -t PASSWORDCHANGE -p local0.info "password changed for user $USER"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Option 2:&lt;BR /&gt;Move the original passwd binary to a new location and place the wrapper instead. This is not a good sollution because "sam" will try to use the replaced file.&lt;BR /&gt;The other downside is that and OS opgrade will replace your file.&lt;BR /&gt;&lt;BR /&gt;You might combine option 1 with some RBAC to make sure how will be able to run the original passwd command.&lt;BR /&gt;&lt;BR /&gt;Best regards JT</description>
    <pubDate>Tue, 07 Oct 2008 07:39:27 GMT</pubDate>
    <dc:creator>Jannik</dc:creator>
    <dc:date>2008-10-07T07:39:27Z</dc:date>
    <item>
      <title>changing root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133504#M450609</link>
      <description>hi All,&lt;BR /&gt;&lt;BR /&gt;may i know are there any way to keep check on when the root password has been changed?&lt;BR /&gt;&lt;BR /&gt;after i changed the root password i can't find any related info under /var/adm/syslog.&lt;BR /&gt;&lt;BR /&gt;thx so much.&lt;BR /&gt;&lt;BR /&gt;terrytse</description>
      <pubDate>Fri, 03 Oct 2008 03:10:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133504#M450609</guid>
      <dc:creator>terry123</dc:creator>
      <dc:date>2008-10-03T03:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: changing root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133505#M450610</link>
      <description>If your system is trusted, you can do a:&lt;BR /&gt;&lt;BR /&gt;# /usr/lbin/getprpw -m spwchg root&lt;BR /&gt;&lt;BR /&gt;If your system is not trusted you can try:&lt;BR /&gt;&lt;BR /&gt;# passwd -s root&lt;BR /&gt;&lt;BR /&gt;#man getprpw&lt;BR /&gt;&lt;BR /&gt;#man passwd&lt;BR /&gt;&lt;BR /&gt;for more information on each command.</description>
      <pubDate>Fri, 03 Oct 2008 03:16:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133505#M450610</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-10-03T03:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: changing root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133506#M450611</link>
      <description>thx, but passwd -s root will only show the password attributes for the root user.&lt;BR /&gt;&lt;BR /&gt;may i know are there any log file which will keep check on root password changed?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Oct 2008 02:53:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133506#M450611</guid>
      <dc:creator>terry123</dc:creator>
      <dc:date>2008-10-07T02:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: changing root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133507#M450612</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;root history file will have the details if the password has been changed by command.</description>
      <pubDate>Tue, 07 Oct 2008 07:09:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133507#M450612</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2008-10-07T07:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: changing root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133508#M450613</link>
      <description>There is no HPUX way to do this, as i see it you have to options witch are not perfect.&lt;BR /&gt;&lt;BR /&gt;Option 1:&lt;BR /&gt;Write a wrapper for the password program. And change the order of /etc/PATH to run you passwd script before the original. The down site is that users can run the passwd program directly with full qualified path or the /etc/PATH can be changed.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;USER=$1&lt;BR /&gt;&lt;BR /&gt;logger -t PASSWORDCHANGE -p local0.info "The password for $USER is changing"&lt;BR /&gt;&lt;BR /&gt;/usr/bin/passwd $USER&lt;BR /&gt;&lt;BR /&gt;if [ $? -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt; logger -t PASSWORDCHANGE -p local0.info "Failed to change password for $USER"&lt;BR /&gt;else&lt;BR /&gt; logger -t PASSWORDCHANGE -p local0.info "password changed for user $USER"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Option 2:&lt;BR /&gt;Move the original passwd binary to a new location and place the wrapper instead. This is not a good sollution because "sam" will try to use the replaced file.&lt;BR /&gt;The other downside is that and OS opgrade will replace your file.&lt;BR /&gt;&lt;BR /&gt;You might combine option 1 with some RBAC to make sure how will be able to run the original passwd command.&lt;BR /&gt;&lt;BR /&gt;Best regards JT</description>
      <pubDate>Tue, 07 Oct 2008 07:39:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133508#M450613</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2008-10-07T07:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: changing root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133509#M450614</link>
      <description>thx All,&lt;BR /&gt;&lt;BR /&gt;but may i know where can i find the root history file?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Oct 2008 12:27:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133509#M450614</guid>
      <dc:creator>terry123</dc:creator>
      <dc:date>2008-10-07T12:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: changing root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133510#M450615</link>
      <description>Hi Terrytse,&lt;BR /&gt;&lt;BR /&gt;Please look for the history under the /root &lt;BR /&gt;&lt;BR /&gt;example:-&lt;BR /&gt;&lt;BR /&gt;cd ~root&lt;BR /&gt;ls -la&lt;BR /&gt;look for this file --&amp;gt; sh_history&lt;BR /&gt;&lt;BR /&gt;more sh_history,&lt;BR /&gt;&lt;BR /&gt;hope this helps&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Oct 2008 12:44:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133510#M450615</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-10-07T12:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: changing root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133511#M450616</link>
      <description>&amp;gt;but may i know where can i find the root history file?&lt;BR /&gt;&lt;BR /&gt;It's named by $HISTFILE.  Typically sh doesn't define this for root.  One default would be ~/.sh_history.</description>
      <pubDate>Tue, 07 Oct 2008 14:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133511#M450616</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-07T14:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: changing root password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133512#M450617</link>
      <description>thx all for the help.&lt;BR /&gt;&lt;BR /&gt;;)</description>
      <pubDate>Thu, 09 Oct 2008 07:23:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-root-password/m-p/5133512#M450617</guid>
      <dc:creator>terry123</dc:creator>
      <dc:date>2008-10-09T07:23:13Z</dc:date>
    </item>
  </channel>
</rss>

