Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to write a perl script to lockuser account

Status
Not open for further replies.

llingf

Technical User
Oct 3, 2002
25
0
0
US
HI everyone:

I need some help to write a perl script that checks for
log file for 5 fail attempt login, lock user account and
send e-mail to alert the system administrator.
I never write script before and its very difficult to for me to learn in very short time period.

I thank you for any hints.

lin
 
Why perl? It is pretty difficult to learn for a beginner, and you could write this in normal shell scripts quite easily?

Have you tried to do anything yourself yet? It would be much easier for us to answer specific questions rather than just write the whole script for you.

Annihilannic.
 
Hi Annihilannic:
Thanks for replying. I tried use pam to lock the user account after 5 failed attempt for days and I can't get to work. Since the we use NIS+ for our solaris 7 computers, its nightmare to configure the nis+ with pam.
Does anyone has experience using PAM with nis+ ?

Thanks for any help.

Ling
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top