Operating System - HP-UX
1837386 Members
3001 Online
110116 Solutions
New Discussion

"connection closed" message after login

 
SOLVED
Go to solution
trystan macdonald
Occasional Advisor

"connection closed" message after login

Hi,

I have a user who is thrown out straight after logging in. I have checke /etc/passwd and all looks well. This is a 10.20 machine.

Has anyone seen this before?

Thanks,
Trystan.
11 REPLIES 11
T G Manikandan
Honored Contributor

Re: "connection closed" message after login

check the initialization file of the user.

.profile for sh and ksh
.login and .cshrc for csh

whether anything like exit or logout is there.
Also check the /etc/profile file of /etc/csh.login file whether there is any script like for restricting the number of user logins.

Thanks
Christopher McCray_1
Honored Contributor

Re: "connection closed" message after login

hello,

What shell is listed for his entry?

Look in the user's .profile (.cshrc) for an "exit 0" or "exit 1" or so forth.

Check that ther is a .profile or .cshrc, .login.

Hope this helps

Chris
It wasn't me!!!!
U.SivaKumar_2
Honored Contributor
Solution

Re: "connection closed" message after login

Hi,

As root do this
#cd /home/thatuser/
#cp /dev/null .sh_history

regards,
U.SivaKumar
Innovations are made when conventions are broken
T G Manikandan
Honored Contributor

Re: "connection closed" message after login

This could also be for the number of telnet sessions reached its maximum.

You can check the current value of nstrpty on the kernel.


ALso check the number of telnet sessions.
#w|wc -l
should give you the number of telnet sessions.

If they are equal then must increase the value of nstrpty in your kernel.


Thanks




U.SivaKumar_2
Honored Contributor

Re: "connection closed" message after login

Hi,

As root do this
#cd /home/thatuser/
#cp /dev/null .sh_history
#cp .profile .profile.bak
#cp /etc/profile .profile
#chmod +x .profile
#chown thatuser .profile

regards,
U.SivaKumar
Innovations are made when conventions are broken
trystan macdonald
Occasional Advisor

Re: "connection closed" message after login

We are using .profile (ksh) and when the user logs in, it gets as far as "checking disk quotas" and then the connection is closed.

If I log in as another user and then "su - username" then I get the follopwing message: Memory fault.
T G Manikandan
Honored Contributor

Re: "connection closed" message after login

Just check the /var/adm/syslog/syslog.log file for the errors which can tell you the real reason

Revert
Robert-Jan Goossens
Honored Contributor

Re: "connection closed" message after login

Hi Trystan,

Check quota's for user.

# quota -v username

Think he reached his hard limit.

Kind regards,

Robert-Jan.
Paul Sperry
Honored Contributor

Re: "connection closed" message after login

Go into sam
Accounts for Users adn Groups
Users
High light user
Actions ==> Modify Security Policies
General User Account Policies...
Jeff Schussele
Honored Contributor

Re: "connection closed" message after login

Hi Trystan,

There's probably a command in that users .profile that's kicking out that memory fault error. Is it creating a core file in the user's home dir?
If so run the file command against it to determine what's causing the core dump.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Chris Vail
Honored Contributor

Re: "connection closed" message after login

Try commenting out the quotas command in the .profile. This probably means the user is over quota.




Chris