Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: hamish@thebes.cc.waikato.ac.nz (Hamish Marson)
Subject: Re: Easy Changing of NIS Passwords by ROOT
Date: 14 Mar 1994 00:27:07 GMT	[thread overview]
Message-ID: <2m0b0r$ouh@thebes.cc.waikato.ac.nz> (raw)
In-Reply-To: 2lld50INNn8h@emx.cc.utexas.edu

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.===========


      reply	other threads:[~1994-03-14  0:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-03-03 21:08 Easy Changing of NIS Passwords by ROOT Hamish Marson
1994-03-09 20:56 ` Clyde W. Hoover
1994-03-14  0:27   ` Hamish Marson [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox