From f811b41cc996c70cfc5a1f29938e18cfacec1814 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Sun, 13 Aug 1995 16:12:28 +0000 Subject: Take the ypchfn/ypchsh stuff that was removed from passwd and graft it into chpass. Chpass can now tell when it's being asked to operate on an NIS user and it displayes the appropriate message in the editor template ("Changing NIS information for foo"). After the changes have been made, chpass will promte the user for his NIS password. If the password is correct, the changes are committed to yppasswdd. Hopefully, this should make NIS more transparent to the end user. Note that even the superuser needs to know a user's password before he can change any NIS information (such is the nature of yppasswdd). Also, changes to the password field are not permitted -- that's what yppasswd is for. (The superuser may specify a new password, but again, he needs to know the user's original password before he can change it.) --- chpass/Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'chpass/Makefile') diff --git a/chpass/Makefile b/chpass/Makefile index 7b76f90..e0849bc 100644 --- a/chpass/Makefile +++ b/chpass/Makefile @@ -6,14 +6,20 @@ BINOWN= root BINMODE=4555 .PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../usr.sbin/vipw CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw -LINKS= ${BINDIR}/chpass ${BINDIR}/chfn ${BINDIR}/chpass ${BINDIR}/chsh +LINKS= ${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/chfn +LINKS+= ${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/chsh +LINKS+= ${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/ypchpass +LINKS+= ${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/ypchfn +LINKS+= ${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/ypchsh MLINKS= chpass.1 chfn.1 chpass.1 chsh.1 - +COPTS+=-DYP +SRCS+= pw_yp.c +LDADD+=-lrpcsvc -lcrypt beforeinstall: - [ ! -e ${DESTDIR}/usr/bin/chpass ] || \ - chflags noschg ${DESTDIR}/usr/bin/chpass + [ ! -e ${DESTDIR}${BINDIR}/chpass ] || \ + chflags noschg ${DESTDIR}${BINDIR}/chpass afterinstall: - chflags schg ${DESTDIR}/usr/bin/chpass + chflags schg ${DESTDIR}${BINDIR}/chpass .include -- cgit v1.2.3-56-ge451