On Thu, 2004-09-02 at 07:40, Anders Johansson wrote:
On Thu, 2004-09-02 at 07:18 -0400, Dan Jones wrote:
On Thu, 2004-09-02 at 04:36, Anders Johansson wrote:
On Wed, 2004-09-01 at 18:53 -0400, Dan Jones wrote:
I'm running SuSE 9.1 Logging in is very slow. I'm not talking about X loading. Logging in prompts for a password. If I give an incorrect password, it takes about 2 or 3 seconds to tell me that. If I give a correct password, it takes literally 45 seconds to a minute to give me a command prompt. It doesn't matter where or how I'm logging in. Running 'su' from a shell gives the same delay. Running a program such as YaST, which requires the root password, gives the same delay. The delay occurs with either a normal user or root. It occurs with any shell (bash, zsh, csh, etc). I thought perhaps the issue might be with shadow passwords and so disabled them. No change. Any time I have to enter a password, there's a delay of close to a minute.
Any ideas or suggestions appreciated.
If you edit /etc/profile and put
set -x
as the first line, then when you log in on a text console each command bash executes will be printed before it is run. That way you'll be able to see exactly what happens and what takes so long
After doing this, there is the long pause while nothing appears on the screen, then about ten screens of output is dumped at once and I get my prompt.
So it takes a long time for bash to even start. If you run "bash -- login" from a prompt, does that take a long time too? Is there much
No. Almost instantaneous.
swapping going on on the system? Are things slow to start in general, or is it just logging in?
I have a gig of memory in the machine. There is no disk activity during the pause. The machine is quite snappy otherwise. It's only logging in.
What do you have in /etc/pam.d/login?
#%PAM-1.0 auth requisite pam_unix2.so nullok #set_secrpc auth required pam_securetty.so auth required pam_nologin.so #auth required pam_homecheck.so auth required pam_env.so auth required pam_mail.so account required pam_unix2.so password required pam_pwcheck.so nullok password required pam_unix2.so nullok use_first_pass use_authtok session required pam_unix2.so none # debug or trace session required pam_limits.so