Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2005 13:15:03 -0600 (CST)
From:      Kevin Lyons <klyons@corserv.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/78087: groups program inconsistency	
Message-ID:  <200502251915.j1PJF3oF001125@gt.corserv.com>
Resent-Message-ID: <200502251810.j1PIAL5H007014@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502251915.j1PJF3oF001125>