Really slow login... any ideas why?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Really slow login... any ideas why?
# 1  
Old 02-22-2007
Really slow login... any ideas why?

Hi,

Quick question, I'm messing about with a test box at work (system v)

Basically I telnet to the server.

Get the following :

SunOS 5.9

login: (my name)
Password: (my password)

Last login: Thu Feb..... yada yada

(At this stage it takes over a minute to come to display the below, and show unix prompt)

Sun Microsystems Inc. SunOS 5.9 .. yada
$


I think its related to my profile, any ideas why it takes soooo long to get to the prompt?


I'm using the standard profile below... just to get started... only it doesn't tell me if I have any new mail etc, which is strange. Smilie
(the user home dir is in /export/home/)

user is set up like below...

Login name: k****m In real life: Ke*** ****hie
Directory: /export/home/kennym Shell: /bin/sh
On since Feb 22 16:23:20 on pts/5 from 192.168.191.183
No unread mail
No Plan.


******************************************

# The profile that all logins get before using their own .profile.

trap "" 2 3
export LOGNAME PATH

if [ "$TERM" = "" ]
then
if /bin/i386
then
TERM=sun-color
else
TERM=sun
fi
export TERM
fi

# Login and -su shells get /etc/profile services.
# -rsh is given its environment in its .profile.

case "$0" in
-sh | -ksh | -jsh | -bash)

if [ ! -f .hushlogin ]
then
/usr/sbin/quota
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
/bin/cat -s /etc/motd
trap "" 2

/bin/mail -E
case $? in
0)
echo "You have new mail."
;;
2)
echo "You have mail."
;;
esac
fi
esac

umask 022
trap 2 3


***********************************
cheers.
# 2  
Old 02-22-2007
One possible cause could be a DNS reverse-lookup timeout problem. Try taking the "dns" lookup off the hosts: entry in /etc/nsswitch.conf leaving just this:

hosts: files

If that speeds up the login, then your DNS server doesn't have the IP address of the client from which your are telneting.
# 3  
Old 02-23-2007
No, tried that took as long as ever, response time did feel a little quicker.

But the original problem of it taking forever to boot up with my profile still exists.

I'm pretty sure its profile related, so I'm gonna play around with it today and see what could be causing that.

Thanks.
Smilie
# 4  
Old 02-23-2007
Login to the destination box and get a command line prompt. Then login again. During the delay, use ps to see what the new session is doing.
# 5  
Old 02-23-2007
thanks.

after using ps -ef I found it was /usr/sbin/quota which was causing the time delay.

removed it from /etc/profile and it went in straight away.

Smilie
# 6  
Old 02-23-2007
That eliminates the symptom but not the cause. On many systems, quota is invoked directly by the login program itself prior to starting the login shell. (But to be honest, I have done "chmod 0 /usr/bin/quota" sometimes).

What must be happening is that you have a filesystem which is NFS mounted and the NFS server is not responding. You need to look into that. Either get the server going again or remove the dead mounts. Any program, not just quota, could stumble into this. For example, I'll bet that "df -k" also takes a while.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Slow login with rexec.

Hi all, I´m replacing an old linux enterprise redhat 4.5 by a new one linux enterprise redhat 6. In both I use rexec as a communication between the front end and the user. In the old one, when the user connects, the communication establishes quickly (less than 3 sec). But in the new one, the... (1 Reply)
Discussion started by: mig28mx
1 Replies

2. AIX

RCP slow down and blocks login, telnet, rsh, etc on target server

Hello I have a LPAR AIX 6.1 on Power VM, Vio 2.2.3 and when I execute a rcp to this machine, I cant, simultaneosly, rlogin, telnet, rsh to this same LPARt. This commands stay hanged till the copy end, and Imeddiatlely the comand is executed (rlogin, telnet, rhs, etc). Someone can give me... (1 Reply)
Discussion started by: artur_dietrich
1 Replies

3. UNIX for Advanced & Expert Users

OEL 6.3 :Slow login due to /etc/ssh/sshd_config configuration

Version: Oracle Enterprise Linux 6.3 Running on VMWare Workstation When I login to my Linux VM from putty, the third line prompting for password comes only after few seconds. login as: root Access denied root@192.168.0.235's password: ---> It takes around 5 seconds to get this prompt I... (1 Reply)
Discussion started by: John K
1 Replies

4. UNIX and Linux Applications

Need ideas for graduation project based on unix or linux Need ideas for graduation project based on

Dear all, i am in last year of electronics department in engineering faculty i need suggestions for a graduation project based on unix or free bsd or linux and electronics "embedded linux " i think about embedded unix for example or device drivers please i need helps (1 Reply)
Discussion started by: MOHA-1
1 Replies

5. Solaris

Open Indiana 151a - Slow SSH Login

Hi, I have the following issue, when I tried to login to an Openindiana remote server through ssh It takes to long to ask me for the password. So i tried -v and I realize that sshd hangs here " debug1: SSH2_MSG_SERVICE_ACCEPT received " for at least 2 minutes. Then I can log in and everything is... (2 Replies)
Discussion started by: piukeman
2 Replies

6. Shell Programming and Scripting

Net::SSH::Perl slow to login.

I have some sample code that's supposed to ssh to another machine using Net::SSH::Perl, execute a command, and print the output of that command. It's very basic, and it works. However, I noticed that upon logging in: $ssh->login('username','password'); It takes roughly 10-13 seconds to... (2 Replies)
Discussion started by: mrwatkin
2 Replies

7. Solaris

Slow login via SSH

Hi Guys and Girls, I know this is a common question but I've searched and we've tried the suggestions without luck. When I log into the box via SSH from a windows machine I get a 1 min 20 sec delay. If we add my IP address and machine name to /etc/hosts then I get an instant login. I would be happy... (12 Replies)
Discussion started by: MikeKulls
12 Replies

8. Solaris

Slow Login

Hi All, I have problem when i write my user name to login to my server late (about 10 min) to give me field of password if u know how i can solve it? Thanks (4 Replies)
Discussion started by: mass1123
4 Replies

9. UNIX for Dummies Questions & Answers

Painfully Slow SSH login on Solaris box

Running open solaris on a e420 that I recently picked up. Having issues sshing to it from either of my Linux boxes as its very slow to login (from the solaris box to the linux box it connects just fine. Here is the output of ssh -vvv. I have hightlighted where it seems the slowdown is. Does... (0 Replies)
Discussion started by: creedog
0 Replies

10. Solaris

Solaris 9 slow login thru ssh & ftp

When I ssh to my box, an Ultra 5. I get prompted for password immediately. I enter it and have to wait sometimes a full minute for it to prompt for a password. The same thing happens when i try to ftp to the box, it will say connected, but it takes forever to prompt for password, and... (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
Login or Register to Ask a Question