Subject: misc/6806: default user nobody has gid 9999 instead of nogroup
To: None <gnats-bugs@gnats.netbsd.org>
From: Soren S. Jorvang <soren@t.dk>
List: netbsd-bugs
Date: 01/14/1999 10:06:25
>Number:         6806
>Category:       misc
>Synopsis:       default user nobody has gid 9999 instead of nogroup
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 14 01:20:00 1999
>Last-Modified:
>Originator:     Soren S. Jorvang
>Organization:
Soren
>Release:        NetBSD-current
>Environment:


>Description:
src/etc/group:
[...]
nogroup:*:32766:

src/etc/master.passwd:
[...]
nobody:*:32767:9999::0:0:Unprivileged user:/nonexistent:/sbin/nologin
[...]

9999 seems random. User nobody should be a member of group nogroup.

(Perhaps the groups bin, news, games and nogroup should also have
their respective users in the "long" listing in etc/group.)

>How-To-Repeat:


>Fix:
--- src/etc/master.passwd.orig  Thu Jan  7 09:57:19 1999
+++ src/etc/master.passwd       Thu Jan  7 10:00:38 1999
@@ -6,6 +6,6 @@
 news:*:6:8::0:0:Network News:/var/spool/news:/sbin/nologin
 games:*:7:13::0:0:Games pseudo-user:/usr/games:/sbin/nologin
 uucp:*:66:1::0:0:UNIX-to-UNIX Copy:/var/spool/uucppublic:/usr/libexec/uucp/uucico
-nobody:*:32767:9999::0:0:Unprivileged user:/nonexistent:/sbin/nologin
+nobody:*:32767:32766::0:0:Unprivileged user:/nonexistent:/sbin/nologin
 ingres:*:267:74::0:0:& Group:/usr/ingres:/sbin/nologin
 falken:*:32766:31::0:0:Prof. Stephen &:/usr/games:/usr/games/wargames
>Audit-Trail:
>Unformatted: