From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,949810b5859ed72a X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,949810b5859ed72a X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-03-13 16:27:07 PST Xref: gmd.de comp.unix.osf.osf1:2531 comp.unix.osf.misc:1075 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!wupost!waikato!thebes.cc.waikato.ac.nz!hamish From: hamish@thebes.cc.waikato.ac.nz (Hamish Marson) Newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc Subject: Re: Easy Changing of NIS Passwords by ROOT Followup-To: comp.unix.osf.osf1,comp.unix.osf.misc Date: 14 Mar 1994 00:27:07 GMT Organization: The University of Waikato Distribution: inet Message-ID: <2m0b0r$ouh@thebes.cc.waikato.ac.nz> References: <2l5jk4$1a12@thebes.cc.waikato.ac.nz> <2lld50INNn8h@emx.cc.utexas.edu> Reply-To: hamish@waikato.ac.nz NNTP-Posting-Host: thebes.cc.waikato.ac.nz X-Newsreader: TIN [version 1.2 PL1] Clyde W. Hoover (clyde@bambi.cc.utexas.edu) wrote: > > 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? > 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. I thought of that, but don't know the sturctures used, keys etc. Does anyone have any sample code they can point me at? -- ====================================================================== | Hamish Marson | | Systems Programmer | | | Computer Services | INTERNET h.marson@waikato.ac.nz | | University of Waikato | PHONE +64 7 8562889 xt 8181 | | New Zealand | FAX +64 7 8384066 | ===========Disclaimer :- Remember. You heard it here first.===========