Bug 1005 - installing openssh on AIX takes a long time when there are many users
Summary: installing openssh on AIX takes a long time when there are many users
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: 4.0p1
Hardware: All AIX
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks: 994
  Show dependency treegraph
 
Reported: 2005-03-29 15:58 AEST by David Leonard
Modified: 2006-10-07 11:39 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Leonard 2005-03-29 15:58:54 AEST
The post-install script of the AIX install uses something like 'lsusers ALL |
grep ssh' to see if the privsep user has been created.

The trouble is that invoking 'lsusers ALL' takes TWO HOURS to complete at a
particular site with thousands of users!

The simple fix to contrib/aix/buildbff.sh was:
225c225
<       if lsuser ALL | cut -f1 -d: | egrep '^'$SSH_PRIVSEP_USER'\$' >/dev/null
---
>       if lsuser "$SSH_PRIVSEP_USER" >/dev/null
Comment 1 Darren Tucker 2005-03-29 23:28:15 AEST
OK, I can see how that could be inconvenient :-)  Patch applied, thanks.
Comment 2 Darren Tucker 2006-10-07 11:39:25 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.