<?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: Account is disabled - see Account Administrator in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527692#M220932</link>
    <description>Lock down root access and give SA the ability to unlock accounts (including root).&lt;BR /&gt;&lt;BR /&gt;1) create unlock script (/usr/local/bin/unlock)&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;quitnice()&lt;BR /&gt;{&lt;BR /&gt;        # This function exits with a message, and confirmation.&lt;BR /&gt;        echo $MSG&lt;BR /&gt;        echo Command completed successfully&lt;BR /&gt;        echo "Press Enter to continue --&amp;gt; " ; read&lt;BR /&gt;        exit 0&lt;BR /&gt;}&lt;BR /&gt;viewlock()&lt;BR /&gt;{&lt;BR /&gt;        LOCKED=`/usr/lbin/getprpw -m alock,lockout $STRING|grep -e YES -e 1`&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# Read argument or get input:&lt;BR /&gt;if [ -z "$1" ] ; then&lt;BR /&gt;        echo "Please enter a username to unlock --&amp;gt; " ; read STRING&lt;BR /&gt;   else STRING=$1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# Parse argument:&lt;BR /&gt;if [ -z "$STRING" ] ; then&lt;BR /&gt;        MSG="Invalid argument" &amp;amp;&amp;amp; quitnice&lt;BR /&gt;   else viewlock&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# Unlock!&lt;BR /&gt;if [ -z "$LOCKED" ] ; then&lt;BR /&gt;        MSG="Account was not locked" &amp;amp;&amp;amp; quitnice&lt;BR /&gt;   else /usr/lbin/modprpw -m alock=NO $STRING&lt;BR /&gt;        /usr/lbin/modprpw -k $STRING&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# Check results&lt;BR /&gt;viewlock&lt;BR /&gt;if [ -z "$LOCKED" ] ; then&lt;BR /&gt;        MSG="Account was unlocked successfully" &amp;amp;&amp;amp; quitnice&lt;BR /&gt;else&lt;BR /&gt;        MSG="Account could not be unlocked" &amp;amp;&amp;amp; quitnice&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;# --------------------------&lt;BR /&gt;&lt;BR /&gt;2) edit sudoers&lt;BR /&gt;&lt;BR /&gt;$ visudo&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias      SYSADMIN = /bin/su -d - root, \&lt;BR /&gt;                           /usr/local/bin/unlock&lt;BR /&gt;&lt;BR /&gt;%sysadmin ALL= NOPASSWD: SYSADMIN&lt;BR /&gt;&lt;BR /&gt;# NOTE: replace 'sysadmin' with appropriate SA group name&lt;BR /&gt;&lt;BR /&gt;3) change permissions on su (BE CAREFUL!!)&lt;BR /&gt;&lt;BR /&gt;$ chown root:bin /bin/su&lt;BR /&gt;$ chown root:bin /usr/bin/su&lt;BR /&gt;$ chmod 4550 /bin/su&lt;BR /&gt;$ chmod 4550 /usr/bin/su&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To log in as root:&lt;BR /&gt;&lt;BR /&gt;$ sudo /bin/su -d - root&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To unlock account:&lt;BR /&gt;&lt;BR /&gt;$ sudo /usr/local/bin/unlock &lt;LOGIN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LOGIN&gt;</description>
    <pubDate>Tue, 19 Apr 2005 09:23:19 GMT</pubDate>
    <dc:creator>Joe Harrison_1</dc:creator>
    <dc:date>2005-04-19T09:23:19Z</dc:date>
    <item>
      <title>Account is disabled - see Account Administrator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527685#M220925</link>
      <description>i try to telnet a hp-ux machine by the root user i get the following error:&lt;BR /&gt;Account is disabled - see Account Administrator.&lt;BR /&gt;&lt;BR /&gt;connection with other users is good. what should be the problem?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Apr 2005 06:14:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527685#M220925</guid>
      <dc:creator>Nabil Boussetta</dc:creator>
      <dc:date>2005-04-19T06:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Account is disabled - see Account Administrator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527686#M220926</link>
      <description>Nabil,&lt;BR /&gt;I would suspect either too many attempts were made to log on as root or the account was disabled due to a policy violation (password age etc.)&lt;BR /&gt;If you can not su from another user, you'll have to log on via the console and enable the account.&lt;BR /&gt;Also (0 points to 17 answers ):&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#34" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#34&lt;/A&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 19 Apr 2005 06:18:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527686#M220926</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-04-19T06:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Account is disabled - see Account Administrator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527687#M220927</link>
      <description>Hi Nabil,&lt;BR /&gt;&lt;BR /&gt;The problem is that your trusted system has disabled the root account due to one of the "rukes" being broken - such as:&lt;BR /&gt;&lt;BR /&gt;Too many unsuccessful tries&lt;BR /&gt;Too long inactivity&lt;BR /&gt;etc.&lt;BR /&gt;&lt;BR /&gt;Your only recourse is to log in as root from the *console* because even when root account is disabled console access will still be allowed.&lt;BR /&gt;Once in then run&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/modprpw -l -k root&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 19 Apr 2005 06:18:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527687#M220927</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2005-04-19T06:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Account is disabled - see Account Administrator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527688#M220928</link>
      <description>console login is also disabled</description>
      <pubDate>Tue, 19 Apr 2005 06:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527688#M220928</guid>
      <dc:creator>Nabil Boussetta</dc:creator>
      <dc:date>2005-04-19T06:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Account is disabled - see Account Administrator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527689#M220929</link>
      <description>Well - it shouldn't be - but if it is then the only other thing you can do is reboot into single-user mode, mount the filesystems - at least /usr &amp;amp; run the command I gave you earlier.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 19 Apr 2005 06:28:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527689#M220929</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2005-04-19T06:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Account is disabled - see Account Administrator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527690#M220930</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try if "su -" is working from any normal user. If not then you need to try some root equivalent user if you have created one. Check /etc/password through vipw and see if user_ID is set to Zero for some other user except root. Having login as that user you can change root password. &lt;BR /&gt;Another option is if your system in configurd for rlogin as root from some other system in your network. Having rlogin to this also you can change password.&lt;BR /&gt;&lt;BR /&gt;If none of the above help then you will have to reboot system in single user mode. At PDC give "hpux -is" and system will come to a prompt without password. Here you can change root password and can then reboot.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Tue, 19 Apr 2005 06:34:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527690#M220930</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-04-19T06:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Account is disabled - see Account Administrator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527691#M220931</link>
      <description>setup a simple sodoers so that only the SAs have root access via sudo if this situation happens again.&lt;BR /&gt;&lt;BR /&gt;prevents having to go to the console as well.</description>
      <pubDate>Tue, 19 Apr 2005 08:50:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527691#M220931</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-04-19T08:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Account is disabled - see Account Administrator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527692#M220932</link>
      <description>Lock down root access and give SA the ability to unlock accounts (including root).&lt;BR /&gt;&lt;BR /&gt;1) create unlock script (/usr/local/bin/unlock)&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;quitnice()&lt;BR /&gt;{&lt;BR /&gt;        # This function exits with a message, and confirmation.&lt;BR /&gt;        echo $MSG&lt;BR /&gt;        echo Command completed successfully&lt;BR /&gt;        echo "Press Enter to continue --&amp;gt; " ; read&lt;BR /&gt;        exit 0&lt;BR /&gt;}&lt;BR /&gt;viewlock()&lt;BR /&gt;{&lt;BR /&gt;        LOCKED=`/usr/lbin/getprpw -m alock,lockout $STRING|grep -e YES -e 1`&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# Read argument or get input:&lt;BR /&gt;if [ -z "$1" ] ; then&lt;BR /&gt;        echo "Please enter a username to unlock --&amp;gt; " ; read STRING&lt;BR /&gt;   else STRING=$1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# Parse argument:&lt;BR /&gt;if [ -z "$STRING" ] ; then&lt;BR /&gt;        MSG="Invalid argument" &amp;amp;&amp;amp; quitnice&lt;BR /&gt;   else viewlock&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# Unlock!&lt;BR /&gt;if [ -z "$LOCKED" ] ; then&lt;BR /&gt;        MSG="Account was not locked" &amp;amp;&amp;amp; quitnice&lt;BR /&gt;   else /usr/lbin/modprpw -m alock=NO $STRING&lt;BR /&gt;        /usr/lbin/modprpw -k $STRING&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# Check results&lt;BR /&gt;viewlock&lt;BR /&gt;if [ -z "$LOCKED" ] ; then&lt;BR /&gt;        MSG="Account was unlocked successfully" &amp;amp;&amp;amp; quitnice&lt;BR /&gt;else&lt;BR /&gt;        MSG="Account could not be unlocked" &amp;amp;&amp;amp; quitnice&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;# --------------------------&lt;BR /&gt;&lt;BR /&gt;2) edit sudoers&lt;BR /&gt;&lt;BR /&gt;$ visudo&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias      SYSADMIN = /bin/su -d - root, \&lt;BR /&gt;                           /usr/local/bin/unlock&lt;BR /&gt;&lt;BR /&gt;%sysadmin ALL= NOPASSWD: SYSADMIN&lt;BR /&gt;&lt;BR /&gt;# NOTE: replace 'sysadmin' with appropriate SA group name&lt;BR /&gt;&lt;BR /&gt;3) change permissions on su (BE CAREFUL!!)&lt;BR /&gt;&lt;BR /&gt;$ chown root:bin /bin/su&lt;BR /&gt;$ chown root:bin /usr/bin/su&lt;BR /&gt;$ chmod 4550 /bin/su&lt;BR /&gt;$ chmod 4550 /usr/bin/su&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To log in as root:&lt;BR /&gt;&lt;BR /&gt;$ sudo /bin/su -d - root&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To unlock account:&lt;BR /&gt;&lt;BR /&gt;$ sudo /usr/local/bin/unlock &lt;LOGIN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LOGIN&gt;</description>
      <pubDate>Tue, 19 Apr 2005 09:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/account-is-disabled-see-account-administrator/m-p/3527692#M220932</guid>
      <dc:creator>Joe Harrison_1</dc:creator>
      <dc:date>2005-04-19T09:23:19Z</dc:date>
    </item>
  </channel>
</rss>

