Subject: default group for daemon is "guest"?
To: None <current-users@netbsd.org>
From: Brian Stark <bstark@uswest.net>
List: current-users
Date: 08/02/2000 01:30:59
Hello,

Is there a reason that the default group for user "daemon" is 
"guest" instead of "daemon"?

On my 1.5_ALPHA system I see the following entry in /etc/passwd:

  daemon:*:1:31:The devil himself:/:/sbin/nologin

and the corresponding entry for group 31 in /etc/group is:

  guest:*:31:root

I checked the OpenBSD sources today and those folks have the default group
for user daemon set to daemon. From OpenBSD's /etc/master.passwd:

  daemon:*:1:1::0:0:The devil himself:/root:/sbin/nologin


I thought I'd ask about this because I noticed that the lpd program
attempts to set its group id to the default group id for user id 1
(daemon), and it doesn't seem to make much sense for the lpd program
to be using group "guest" (see file printjob.c in the lpd source
directory). Also, although dated, the 4.3BSD Line Printer Spool Manual
doesn't mention using the guest group.


Brian 
bstark@uswest.net