From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 25 18:10:21 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C172E16A4CE for ; Fri, 25 Feb 2005 18:10:21 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8652843D2D for ; Fri, 25 Feb 2005 18:10:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1PIALau007017 for ; Fri, 25 Feb 2005 18:10:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1PIAL5H007014; Fri, 25 Feb 2005 18:10:21 GMT (envelope-from gnats) Resent-Date: Fri, 25 Feb 2005 18:10:21 GMT Resent-Message-Id: <200502251810.j1PIAL5H007014@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kevin Lyons Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24F2316A4CE for ; Fri, 25 Feb 2005 18:07:37 +0000 (GMT) Received: from gt.corserv.com (adsl-66-137-123-97.dsl.hstntx.swbell.net [66.137.123.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F80A43D46 for ; Fri, 25 Feb 2005 18:07:36 +0000 (GMT) (envelope-from klyons@gt.corserv.com) Received: from gt.corserv.com (localhost.corserv.com [127.0.0.1]) by gt.corserv.com (8.13.1/8.13.1) with ESMTP id j1PJF3vm001126 for ; Fri, 25 Feb 2005 13:15:03 -0600 (CST) (envelope-from klyons@gt.corserv.com) Received: (from klyons@localhost) by gt.corserv.com (8.13.1/8.13.1/Submit) id j1PJF3oF001125; Fri, 25 Feb 2005 13:15:03 -0600 (CST) (envelope-from klyons) Message-Id: <200502251915.j1PJF3oF001125@gt.corserv.com> Date: Fri, 25 Feb 2005 13:15:03 -0600 (CST) From: Kevin Lyons To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/78087: groups program inconsistency X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kevin Lyons List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2005 18:10:22 -0000 >Number: 78087 >Category: bin >Synopsis: groups program inconsistency >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 Feb 25 18:10:21 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Kevin Lyons >Release: FreeBSD 5.3-RELEASE i386 >Organization: >Environment: System: FreeBSD gt.corserv.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: The groups command behaves truncates the last two groups depending upon whether invoked with the user name as an arguement. Also group file access is denied for the last two groups, effectively limiting default group membership of a user to 14. >How-To-Repeat: See attached text below. >Fix: --- rpt2 begins here --- -output of ls -l of test directory. note permissions and group of 1002 dir.--- total 10 drwxrwx---+ 6 root foo1 512 Feb 25 11:58 1000 drwxrwx---+ 6 root foo1 512 Feb 25 12:22 1001 drwxrwx--- 6 root foo1 512 Feb 25 11:20 1002 --- output of 'groups klyons' as user klyons --- klyons wheel projects proj1000 it pm p001 p002 eng sr cs proj1001 proj1002 proj1003 foo1 foo2 --- output of 'groups' as user klyons --- klyons wheel projects proj1000 it pm p001 p002 eng sr cs proj1001 proj1002 proj1003 ---- Attempt at doing "cd 1002" fails with permission denied although according to "groups klyons" command that user is in the foo1 group. ---- list of my /etc/group file for reference ---- # $FreeBSD: src/etc/group,v 1.31 2004/06/23 01:32:28 mlaier Exp $ # wheel:*:0:root,klyons daemon:*:1: kmem:*:2: sys:*:3: tty:*:4: operator:*:5:root mail:*:6: bin:*:7: news:*:8: man:*:9: games:*:13: staff:*:20: sshd:*:22: smmsp:*:25: mailnull:*:26: guest:*:31: bind:*:53: proxy:*:62: authpf:*:63: _pflogd:*:64: uucp:*:66: dialer:*:68: network:*:69: www:*:80: nogroup:*:65533: nobody:*:65534: klyons:*:1001: projects:*:8000:klyons proj1000:*:8001:klyons it:*:8002:klyons pm:*:8003:klyons p001:*:8004:klyons p002:*:8005:klyons eng:*:8006:klyons sr:*:8007:klyons cs:*:8008:klyons proj1001:*:8009:klyons proj1002:*:8010:klyons proj1003:*:8011:klyons foo1:*:8012:klyons foo2:*:8013:klyons foo3:*:8014:klyons foo4:*:8015:klyons foo5:*:8016:klyons foo6:*:8017:klyons foo7:*:8018:klyons foo8:*:8019:klyons foo9:*:8020:klyons --- rpt2 ends here --- >Release-Note: >Audit-Trail: >Unformatted: