Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: clyde@bambi.cc.utexas.edu (Clyde W. Hoover)
Subject: Re: Easy Changing of NIS Passwords by ROOT
Date: 9 Mar 1994 14:56:00 -0600	[thread overview]
Message-ID: <2lld50INNn8h@emx.cc.utexas.edu> (raw)
In-Reply-To: 2l5jk4$1a12@thebes.cc.waikato.ac.nz

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


  reply	other threads:[~1994-03-09 20:56 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 [this message]
1994-03-14  0:27   ` Hamish Marson
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