From owner-freebsd-bugs Wed May 9 9:10: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2340D37B423 for ; Wed, 9 May 2001 09:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f49GA2C05650; Wed, 9 May 2001 09:10:02 -0700 (PDT) (envelope-from gnats) Received: from infres.enst.fr (infres.enst.fr [137.194.160.3]) by hub.freebsd.org (Postfix) with ESMTP id 65B7637B423 for ; Wed, 9 May 2001 09:02:33 -0700 (PDT) (envelope-from quinot@inf.enst.fr) Received: from shalmaneser.enst.fr (shalmaneser.enst.fr [137.194.160.128]) by infres.enst.fr (Postfix) with ESMTP id 672D818BA for ; Wed, 9 May 2001 18:02:32 +0200 (MET DST) Received: by shalmaneser.enst.fr (Postfix, from userid 11117) id 6E0B91131B; Wed, 9 May 2001 18:02:31 +0200 (CEST) Message-Id: <20010509160231.6E0B91131B@shalmaneser.enst.fr> Date: Wed, 9 May 2001 18:02:31 +0200 (CEST) From: quinot@inf.enst.fr Reply-To: quinot@inf.enst.fr To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/27230: Users after NIS lines in /etc/passwd Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 27230 >Category: bin >Synopsis: Users after NIS lines in /etc/passwd >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 09 09:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Thomas Quinot >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD shalmaneser.enst.fr 5.0-CURRENT FreeBSD 5.0-CURRENT #11: Wed May 9 16:43:38 CEST 2001 root@shalmaneser.enst.fr:/usr/obj/usr/src/sys/SHALMANESER i386 >Description: Consider a /etc/master.passwd with the following structure: root:... user1:... +:... user2:... ie using NIS ('+' line) AND with a local user declared after the '+' line. When both ypbind and rpcbind are running, user2 is seen correctly. When neither of them is running, running 'id user2' hangs for 75 seconds in getpwnam(), then returns 'no such user'. When only rpcbind is running, it does not hang but returns 'no such user' immediately. There is a similar problem with /etc/groups, which had the unfortunate on my system that the chown root:wheel /dev/tty[pqrsPQRS]* in /etc/rc took ages, because '+' was before 'wheel' in my /etc/groups. >How-To-Repeat: * killall rpcbind ypbind * id user1 (where user1 is a username before the '+'): OK * id user2 (------------------------- after -------): hangs for 75 seconds then returns 'unknown user') * launch rpcbind * id user2 now returns 'unknwon user' immediately * launch ypbind * id user2 works OK >Fix: Fix: unknown. Work-around: Move all the '+' lines in /etc/master.passwd and /etc/group to the end of the file. Document the problem. Possibly modify vipw to do the rearrangement automatically when generating /etc/passwd from master.passwd. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message