LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 10-24-2008, 05:48 AM   #1
skokul
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Rep: Reputation: 0
Question pam_tally --> deny doesnt seem to work when magic_root


Hello LQ,

As per the RHEL 5.2, help on pam_tally says;

magic_root
If the module is invoked by a user with uid=0 the counter is not incremented. The sys-admin should use this for user launched services, like su, otherwise this argument should be omitted.

But, its not working as expected...

auth required pam_tally.so onerr=fail per_user deny=3 magic_root
account required pam_tally.so magic_root

The /var/log/faillog doesnt get updated.

Inturn, it works fine if I give no_magic_root or if I remove magic_root.

auth required pam_tally.so onerr=fail per_user deny=3 no_magic_root
account required pam_tally.so no_magic_root

or

auth required pam_tally.so onerr=fail per_user deny=3
account required pam_tally.so

Now, faillog gets updated and also the account gets locked after 3 failed login attempts...

I am afraid, if this would 'lock' -> "root" also.
So I tested to check, if root gets locked after 3 failed login attempts
and indeed I was puzzled to see "root" alone is not "lockedout" after even 15 failed login attempts...

I am confused.. with this...

Is this behaviour ...? Can I trust this... against DOS attacks...

Any help would be much helpful !!!

Thanks & Regards
KoKul
 
  


Reply

Tags
lockout


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sshd host allow/deny doesn't work Torquemalex Linux - Security 2 08-25-2008 03:23 PM
hosts.deny doesn't seem to work xpucto Linux - Security 10 11-20-2006 07:03 PM
pam_tally doesn't work when a password change is required jyoung4 Linux - Security 0 06-15-2006 05:38 PM
Why doesnt my USB mouse doesnt work? barkha Linux - Hardware 2 08-16-2005 11:31 AM
pam_tally - Red Hat 9 - Does it work? terminaljunkie Linux - Security 2 06-10-2003 08:21 AM


All times are GMT -5. The time now is 01:59 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration