slow useradd on solaris 2.6

Many thanks to:

James Wendling <jbwendl@bnpcn.com>

Jim McVey <jmcvey@nhgri.nih.gov>

Rik Schneider <rik@netasset.com>

Rick Lantaigne <Rick.Lantaigne.lantaign@nt.com>

The solution was to install patch 105397-02.

The original question was:

> Recently I upgraded one of our servers from Solaris 2.5.1 to Solaris

> 2.6. After upgrading useradd command become very slow. It takes up

> to 10 minutes to add a single user on an almost idle Ultra Enterprise

> 3000.

>

> It seems that useradd calls passmgmt program which copies passwd and

> shadow files into ptmp and stmp, and this coping takes ages to finish.

>

> Passwd and shadow files have more than 10000 entries. All recommended

> patches are installed on the system. Nscd daemon is running with

> default configuration.

>

> Does anybody else have this problem, and is there any other solution

> other than writing my own useradd program or waiting for patches

> (assuming problem is not cosed by me misconfiguring something)?


--
Aleksandar Milivojevi? | alex@srce.hr | http://jagor.srce.hr/~alex/
Opinions expressed herein are my own.
================================ooooO=Ooooo==============================
Real Users never know what they want, but they always know when your
program doesn't deliver it.

[2465 byte] By [CodeProf.com] at [2007-12-25 11:33:00]