From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,949810b5859ed72a X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,949810b5859ed72a X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-03-09 12:56:00 PST Xref: gmd.de comp.unix.osf.osf1:2477 comp.unix.osf.misc:1052 Path: gmd.de!newsserver.jvnc.net!yale.edu!yale!zip.eecs.umich.edu!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!cs.utexas.edu!geraldo.cc.utexas.edu!emx.cc.utexas.edu!not-for-mail From: clyde@bambi.cc.utexas.edu (Clyde W. Hoover) Newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc Subject: Re: Easy Changing of NIS Passwords by ROOT Date: 9 Mar 1994 14:56:00 -0600 Organization: Moose & Squirrel Software Distribution: inet Message-ID: <2lld50INNn8h@emx.cc.utexas.edu> References: <2l5jk4$1a12@thebes.cc.waikato.ac.nz> NNTP-Posting-Host: emx.cc.utexas.edu > I have a group of ALpha OSF/1 machines here running NIS for sharing the > passwd and group files, and need an easy way of having root change the > users passwords when they forget them. There are over 5000 users in the > passwd file, so doing a makedbm on it takes a long time, so zeroing out > the passwd entry, doing a make, and then a yppasswd(1) to actuallly change > the entry takes too much time. Has anyone written or seen anything that > will let root change the yppasswd entry without knowing the old passwd? 1. There is NO WAY to change a password using the RPC interface (used by yppasswd), without knowing the current password. That's just how the RPC interface works. No way around it. 2. If you really want *fast* password changing, then you will need to write some C code (or Perl) to directly manipulate the DBM files that the NIS maps are stashed in. It's not hard to do that, especially in Perl. -- Clyde Hoover | (Shouter-To-Dead-Parrots) | Dedicated to the replacement UNIX Sys Admin Tiger Team | of ancient obsolete technology Computation Center, UT Austin | with modern obsolete technology.