Operating System - HP-UX
1830931 Members
2346 Online
110017 Solutions
New Discussion

root should be unlock automatically after getting lock

 
Viney Kumar
Regular Advisor

root should be unlock automatically after getting lock

Hi all

I have a trusted system. In which i want a set a policy that only my root user is automatically unlock after 15 min onces if it is locked

thanks
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: root should be unlock automatically after getting lock

Shalom,

http://docs.hp.com/en/B2355-60130/modprpw.1M.html

That command will do it.

You can't do it by policy.

You will have to write a script and run it every minute.

Use lastb to detect recent bad login and use modprpw to reset it.

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
Suraj K Sankari
Honored Contributor

Re: root should be unlock automatically after getting lock

Hi,

You can right a script for unlocking root and put into cron with 15 min intervel.


Suraj
OldSchool
Honored Contributor

Re: root should be unlock automatically after getting lock

or better yet, find out *why* its getting locked?
Sunny123_1
Esteemed Contributor

Re: root should be unlock automatically after getting lock

use modprpw -k root and set this command in crontab that will solve your problem
Sp4admin
Trusted Contributor

Re: root should be unlock automatically after getting lock

One would wonder why the users area getting locked in the first place. If you don't have a concern on why, then you can write a script using the "modprpw" command and put in a cron job as mentioned above.

sp,
OldSchool
Honored Contributor

Re: root should be unlock automatically after getting lock

and, of course, using cron every 15 minutes to do that means that the maximum time it is locked is 15 minutes, the minimum could be much less.

consider what would happen if the cronjob ran at 00,15,30 and 45 minutes, and the account locked at 14min 45 seconds after the hour.