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.
On Wed, Sep 01, 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.
This normally means you have problems with DNS lookup or other, similar network problems. On function tries to connect to a network service and waits for the timeout. Thorsten -- Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de SuSE Linux AG Maxfeldstr. 5 D-90409 Nuernberg -------------------------------------------------------------------- Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B
On Thu, 2004-09-02 at 04:14, Thorsten Kukuk wrote:
On Wed, Sep 01, 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.
This normally means you have problems with DNS lookup or other, similar network problems. On function tries to connect to a network service and waits for the timeout.
You were headed in the right direction. Turns out that I had somehow enabled LDAP. Turning it off fixed the problem.
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
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.
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 swapping going on on the system? Are things slow to start in general, or is it just logging in? What do you have in /etc/pam.d/login?
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
Dan wrote regarding '[SLE] Login delay' on Wed, Sep 01 at 17:52:
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.
I've had that problem recently due to about 6000 messages sitting in my inbox, though if it's taking forever for a shell to even launch, that isn't likely to be the problem... --Danny, thinking that's worth looking into, anyway
On Thu, 2004-09-02 at 09:33, Danny Sauer wrote:
Dan wrote regarding '[SLE] Login delay' on Wed, Sep 01 at 17:52:
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.
I've had that problem recently due to about 6000 messages sitting in my inbox, though if it's taking forever for a shell to even launch, that isn't likely to be the problem...
--Danny, thinking that's worth looking into, anyway
Thanks for the reply, but it does it for all users, including root or a brand new user just created for test purposes.
participants (4)
-
Anders Johansson
-
Dan Jones
-
Danny Sauer
-
Thorsten Kukuk