Date: Thu, 25 Sep 2003 09:12:07 -0500 From: "Micheal Patterson" <micheal@tsgincorporated.com> To: "FreeBSD" <freebsd-questions@freebsd.org>, "Bob Collins" <freebsd@anything-inc.com> Subject: Re: Limit login attempts (how do I do it) Message-ID: <032701c3836f$027e5c70$4df24243@tsgincorporated.com> References: <5.2.0.9.0.20030924170038.00ae2cf0@anything-inc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Bob Collins" <freebsd@anything-inc.com> To: "FreeBSD" <freebsd-questions@freebsd.org> Sent: Wednesday, September 24, 2003 4:11 PM Subject: Limit login attempts (how do I do it) > A NB question here. > > I am trying to limit the number of allowed login attempts against my > FreeBSD box. I cannot find anything for a limit to this other than; > login-retries=x in the /etc/login.conf. This does not seem to work with 5.0 > Release, which is what I am running. > > A nudge to the FM or Man Pages would be helpful. > > Thanks > Bob > To anyone else looking for this, here's how to change these settings. They're defined in login.c: #define TTYGRPNAME "tty" /* name of group to own ttys */ #define DEFAULT_BACKOFF 3 #define DEFAULT_RETRIES 10 #define DEFAULT_PROMPT "login: " #define DEFAULT_PASSWD_PROMPT "Password:" Unless there's another way to do this, change those variables as desired and recompile login. -- Micheal Patterson TSG Network Administration 405-917-0600 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?032701c3836f$027e5c70$4df24243>