Expiring passwords under NIS ?

Expiring passwords under NIS ?

Post by Robert Flemmin » Tue, 27 Jul 1999 04:00:00



Anyone got any nifty tricks for expiring passwords under Linux's NIS
implementation?  Something cheesy like

if [ ! -f ~/.passwd ]; then
  /usr/bin/yppasswd
  touch ~/.passwd
fi

In /etc/profile would work and when I wanted to expire a password I
could just remove the .passwd file from the user's home directory but
there are too many ways to circumvent that.  I've seen it under other YP
implementations where after the password hash there is a comma and some
more characters to designate an expiration time but I didn't see
anything that indicated I could do that under Linux.  Anything thoughts
are appreciated, and no switching over to NIS+ isn't really any option.

Robert