Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Easy Changing of NIS Passwords by ROOT
@ 1994-03-03 21:08 Hamish Marson
  1994-03-09 20:56 ` Clyde W. Hoover
  0 siblings, 1 reply; 3+ messages in thread
From: Hamish Marson @ 1994-03-03 21:08 UTC (permalink / raw)


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?

Oh yeah. One more thing. I put passwd changing into CAP for yp domains,
but yppasswd(3) call only changes the passwd in the passwd file, not in
the current dbm map. Is there any way short of running ypxfr_1perday
from cron to force yppasswd(3) to change it in the current map as well?

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Easy Changing of NIS Passwords by ROOT
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Clyde W. Hoover @ 1994-03-09 20:56 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Easy Changing of NIS Passwords by ROOT
  1994-03-09 20:56 ` Clyde W. Hoover
@ 1994-03-14  0:27   ` Hamish Marson
  0 siblings, 0 replies; 3+ messages in thread
From: Hamish Marson @ 1994-03-14  0:27 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1994-03-14  0:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox