Operating System - HP-UX
1825771 Members
2267 Online
109687 Solutions
New Discussion

Re: su lasts about 20 seconds

 
Klaus Basten
New Member

su lasts about 20 seconds

Hi,
I have the following problem. Each "switch user" command lasts very long (about 20 sec). An ftp connect lasts as long as a su command.
Apart from that strange behaviour the server is in a good condition. We don't have any performance problems.
We use a HP-UX B11.11 U 9000/800.
Is it a well known problem?
Kind regards

Walter Blug
8 REPLIES 8
Bharat Katkar
Honored Contributor

Re: su lasts about 20 seconds

Hi,

Looks like Name Resolutions issue.
Could you check your /etc/nsswitch.conf, /etc/hosts, server hostname and DNS configuration.

Regards,
Bharat
You need to know a lot to actually know how little you know
RAC_1
Honored Contributor

Re: su lasts about 20 seconds

I would check following.
1 patches

2 Profiles of individual users. and /etc/profile to check if there is any code that delays login process. You can run su with tusc and check where it takes long time.

tusc -vfp "su - "user"

get tusc here.
http://hpux.connect.org.uk

3 Does any of these users save .sh_history file on nfs mounts?? If yes, this could take time. to isolate the problem, point .sh_history to /tmp area and check.
HISTFILE=/tmp/.sh_history_${LOGNAME}
There is no substitute to HARDWORK
RAC_1
Honored Contributor

Re: su lasts about 20 seconds

One more important thing to check.
Name resolution. What you use /etc/hosts, dns or nis??
nslookup host_name
nslookup ip_address

Does it return ok??
There is no substitute to HARDWORK
Muthukumar_5
Honored Contributor

Re: su lasts about 20 seconds

Check points.

1) Is there any scripts in /etc/profile or $HOME/.profile files for execution?
2) Check hostname ->ipname resolvation
3) Post what is the su version you are using.?

i) what `which su`
ii) file `which su`

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: su lasts about 20 seconds

In your machine check this also,

# swlist -l file | grep -w su

post this information.

Other than normal thing, I am having like,

# PHCO_27781 1.0 su(1) cumulative patch
PHCO_27781.CORE-ENG-A-MAN: /usr/share/man/man1.Z/su.1
PHCO_27781.UX-CORE: /usr/bin/su

hth.
Easy to suggest when don't know about the problem!
Matti_Kurkela
Honored Contributor

Re: su lasts about 20 seconds

Ahh, an FTP server. If it gets a lot of connections, your /var/adm/wtmp (a binary logfile that registers login times) will grow quickly.

During login, the system walks through the wtmp file to find out your last login time. If the file is long, this will take a noticeable time.
The "su" command will do much the same actions as a login, thus it suffers from the same effect.
MK
Klaus Basten
New Member

Re: su lasts about 20 seconds

Thanks for your answers.
The problem was a uncorrect defined NIS.
Now it works fine.

Thanks indeed

Blug
Klaus Basten
New Member

Re: su lasts about 20 seconds

NIS configuration was wrong.