Operating System - HP-UX
1748269 Members
3631 Online
108760 Solutions
New Discussion юеВ

Re: wrong password attempt

 
SOLVED
Go to solution
sprakash1980
Occasional Advisor

wrong password attempt

Hi,

How do i set the wrong password attempt in Unix.I would like to block the user ID if they wrongly type password 3 times.And how do i able to enable it again.Sorry im new to UNIX
4 REPLIES 4
vishnu.khandare
Respected Contributor
Solution

Re: wrong password attempt

Hi Prakash,
Yes u can restrict user to login after 3 wrong attempt of login and make it unlock also.
Please edit the file /etc/default/security
set the options as you want.
U can also set password length,password expiry, and many more.
To unlock the user,
#/usr/lbin/getprpw username
this is check
#/usr/lbin/modprpw -k username
to unlock the account.

Hope this solves ur query.
Don't forget to assign points.

Regards
Vishnu Khandare
You should deserve before U desire!!!!
sprakash1980
Occasional Advisor

Re: wrong password attempt

Hi Vishnu,

Thanks for your valuable help...how do i edit the File..what command to use to start edit the file.Appreciate your help.

Re: wrong password attempt

Hi,

You can do it using command line and sam.

command line.

/usr/lbin/modprdef -m umaxlntr=9

and you can verify using command

/usr/lbin/getprdef -m umaxlntr

through sam.

sam>>Auditing and Security>>System Security Policies>> Terminal Security Policies... >>
Use this screen to set system policies for
terminals. Policies apply to all terminal
unless terminal-specific policies are set.

Unsuccessful Login Tries Allowed: 50

Delay Between Login Tries (sec.): 2

Login Timeout Value (sec.): 0
├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в
[ OK ] [ Cancel ] [ Help ]

Chandra
vishnu.khandare
Respected Contributor

Re: wrong password attempt

Hi Prakash,

Thanks for appreciating help n giving points.
Yes do vi /etc/default/security and set the values of parameters as u required.
From previous reply u can do it from command line and thru SAM also.


Hope this solves ur query.

Regards
Vishnu Khandare
You should deserve before U desire!!!!