Login takes 44secs to 50secs


 
Thread Tools Search this Thread
Operating Systems Solaris Login takes 44secs to 50secs
# 8  
Old 09-28-2011
Run this from your home directory after you log in:

Code:
touch .hushlogin

Try logging in again.

The default login process is to run a quota check for space usage against all files systems. If the server you're logging into has a lot of file systems - especially NFS-mounted file systems - that can take a while.

Usually creating a ".hushlogin" file in your home directory will disable the quota checks.

If that doesn't work, you really need root access to definitively locate the issue.

Find the "parent" sshd daemon, then as root run truss against it:

Code:
 truss -f -a -vall -l -d -o /some/SECURE/output/file -p SSHD_PID

Make SURE the output file you select is secure - it will have your password embedded in it if you use password authentication. And that of everyone else who logs in while the truss process is running.

While that's running, log in, log out, kill the truss process, and look into the output. You'll see all the system calls made by the original sshd daemon, along with all the child processes fork()'d off. Somewhere in there, you'll see some long delays. Whatever is taking long to do, that's where your delay is.
# 9  
Old 09-28-2011
bash-3.00$ less /etc/defaultrouter 192.168.2.333


There's yer problem.
# 10  
Old 09-29-2011
i had the similar issue on one of my server. Was related to a DNS misconfiguration.
take very long to connect (estabilish a connection to the host) and also to login!

my suggestion is to recheck your dns configuration.

is there a sapce or tab (are not allowed) after "domain macau.com" in your resolv.conf file?

or what you can try is to save the hostname and ip of your remote server in your /etc/hosts file. If it's faster than you have a problem in you dns config!!
# 11  
Old 09-30-2011
Hi sbk1972, tommyk, echenle, beta17,

I combined all your approach it works well, I’m really impressed. Salute you guys. Many thanks.

Regards,
FSP
# 12  
Old 09-30-2011
and what exactly solved your issue? :-)
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to takes the missing files?

Hi all , am using unix aix I have a files in one directory.. my files as in format qqss0607.ddd.. (06 is date 07 is month) how to check the missing dates .... can anyone tell me... (9 Replies)
Discussion started by: Venkatesh1
9 Replies

2. Shell Programming and Scripting

How to takes missing files

Hi Am using unix aix I have a group of files in File1 For ex:- Vi file1 A0405 A0605 A0805 When i tried using awk command am getting an error as No space a=`awk 'NF < 1 {next;} p && p != $1 { for( i = p; i < $1; i++ )print i; } {p = $1 + 1 }' file2` Error message:- + + awk NF <... (7 Replies)
Discussion started by: Venkatesh1
7 Replies

3. Red Hat

Login to server takes time

When I am trying to login to a server using Putty ssh from my windows xp machine it is taking too much time for login. My server name is http2 and when I enter this address into putty I immediately get login as: screen, but after I put my username root and enter the cursor moves downwards... (14 Replies)
Discussion started by: abhilashkrishn
14 Replies

4. Linux

it takes long time to login on server

Hi, I am trying to login using ssh on Red Hat Linux 5 server, The password appears immediately but after I enter the password it takes about 90 seconds to login completely. Please suggest what changes require? Regards, Manoj (4 Replies)
Discussion started by: manoj.solaris
4 Replies

5. Cybersecurity

APACHE: Tie in Web Page login with server login

Hello, I have created a web page on a server using apache and added .htaccess and .htpasswd in the folder for authentification. I was wondering if there was anyway to tie-in the login for this page with the login used to logon to the server. i.e. the same login info. is used for both, when... (1 Reply)
Discussion started by: WhotheWhat
1 Replies

6. Shell Programming and Scripting

script takes params

i want to write a shell script that can be run as ./deployPortal.sh -version 5.1.2 -portlet -exportall how can i do that? version param is required. bu the others are optional. in first step i only want to read 5.1.2, is portlet selected ? and is exportall selected ?? can you... (2 Replies)
Discussion started by: keromotti
2 Replies

7. UNIX for Advanced & Expert Users

Login Process takes longer

Hello. Since Yesterday, I notice that after giving telnet IP or SSH IP - it takes long time to display login: , I mean earlier after entering Server name It used to immediately ask for login ID and then password. But, now it takes min of 2-3 minute to ask for password. Where can I check,... (12 Replies)
Discussion started by: panchpan
12 Replies

8. News, Links, Events and Announcements

SCO takes one in the pants...

I know this may be in the wrong forum but it will be seen more often here... WOW!! Someone is really mad at SCO regarding their latest attempt to push around the free Linux world... But seems someone did the old rockem sockem to SCO!! ... (6 Replies)
Discussion started by: Kelam_Magnus
6 Replies
Login or Register to Ask a Question