From owner-freebsd-hackers Tue Dec 5 12:00:07 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA00239 for hackers-outgoing; Tue, 5 Dec 1995 12:00:07 -0800 Received: from cwbtwo.bsi.com.br ([200.250.250.2]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id LAA00150 for ; Tue, 5 Dec 1995 11:59:48 -0800 Received: (from lenzi@localhost) by cwbtwo.bsi.com.br (8.6.11/8.6.9) id RAA19701; Tue, 5 Dec 1995 17:57:42 GMT Date: Tue, 5 Dec 1995 17:57:41 +0000 () From: Sergio Lenzi To: Robert Shady cc: freebsd-hackers@freebsd.org Subject: Re: Prob's w/YP Stuff In-Reply-To: <199512041900.OAA19588@server.id.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org Precedence: bulk Ref: change yp password for users, asks for the old passwd... Roberts is right. I had kind of the same problem here at bsi. And another problem that you will face too ->passwords generated by the yppasswd contains invalid characters (control) and when yppasswdd tries to update the password it invalidates the password. Solution: 1) Modify the program yp_passwd.c at /usr/src/usr.bin/passwd to generate crypt the same way as local_passwd.c 2) Modify update.c in the /usr/src/gnu/usr.sbin/yppasswdd to not check the old password if it came from uid=0. compile those programs * install. Sergio de Almeida Lenzi.