Operating System - HP-UX
1826290 Members
4520 Online
109692 Solutions
New Discussion

Root behaviour changed after using modprpw - k root

 
Asim Azhar
Occasional Contributor

Root behaviour changed after using modprpw - k root

Basically my root account was locked and i started my hpux server in single user mode and execute this command modprpw - k root and reboot system and access it with old password,but its behaviour is changed now it is not disabling root after 3 wrong attempts and whenever i create new user it does'nt ask to enter password for that user and it assign default password to this user.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Root behaviour changed after using modprpw - k root

Shalom,

You could have a script disabling the root password.

The command you used should have worked.

When I am forced to take a system to single user mode I run a simple passwd command.

Note also that a console root login is supposed to reset a locked root password.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Brian A. Scurlock_1
Frequent Advisor

Re: Root behaviour changed after using modprpw - k root

run /usr/lbin/getprpw root
the last field will be the lockout code/reason with an unlocked account = to all zeros e.g.:

lockout=0000000

If any position 1-7 is = to 1, the account will was locked for the following reason:
(man getprpw)
Position 1
past password lifetime
Position 2
past last login time (inactive account)
Position 3
past absolute account lifetime
Position 4
exceeded unsuccessful login attempts
Position 5
password required and a null password
Position 6
admin lock
Position 7
password is a *

This will help you isolate the reason/cause of the locked account, a login to the console should override the lock.
-Brian

You can do anything you set your mind to when you have vision, determination, and an endless supply of expendable labor.
Robert Fritz
Regular Advisor

Re: Root behaviour changed after using modprpw - k root

If you don't see "/tcb" then you aren't in trusted mode anymore.... that could change the behavior.... which in standard/shadow is driven with /etc/default/security AUTH_MAXTRIES (and if SMSE is installed... you can set per-user values with userdbset)

If you still are in trusted ... use getprdef and get /usr/lbin/getprpw to check the settings for the variable umaxlntr

Those Who Would Sacrifice Liberty for Security Deserve Neither." - Benjamin Franklin