From owner-freebsd-current Tue Oct 1 20:52:53 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EB1B37B401; Tue, 1 Oct 2002 20:52:52 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F79A43E42; Tue, 1 Oct 2002 20:52:51 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.4/8.12.4) with SMTP id g923hBOo040864; Tue, 1 Oct 2002 23:43:11 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Tue, 1 Oct 2002 23:43:10 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: current@FreeBSD.org Cc: maxim@FreeBSD.org Subject: NIS broken by pw_scan.c commits? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It looks like someone has broken support for NIS in /etc/master.passwd by tightening the formatting rules for the file incorrectly. Whereas a perfectly valid NIS password file used to work a month or so ago, it now generates a syntax error: www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/sbin/nologin nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/sbin/nologin +::::::::: cboss# pwd_mkdb -p /etc/master.passwd pwd_mkdb: uid is incorrect pwd_mkdb: at line #22 pwd_mkdb: /etc/master.passwd: Inappropriate file type or format (line 22 is the +::... line) If whoever did this could please *undo* the change, it would appreciate it: breaking services like NIS is not a good idea. I won't have a chance to investigate more tonight, but I strongly suspect pw_scan.c:1.22 by Maxim. It could be another commit; I'll try backing this out tomorrow morning and see if things start working. Requiring a valid integer value is bogus in the case where the field is filled in from NIS. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message