LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   login time out issue just happen with non-root account (https://www.linuxquestions.org/questions/linux-server-73/login-time-out-issue-just-happen-with-non-root-account-896297/)

sunyc 08-09-2011 01:53 AM

login time out issue just happen with non-root account
 
Hi,

I have ubuntu 10.10 server.
Now when I login with non-root account,there always "login time out after 60 sec" error. But it will be ok when login use root account.
It left me upset for weeks. I'm open to any suggestions.
Thanks in advance!

Sun

p_s_shah 08-09-2011 02:38 AM

Input Required
 
Please check if below helps:
Link:
http://www.novell.com/support/search...eID=DT_TID_1_1
Quote:

The Bource Again Shell (/bin/bash) and Korn shell (/bin/ksh) provide an environment variable called TMOUT to specify an amount of seconds after which the connection is closed automatically due to inactivity:
Else provide below inputs:

When do you get error message?
Which Shell you are using?
Can you copy /etc/profile file?

sunyc 08-09-2011 04:42 AM

many thanks for reply.
I got error message when login locally.
The Shell is bash and it's blank now.

Here's the /etc/profile file:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi

if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi

umask 022


All times are GMT -5. The time now is 02:49 PM.