home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- Path: sparky!uunet!cs.utexas.edu!geraldo.cc.utexas.edu!portal.austin.ibm.com!awdprime.austin.ibm.com!cia.austin.ibm.com!mwiz
- From: mwiz@cia.austin.ibm.com (Marc Wiz)
- Subject: Re: Can password file be split up?
- Sender: news@austin.ibm.com (News id)
- Message-ID: <C1Fo5J.13n1@austin.ibm.com>
- Date: Mon, 25 Jan 1993 23:34:31 GMT
- Distribution: usa
- References: <44001@sdcc12.ucsd.edu>
- Organization: IBM, Austin
- Keywords: passwd
- Lines: 32
-
- In article <44001@sdcc12.ucsd.edu> zz1bb@impending.ucsd.edu (Barry Brown) writes:
- >On one of our systems here, there are over 3000 entries in the passwd file.
- >Every time a user wants to make a change to it (chfn, passwd, chsh), the
- >file must be locked so the user has exclusive write access to it in order to
- >make the change. With lots of people trying to do this all time, changing
- >one's password can take an HOUR! First the user has to wait for a file
- >lock, then the file has to be changed. The first part takes up most of the
- >time. The situation is aggravated in the morning when the accouting
- >programs take their tallies and turn off access for users who have exceeded
- >their time quotas.
- >
- >Is there a way to split the passwd file into smaller chunks so it can be
- >more managable? For example, all users with 0 < UID < 500 would be in one
- >passwd files, all users with 501 < UID < 1000 would be in another, etc.
- >This would reduce the lock and write times on the passwd file tremendously,
- >I imagine.
- >
-
- You might want to consider a way of speeding up accesses by using dbm files
- like some commercial versions of Unix use. That way you would only have to
- lock the one record.
-
- IMHO this is one the problems with the traditional method of Unix password
- file management. (Or other files as well) it doesn't work well with large
- number of entries.
-
- Marc
-
- mwiz@austin.ibm.com
- (512)823-9330
- I type only for myself.
- Yes, that really is my last name.
-