Date: Wed, 9 May 2001 18:02:31 +0200 (CEST) From: quinot@inf.enst.fr To: FreeBSD-gnats-submit@freebsd.org Subject: bin/27230: Users after NIS lines in /etc/passwd Message-ID: <20010509160231.6E0B91131B@shalmaneser.enst.fr>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010509160231.6E0B91131B>