From owner-freebsd-questions Wed Apr 14 14: 3:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from k12-nis-2.bbn.com (K12-NIS-2.BBN.COM [128.89.6.195]) by hub.freebsd.org (Postfix) with ESMTP id A375015902 for ; Wed, 14 Apr 1999 14:03:52 -0700 (PDT) (envelope-from dm@k12-nis-2.bbn.com) Received: from k12-nis-2.bbn.com (dm@LOCALHOST.BBN.COM [127.0.0.1]) by k12-nis-2.bbn.com (8.9.0/8.9.0) with ESMTP id RAA05908; Wed, 14 Apr 1999 17:00:16 -0400 (EDT) Message-Id: <199904142100.RAA05908@k12-nis-2.bbn.com> To: Soren Harward Cc: freebsd-questions@freebsd.org Subject: Re: *really* slow login times In-reply-to: Your message of "Sat, 10 Apr 1999 23:44:09 EDT." <19990410234409.A1181@cinternet.net> Date: Wed, 14 Apr 1999 17:00:15 -0400 From: david mankins Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Date: Sat, 10 Apr 1999 23:44:09 -0400 From: Soren Harward 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