The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Number of login attempts on solaris 10 manoj.solaris SUN Solaris 2 08-11-2007 01:06 PM
Denying IPaddress for Multiple Failed Login Attempts metzgerh AIX 1 12-13-2006 04:13 PM
invalid login attempts... mr_manny SUN Solaris 6 12-01-2005 02:10 PM
freebsd auto login user at boot / i'm stuck termiEEE UNIX for Dummies Questions & Answers 6 02-26-2004 01:18 PM
Maximum 3 login attempts champion UNIX for Advanced & Expert Users 2 01-16-2003 09:17 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 01-02-2007
Keith Johnson Keith Johnson is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 10
Cool AIX; Auto clearing of 'too many invalid login attempts by user'

Does anyone have a good script / cron job that handles this?

I have looked in smit and see it is clearing this count with:
chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s '{userid}'

However when I looked around to find ways to automate this I have not found an easy solution.

I know that the file …/lastlog is a text file however I am not good at stanza filtering. Thus do not know who has hit the limit to pass to the chsec command.


user1:
time_last_login = 1167758143
tty_last_login = /dev/pts/2
host_last_login = joe.somewhere.com
unsuccessful_login_count = 2
time_last_unsuccessful_login = 1166659165
tty_last_unsuccessful_login = /dev/pts/4
host_last_unsuccessful_login = joe.somewhere.com

user2:
time_last_unsuccessful_login = 1166735510
tty_last_unsuccessful_login = /dev/pts/0
host_last_unsuccessful_login = jane.somewhere.com
unsuccessful_login_count = 5
time_last_login = 1166738412

any help would be great. -KJ
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0