Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2002 00:26:53 -0800 (PST)
From:      Gerald Stoller <Gerald_Stoller@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/36281: User not in group wheel creates a file and its group is listed as wheel
Message-ID:  <200203250826.g2P8Qr974637@freefall.freebsd.org>

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

>Number:         36281
>Category:       misc
>Synopsis:       User not in group wheel creates a file and its group is listed as wheel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 25 00:30:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gerald Stoller
>Release:        4.3
>Organization:
self
>Environment:
FreeBSD  4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001         jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC  i386
>Description:
User not in group wheel creates a file and its group is listed as wheel, but when checked with "test -G" one sees that it is not really assigned to that group, it is just so reported.
>How-To-Repeat:
       I produced the problem after issuing the command 'script' [I use the Korn shell, and editing previous commands caused some "command lines" that were never executed to appear in the script] which I would like to attach to this report; since I don't see any way to do that, I will copy it here (some static conditions are shown in it, i.e., I don't create a user not in the group wheel, he's already there):

Script started on Sun Mar 17 12:51:12 2002
$ echo    wertgbnmkk  >b

$ ll  ?

-rw-r--r--  1 lstoller  wheel  11 Mar 17 12:51 b
-rw-r--r--  1 lstoller  wheel  11 Mar 17 12:48 c
$ if   test   -G b

> then    print   same

> else    print   samenot

> fi

samenot
$ grep  stoller  /etc/passwd

kstoller:*:1001:0:G S Stoller:/home/kstoller:/bin/ksh
tstoller:*:1000:0:G S Stoller:/home/tstoller:/bin/ksh
lstoller:*:1002:1000:G S Stoller:/home/lstoller:/bin/ksh
$ grep  stoller  /etc/passwd
$ grep  stoller  /etc/
$                           
$ grep  stoller  /etc/passwd
$ grep  stoller  /etc/      group

tstoller:*:1000:
$ grep  stoller  /etc/group
$ egrep  stoller  /etc/group
$ eegrep  wstoller  /etc/group
$ egrep  whstoller  /etc/group
$ egrep  whestoller  /etc/group
$ egrep  wheestoller  /etc/group
$ egrep  wheelstoller  /etc/group
$ egrep  wheel\stoller  /etc/group
$ egrep  wheel\|stoller  /etc/group
$ egrep  wheel\|

wheel:*:0:root
tstoller:*:1000:
$ ^D


Script done on Sun Mar 17 12:56:22 2002
Script started on Sun Mar 17 13:28:50 2002
$ uname -a

FreeBSD  4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001     jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC  i386
$ ^D


Script done on Sun Mar 17 13:29:39 2002

>Fix:
      
>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?200203250826.g2P8Qr974637>