Forcing yppasswd changes

mcdonald at AEDC-VAX.AF.MIL mcdonald at AEDC-VAX.AF.MIL
Thu Apr 18 06:46:53 AEST 1991


I am try to force my users to change thier NIS passwords using yppasswd based
on a local NIS map I have set up holding the time of their last change.

After their password is 90 days old I want to force them to change it.  I have
a c-program that does the checking of the age of the password, & I have
it executing from /etc/cshrc & /etc/profile so that it gets executed when
my users log in.

What I want to do in this c-program is:

      if (age > 90) 
         if (fork()==0) 
            execlp ("yppasswd","yppasswd",0);
     
My problem is that this will not necessarily force them to make the change.
(i.e. they can ctrl-c to kill the yppasswd call or they can just type the
new password in wrong & the yppasswd call will abort).

How can I reinvoke yppasswd if it aborts, dies, or is interrupted?


  vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
  | Kenneth M. McDonald * OAO Corp * Arnold Engineering Development Center |
  |          MS 120 * Arnold AFS, TN 37389-9998 * (615) 454-3413           |
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  INTERNET:
  mcdonald at aedc-vax.af.mil

  LOCAL:
  c60244 at ccfiris



More information about the Comp.sys.sgi mailing list