Operating System - Linux
1753482 Members
4171 Online
108794 Solutions
New Discussion юеВ

User account locking after n number of failed logins

 
sacthivel.C
Frequent Advisor

User account locking after n number of failed logins

Dear All,
I was intimated to make changes in redhat linux (rhel 5) in such a way that the user has to be locked for a particular period of time after a particular number of failed login attempts.
But some users should be made exceptional.
Would somebody help me to configure this?

Waiting for reply.

Regards,

C.Sacthivel.
3 REPLIES 3
P Muralidhar Kini
Honored Contributor

Re: User account locking after n number of failed logins

Hi Sacthivel,

Check the following link for discussion on a similar requirement-
http://www.linuxquestions.org/questions/red-hat-31/preventing-account-lockout-in-rhel-5-x-753580/

Hope this helps.

Regards,
Murali
Let There Be Rock - AC/DC
sacthivel.C
Frequent Advisor

Re: User account locking after n number of failed logins

Hai,
I already googled and find this page. But exactly I don't know how to make authentications available for particular users.
For example I want to lock accouts for all users after 3 invalid attempts for 30 minutes except oracle user.

For achieving this what are all the files I have to edit and what are all the entries I have to add?

Please help me.

regards,

C.Sacthivel
Tim Nelson
Honored Contributor

Re: User account locking after n number of failed logins

The retry attempts setting exists (or id defaulted) in /etc/pam.d/system-auth, it is global.

I do not think you can set per user.