From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,699b74a173da2862 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-05 15:57:01 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!ncar!csn!boulder!quit.Colorado.EDU!scarboro From: scarboro@quit.Colorado.EDU (Jeff Scarborough) Newsgroups: comp.unix.osf.osf1 Subject: Re: OSF/1 3.0 Prot. Password Encryption Date: 5 Oct 1994 18:42:37 GMT Organization: University of Colorado at Boulder Message-ID: <36us2t$lb7@CUBoulder.Colorado.EDU> References: <36bsmq$37n@portal.gmu.edu> NNTP-Posting-Host: quit.colorado.edu X-Newsreader: TIN [version 1.2 PL2] Richard L Jackson Jr (rjackson@mason1.gmu.edu) wrote: : I have a DEC 2100/A500MP running OSF/1 3.0 with Enhanced Security : enabled. We generate from 5 to 600 accounts a day on the system. Therefore, : the GUI XIsso and XSysAdmin tools must be replaced with an automated : Account Management System. We did the same thing on our ULTRIX box. My : problem is the encrypted pw, generated via crypt(), for the protected password : database appears to fail for passwords that are over 8 characters. The : limited documentation in the man pages and /usr/include/*.h files : indicate the encrypted password is generated in segments. WHAT IS THE : ACTUAL SCHEME DEC USES? : ps. XIsso and XSysAdmin are slow. I have not determined if it is a problem : with the clients and/or server. : ps2. It sure would be nice if the hashed index /etc/passwd file could : have entries added without being totally rebuilt. For a small user base, : rebuilding the passwd database presents only a small problem. However, : a database with 14,000 users takes a minute or so to rebuild. This causes : problems with email and other normal system functions. 1) The getpw* routines : should be enhanced to suspend requests if the database is being modified. : 2) permit updates to the database without having to totally rebuild. : Unfortunately, I am forced to disable login and sendmail while rebuilding : the passwd database via mkpasswd. : Regards, : Richard Jackson : George Mason University The first question has already been answered. The second is yes you can update the dbm files without rebuilding the whole thing. In fact the passwd command does do this (not for passwords if you are running c2 but for gecos and shell). I looked at the npasswd code to figure out how and modified it slightly. I added some stuff to take care of AIX's lack of a comment field and added a delete routine. If you want the code I have let me know and I will mail it to you. You can also get around having to disable login's and sendmail by building the hashed file on ptmp and moving it into place. -- Jeff Scarborough Jeff.Scarborough@Colorado.EDU University of Colorado Computing & Network Services Campus Box 455 Boulder, Colorado 80309-0455