1847528 Members
3241 Online
110265 Solutions
New Discussion

Login takes long time

 
sreekanthtm
Trusted Contributor

Login takes long time

Hi,
Its taking a long time (2min) to login to my server as a perticular user. Iam able to login as root and monitor the system performance, and it seems ok. But in a telnet session if I am giving the user name 'user' its tooks 2min to prompt for passwd. Then another 2 min to come to shell prompt. Whats the issue?
10 REPLIES 10
Suraj K Sankari
Honored Contributor

Re: Login takes long time

Hi sreekanthtm,
Are the user trying from remote location, if yes then chech the network or from same location you can login into root? if you can login into root with no issue then please check user .profile
if the problem presist then restert u r network and try.
Suraj
sreekanthtm
Trusted Contributor

Re: Login takes long time

Iam not trying to login frm a remote location. Then I may have to check the .profile file. And there is no issue in .profile file.
I have copied the /home/user/.profile to another user's home directory, its working fine.
MarkSyder
Honored Contributor

Re: Login takes long time

Is this user an NIS user? IF so, it may be a network problem.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Suraj K Sankari
Honored Contributor

Re: Login takes long time

Hi sreekanthtm,

I have one doubt here, are you tried with other normal user, are they also taking long time ?

Suraj
Bill Hassell
Honored Contributor

Re: Login takes long time

This is very likely due to DNS timeouts. Each DNS server listed in /etc/resolv.conf will take up to 30 seconds to timeout when an incoming computer cannot be found by IP address. This is a security check (about all that telnet can do) to see that the connection is OK. The fix can be done two ways:

1. Add the user's IP address to /etc/hosts and change /etc/nsswitch.conf to use files then dns.

2. Get your DNS administrators to provide reverse lookup (given IP then return hostname). Most Windowze DNS setups forget this part.


Bill Hassell, sysadmin
Vishu
Trusted Contributor

Re: Login takes long time

Hi,
the best way to check it that you log in with the root/any other user in a telnet session. and then check, if it is taking the same long time then you better check your network.
else the problem simply lies in the script files of your user.

sreekanthtm
Trusted Contributor

Re: Login takes long time

Hi All,
The /etc/resolv.conf contains two entries

nameserver 16.110.135.52
nameserver 16.110.135.51

And /etc/nsswitch.conf contains as follows,

hosts: files [NOTFOUND=continue TRYAGAIN=continue] dns

nslookup is working fine, both IP and hostname resolution is happening.
Even I tried to edit the /etc/hosts file also. Still the problem exists.

I tried with another normal user, That is also having the same issue. Only root user is working fine.

Ganesan R
Honored Contributor

Re: Login takes long time

Hi,

It can be a DNS reverse lookup issue, if it is taking long time to give the login prompt.

But in this case, the delay is after the login prompt. Please confirm you have trying with local users or NIS users..

Thanks
Best wishes,

Ganesh.
sreekanthtm
Trusted Contributor

Re: Login takes long time

Hi All,

I was not able to find the problem.
Being its not a production server I have reboot the server, and now its working fine........ Thanks to everybody, who has respond to this query.

Rgds
Sreekanth
sreekanthtm
Trusted Contributor

Re: Login takes long time

Thanks....