From nobody@FreeBSD.ORG  Fri Aug  4 16:45:51 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id C841137BC06; Fri,  4 Aug 2000 16:45:51 -0700 (PDT)
Message-Id: <20000804234551.C841137BC06@hub.freebsd.org>
Date: Fri,  4 Aug 2000 16:45:51 -0700 (PDT)
From: yurtesen@ispro.net.tr
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: When NIS client enabled machine doesnt boot correctly a line in /etc/rc doesnt work?!
X-Send-Pr-Version: www-1.0

>Number:         20420
>Category:       conf
>Synopsis:       When NIS client enabled machine doesnt boot correctly a line in /etc/rc doesnt work?!
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 04 16:50:01 PDT 2000
>Closed-Date:    Wed Aug 30 06:12:05 PDT 2000
>Last-Modified:  Wed Aug 30 06:12:53 PDT 2000
>Originator:     Evren Yurtesen
>Release:        4.1-STABLE
>Organization:
ISPRO Internet Services
>Environment:
FreeBSD webmaster.ispro.net.tr 4.1-RC FreeBSD 4.1-RC #0: Fri Feb  2 18:19:52 GMT 2001 root@finland.ispro.net.tr:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
When I have nis_client_enable="YES" in my /etc/rc.conf file the boot process is haning at line
chown root:wheel /dev/tty[pqrsPQRS]*
of the /etc/rc file when I comment out this line the machine boots correctly. The same happened in 2 different machines I use here.
Somebody may lock out himself when rebooting the machine or they might need to go to system room to press ctrl-c to cancel chown and continue booting. After a power failure machines would not boot correctly! So this is kinda serious problem I guess... ?
>How-To-Repeat:
put
nisdomainname="!DOMAINNAMEHERE!"
nis_client_enable="YES"
in your /etc/rc.conf file. (I hope the problem repeats in your machines too)
>Fix:
I dont know yet but if you know something please let me know.
yurtesen@ispro.net.tr

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Aug 7 04:31:11 PDT 2000 
Responsible-Changed-Why:  
Revisions 1.181 and 1.182, which introduced this line into etc/rc, 
belong to DES. 

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

From: Dag-Erling Smorgrav <des@flood.ping.uio.no>
To: yurtesen@ispro.net.tr
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: conf/20420: When NIS client enabled machine doesnt boot correctly a line in /etc/rc doesnt work?!
Date: 30 Aug 2000 11:25:44 +0200

 yurtesen@ispro.net.tr writes:
 > When I have nis_client_enable="YES" in my /etc/rc.conf file the boot
 > process is haning at line
 > chown root:wheel /dev/tty[pqrsPQRS]*
 > of the /etc/rc file when I comment out this line the machine boots
 > correctly. The same happened in 2 different machines I use here.
 > Somebody may lock out himself when rebooting the machine or they
 > might need to go to system room to press ctrl-c to cancel chown and
 > continue booting. After a power failure machines would not boot
 > correctly! So this is kinda serious problem I guess... ?
 
 This comes from a combination of:
 
  a) you have enabled NIS without properly configuring a NIS server, or
     (the connection to) your NIS server is down
 
  b) you have (improperly) left out local entries for root and wheel in
     your password and group files.
 
 DES
 -- 
 Dag-Erling Smorgrav - des@flood.ping.uio.no
 

From: Evren Yurtesen <yurtesen@ispro.net.tr>
To: Dag-Erling Smorgrav <des@flood.ping.uio.no>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: conf/20420: When NIS client enabled machine doesnt boot correctly
 a line in /etc/rc doesnt work?!
Date: Wed, 30 Aug 2000 13:48:53 +0300 (EEST)

 Well it was because of some chown line in /etc/rc file since rc tries to
 run chown before the nis initializes it wasnt able to find the root user
 so waiting for a timeout I guess. Putting the line after the lines which
 initializes NIS solved the problem.
 
 Evren
 
 On 30 Aug 2000, Dag-Erling Smorgrav wrote:
 
 > yurtesen@ispro.net.tr writes:
 > > When I have nis_client_enable="YES" in my /etc/rc.conf file the boot
 > > process is haning at line
 > > chown root:wheel /dev/tty[pqrsPQRS]*
 > > of the /etc/rc file when I comment out this line the machine boots
 > > correctly. The same happened in 2 different machines I use here.
 > > Somebody may lock out himself when rebooting the machine or they
 > > might need to go to system room to press ctrl-c to cancel chown and
 > > continue booting. After a power failure machines would not boot
 > > correctly! So this is kinda serious problem I guess... ?
 > 
 > This comes from a combination of:
 > 
 >  a) you have enabled NIS without properly configuring a NIS server, or
 >     (the connection to) your NIS server is down
 > 
 >  b) you have (improperly) left out local entries for root and wheel in
 >     your password and group files.
 > 
 > DES
 > -- 
 > Dag-Erling Smorgrav - des@flood.ping.uio.no
 > 
 
 

From: Dag-Erling Smorgrav <des@flood.ping.uio.no>
To: Evren Yurtesen <yurtesen@ispro.net.tr>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: conf/20420: When NIS client enabled machine doesnt boot correctly a line in /etc/rc doesnt work?!
Date: 30 Aug 2000 15:04:48 +0200

 Evren Yurtesen <yurtesen@ispro.net.tr> writes:
 > Well it was because of some chown line in /etc/rc file since rc tries to
 > run chown before the nis initializes it wasnt able to find the root user
 > so waiting for a timeout I guess. Putting the line after the lines which
 > initializes NIS solved the problem.
 
 No. The problem is that you do not have a local root user or wheel
 group, which is a configuration error.
 
 DES
 -- 
 Dag-Erling Smorgrav - des@flood.ping.uio.no
 
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Wed Aug 30 06:12:05 PDT 2000 
State-Changed-Why:  
Configuration error. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20420 
>Unformatted:
