From damien@01.dhcp.hck.carroll.com  Fri Sep 22 12:42:00 2000
Return-Path: <damien@01.dhcp.hck.carroll.com>
Received: from 01.dhcp.hck.carroll.com (core1.hck.carroll.com [216.44.16.2])
	by hub.freebsd.org (Postfix) with ESMTP id 2AD3B37B422
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Sep 2000 12:42:00 -0700 (PDT)
Received: (from damien@localhost)
	by 01.dhcp.hck.carroll.com (8.9.3/8.9.3) id PAA66935;
	Fri, 22 Sep 2000 15:44:38 -0400 (EDT)
	(envelope-from damien)
Message-Id: <200009221944.PAA66935@01.dhcp.hck.carroll.com>
Date: Fri, 22 Sep 2000 15:44:38 -0400 (EDT)
From: damien@carroll.com
Sender: damien@01.dhcp.hck.carroll.com
Reply-To: damien@carroll.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: 'chown' statement occurs before NIS startup in /etc/rc
X-Send-Pr-Version: 3.2

>Number:         21484
>Category:       conf
>Synopsis:       chown statement in /etc/rc fails if NIS is configured and root is not in passwd
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 22 12:50:01 PDT 2000
>Closed-Date:    Mon Sep 25 01:17:57 PDT 2000
>Last-Modified:  Mon Sep 25 01:20:00 PDT 2000
>Originator:     Damien Tougas
>Release:        FreeBSD 4.1-STABLE
>Organization:
Carroll-Net, Inc.
>Environment:

FreeBSD 4.1-STABLE workstation configured an an NIS client.
The /etc/master.password file contains only one entry:

	+:::::::::

The file /etc/group contains only one entry:

	+:*::

>Description:

Workstations takes a very long time to bood due to NIS timeout.

The /etc/rc boot script has the following line:

	chown root:wheel /dev/tty[pqrsPQRS]*

This statement occurs before NIS services are started (network_pass2).
Because of this, the system will pause for a very long time at boot
while it attempts to get the UID/GID from NIS until it times out.

>How-To-Repeat:

Setup a workstation to act as an NIS client.

Install /etc/master.passwd with the following line only:

	+:::::::::

Install /etc/group with the following line only:

	+:*::

Reboot the system.

>Fix:

This problem is fixed by moving the 'chown' statement (as described above
in /etc/rc) directly after NIS service startup (network_pass2). This
allows the chown statement to properly get the UID/GID information it
requires from NIS hence avoiding the timeout.

>Release-Note:
>Audit-Trail:

From: damien@carroll.com
To: FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  
Subject: conf/21484: 'chown' statement occurs before NIS startup in /etc/rc
Date: Fri, 22 Sep 2000 15:44:38 -0400 (EDT)

 >Number:         21484
 >Category:       conf
 >Synopsis:       chown statement in /etc/rc fails if NIS is configured and root is not in passwd
 >Confidential:   no
 >Severity:       serious
 >Priority:       high
 >Responsible:    freebsd-bugs
 >State:          open
 >Quarter:        
 >Keywords:       
 >Date-Required:
 >Class:          sw-bug
 >Submitter-Id:   current-users
 >Arrival-Date:   Fri Sep 22 12:50:01 PDT 2000
 >Closed-Date:
 >Last-Modified:
 >Originator:     Damien Tougas
 >Release:        FreeBSD 4.1-STABLE
 >Organization:
 Carroll-Net, Inc.
 >Environment:
 
 FreeBSD 4.1-STABLE workstation configured an an NIS client.
 The /etc/master.password file contains only one entry:
 
 	+:::::::::
 
 The file /etc/group contains only one entry:
 
 	+:*::
 
 >Description:
 
 Workstations takes a very long time to bood due to NIS timeout.
 
 The /etc/rc boot script has the following line:
 
 	chown root:wheel /dev/tty[pqrsPQRS]*
 
 This statement occurs before NIS services are started (network_pass2).
 Because of this, the system will pause for a very long time at boot
 while it attempts to get the UID/GID from NIS until it times out.
 
 >How-To-Repeat:
 
 Setup a workstation to act as an NIS client.
 
 Install /etc/master.passwd with the following line only:
 
 	+:::::::::
 
 Install /etc/group with the following line only:
 
 	+:*::
 
 Reboot the system.
 
 >Fix:
 
 This problem is fixed by moving the 'chown' statement (as described above
 in /etc/rc) directly after NIS service startup (network_pass2). This
 allows the chown statement to properly get the UID/GID information it
 requires from NIS hence avoiding the timeout.
 
 >Release-Note:
 >Audit-Trail:
 >Unformatted:
 
 
 To Unsubscribe: send mail to majordomo@FreeBSD.org
 with "unsubscribe freebsd-bugs" in the body of the message
 
 
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Mon Sep 25 01:17:57 PDT 2000 
State-Changed-Why:  
Pilot error. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21484 

From: Dag-Erling Smorgrav <des@ofug.org>
To: damien@carroll.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/21484: 'chown' statement occurs before NIS startup in /etc/rc
Date: 25 Sep 2000 10:16:14 +0200

 damien@carroll.com writes:
 > FreeBSD 4.1-STABLE workstation configured an an NIS client.
 > The /etc/master.password file contains only one entry:
 > 
 > 	+:::::::::
 
 This is wrong. You should always have a root entry in your passwd
 file, even if you're using NIS.
 
 > The file /etc/group contains only one entry:
 > 
 > 	+:*::
 
 This is also wrong; you should always have a wheel entry in your group
 file, even if you're using NIS.
 
 DES
 -- 
 Dag-Erling Smorgrav - des@ofug.org
 
>Unformatted:
