Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 1999 17:00:15 -0400
From:      david mankins <dm@k12-nis-2.bbn.com>
To:        Soren Harward <soren@cinternet.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: *really* slow login times 
Message-ID:  <199904142100.RAA05908@k12-nis-2.bbn.com>
In-Reply-To: Your message of "Sat, 10 Apr 1999 23:44:09 EDT." <19990410234409.A1181@cinternet.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
   
   Date: Sat, 10 Apr 1999 23:44:09 -0400
   From: Soren Harward <soren@cinternet.net>
   
   I just installed FreeBSD 3.1 on my K6-2 300 a few days ago, and I've been
   having a small problem with the login procedure.  If I reboot the system
   clean, then I can log in with no problems.  But after about 24 hours or
   so, the login starts taking a *very* long time (more than 10 minutes)
   to find my username and ask me for my password.  Any idea what's going
   on?  I think it may have something to do with corruption of my
   /etc/group file.  Could someone send me a copy of a clean one?
   
Having succeeded in logging in, after ten minutes or more of waiting,
are other things slow?

Having logged in (twice), try this (as root):

	ktrace -dgi login

is *that* slow?

If it is, we're close to getting more clues.  On the other terminal
kill -9 the login (not the ktrace) process.  Then run kdump to see
what system call login was doing when it was killed.  Then figure out
why *that* was slow.  (Note, when login starts up, it closes all
256-or-so file descriptors, even if they aren't open.  That's not an
infinite loop.)

Another option is to compile login with debugging symbols, and (from
another logged-in terminal) attach to the login process with a
debugger and watch what happens as you log in slowly.

Another possibility is that it isn't login that's slow, it's getty.
On the console (and any physical terminals) it is getty that prints
the first login prompt you see.  It collects your name and then
invokes ``login your-user-name'' to collect a password.  If login
isn't satisfied with your password, it loops.

Is it the *first* password: prompt that is slow in coming, or, if you
type a bogus password, are subsequent password: prompts slow?



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904142100.RAA05908>