I don't know if this is what you want to do or not, but look into the
lastb command. I am not on linux now so I am not sure of the exact
command, but if I remember correctly if the file btmp exists in
your /var/log directory the system will automatically fill it with
the failed logins. The command lastb reads this log file.
Again I am not exactly sure about the file you have to create, but
the man page should tell you (if I remember correctly so does the
lastb command if the file it requires does not exist).
HTH,
Chad
> Doesn't it also put them in /var/log/secure?
>
> [EMAIL PROTECTED] wrote:
> >
> > How can I write bad login attempts to a file ?
> > I know they exists /var/log/messages.
> > I want them in a seperate file.
> > how can I do this ?
> > larry mintz<[EMAIL PROTECTED]>
> >
> > _______________________________________________
> > Redhat-list mailing list
> > [EMAIL PROTECTED]
> > https://listman.redhat.com/mailman/listinfo/redhat-list
>
> --
> ---------------------
> Steve Dixon
> Dpn, Incorporated
> System Administrator
> Phone - 702.873.3282
> Email - [EMAIL PROTECTED]
> ---------------------
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
--
Is your email secure? http://www.pop3now.com
(c) 1998-2000 secureFront Technologies, Inc. All rights reserved.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list