From owner-freebsd-bugs Fri May 12 10:50: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6C12337B5DE for ; Fri, 12 May 2000 10:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA83704; Fri, 12 May 2000 10:50:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id B784237B5DE; Fri, 12 May 2000 10:45:35 -0700 (PDT) Message-Id: <20000512174535.B784237B5DE@hub.freebsd.org> Date: Fri, 12 May 2000 10:45:35 -0700 (PDT) From: graham@insinc.ca To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/18516: getpwuid(0) fails when root account is in NIS Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18516 >Category: kern >Synopsis: getpwuid(0) fails when root account is in NIS >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 12 10:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Graham Gillies >Release: 3.1, 3.4, 4.0 >Organization: INSINC >Environment: FreeBSD graham2.staff.dowco.com 3.4-RELEASE FreeBSD 3.4-RELEASE #12: Fri May 5 10:58:06 PDT 2000 root@graham2.staff.dowco.com:/usr/src/sys/compile/GRAHAM i386 >Description: When NIS is enabled and the root account is in NIS or any part of it is in NIS, like +root whatever, calls to getpwuid(0) fail >How-To-Repeat: set up a machine as an NIS client $ su - # id uid=0 gid=0(wheel)... +++ what happened to the username? # su - someone su: who are you? >Fix: unknown, workaround was to use another uid 0 account to access root and leave a locked root account in the passwd files >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message