Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shogun!mike From: mike@shogun.cc.umich.edu (Michael Nowak) Newsgroups: comp.sys.next Subject: Using /etc/passwd and /etc/group while still using NetInfo Message-ID: <1140@mailrus.cc.umich.edu> Date: 17 Jul 89 18:59:04 GMT Sender: usenet@mailrus.cc.umich.edu Reply-To: mike@shogun.us.cc.umich.edu () Organization: University of Michigan Computing Center, Ann Arbor Lines: 42 UUCP-Path: mailrus!shogun!mike Thanks to Anne Louise Gockel (alg@wrath.cs.cornell.edu), we've figured out how to use /etc/passwd while still using NetInfo. This procedure also works for /etc/group (the NetInfo database is groups). The original impetus for this was to solve the problem of using large password files with NetInfo. People have reported problems loading large password files using niload. This may help to solve the problem. Note that doing this will not effect Yellow Pages operation if /etc/passwd and /etc/group still end with a '+'. 1. Become root on the NeXT and open a Shell. 2. List the current /users database: nitul -list . /users 3. Destroy all the entries for the database using: niutil -destory . /users/xxx where xxx is a user name. You might also try to do this with a script. My awk skills are pretty limited but something like: #!/bin/sh for i in `niutil -list . /users | awk '{print $2}'`; do niutil -destroy . /users/$i done 4. Destroy the users database using: niutil -destroy . /users 5. Now, as far as I can tell, the system will look to /etc/passwd for user information. ----------------------------------------------------------------------------- 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...