General
cancel
Showing results for 
Search instead for 
Did you mean: 

Logins hangs after autentication, uid/gid -> names problem.

 
ricardor_1
Frequent Advisor

Logins hangs after autentication, uid/gid -> names problem.

Hi there.

We have a 11.00 machine which is heavily used by telnet users (running legacy applications).

We have the following problem: The telnet session hangs after authentication, just after loading the users' profile.

I created a custom shell and it seems as if the session cannot map uid/gids to names:

#!/bin/sh
id -g (works

#!/bin/sh
id -gn (hangs).

The sessions hang on the mail or quota process. Also freezed are the cron forks.

Glance and vmstat show all processes blocked on SYSTM.

We do not use NFS-mounted homedirs or whatsoever.

authck, pwck, grpck does not give any clues.

Has anyone ever seen a situation like this?

Thanks you.




4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Logins hangs after autentication, uid/gid -> names problem.

Do you have a large /var/adm/wtmp* files?
How is your swapspace?
swapinfo -tam
ricardor_1
Frequent Advisor

Re: Logins hangs after autentication, uid/gid -> names problem.

Hi Dennis,

Thanks for your answer.

The wtmp and wtmpx files are not very large. wtmp was about 700mb, actually.

No swap exhaustion (this machine has a large dbc_max_pct).

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 0 1024 0% 0 - 1 /dev/vg00/lvol2
dev 1024 0 1024 0% 0 - 2 /dev/vg00/lvol13
dev 3072 0 3072 0% 0 - 0 /dev/vg00/swaplv
reserve - 411 -411
memory 4742 4742 0 100%
total 9862 5153 4709 52% - 0 -


ricardor_1
Frequent Advisor

Re: Logins hangs after autentication, uid/gid -> names problem.

It seems I found what the problem was.

The machine has audsys enabled, and the audit file has grown to 2GB in a filesystem formatted with nolargefiles.

Rotating the audaux file has unblocked all processes and it looks it solved the problem.

Strangely enough, every user connected via ssh had no problems at all.

[]s
Ricardo.

Highlighted
ricardor_1
Frequent Advisor

Re: Logins hangs after autentication, uid/gid -> names problem.

This is the first thread I found on ITRC where there's no NFS-mounted homedirs involved.

I hope this case will be useful to someone.