Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jan 2000 18:10:40 -0800 (PST)
From:      kjh@milinx.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/16390: an issue with the user "root "
Message-ID:  <20000127021040.C4AB9154E1@hub.freebsd.org>

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

>Number:         16390
>Category:       misc
>Synopsis:       an issue with the user "root "
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 26 18:20:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     kj
>Release:        3.3/3.4
>Organization:
>Environment:
FreeBSD fud.indifference.org 3.4-RELEASE FreeBSD 3.4-RELEASE #0: Mon Dec 20 06:54:39 GMT 1999     jkh@time.cdrom.com:/usr/src/sys/compile/GENERIC  i386
>Description:
when a user has "root" as a user like "testroot" even though the user doesn't have user ID "0" and/or group ID "0" when that user creates a file the file has that user's name, but the group is the group with ID "0" (mostly "wheel").

fud% grep /etc/wheel
fud% grep wheel /etc/group
wheel:*:0:
fud# tail -1 /etc/passwd
testroot:*:1010:1009:testroot:/tmp:/usr/local/bin/zsh
fud# su - testroot
fud% id
uid=1010(testroot) gid=1009(leet) groups=1009(leet)
fud% pwd
/tmp
fud% ls -l
total 1
-rw-rw----  1 dante     wheel  6 Jan 26 04:27 test
-rw-r--r--  1 testroot  wheel  0 Jan 26 06:02 test3
fud% touch foo
fud% ls -l
total 1
-rw-r--r--  1 testroot  wheel  0 Jan 26 06:28 foo
-rw-rw----  1 dante     wheel  6 Jan 26 04:27 test
-rw-r--r--  1 testroot  wheel  0 Jan 26 06:02 test3



>How-To-Repeat:
create a user with the user "root" in it, like "testroot" give it a group ID other then "0" and create a file and see what group it created as.
>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?20000127021040.C4AB9154E1>