ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/Jul/Loading-large-password-files-into-NetInfo

This is Loading-large-password-files-into-NetInfo in view mode; [Up]


Date: Sun 10-Jul-1989 21:26:55 From: Unknown Subject: Loading large password files into NetInfo Thanks for your help concerning the question of loading large password files into NetInfo. Although I didn't hear from NeXT, I did get two helpful responses from jgreely@cis.ohio-state.edu (J Greely) and alg@wrath.cs.cornell.edu (Anne Louise Gockel). Basically, there were two main ways to avoid using niload for a large password file. 1. You should run ypserv. You can even skip loading the yellow pages database and it will access /etc/passwd but we decided that this would be too slow, especially for a 4500 entry password file. 2. You could use niutil to load the file in chunks. J Greely suggested this script: ----- cut here ----- #!/bin/sh awk -F: -f - $* <<\EOF | sh { printf("echo now creating user %s\n",$1); printf("niutil -create . /users/%s\n",$1); printf("niutil -createprop . /users/%s %s '%s'\n",$1,"passwd",$2); printf("niutil -createprop . /users/%s %s '%s'\n",$1,"uid",$3); printf("niutil -createprop . /users/%s %s '%s'\n",$1,"gid",$4); printf("niutil -createprop . /users/%s %s '%s'\n",$1,"realname",$5); printf("niutil -createprop . /users/%s %s '%s'\n",$1,"home",$6); printf("niutil -createprop . /users/%s %s '%s'\n",$1,"shell",$7); } EOF ----- cut here ----- Thanks again. ----------------------------------------------------------------------------- Michael Nowak ...mailrus!shogun!mike Workstation Consultant mike@shogun.cc.umich.edu U of M Computing Center User Services Mike_Nowak@um.cc.umich.edu ...working for but in no way representing the University of Michigan... >From: chari@nueces.UUCP (Christopher M. Whatley)

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.