From ler@lerctr.org  Tue Apr 18 16:37:16 2006
Return-Path: <ler@lerctr.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id ADAA516A401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 18 Apr 2006 16:37:16 +0000 (UTC)
	(envelope-from ler@lerctr.org)
Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [192.147.25.65])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6377943D55
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 18 Apr 2006 16:37:14 +0000 (GMT)
	(envelope-from ler@lerctr.org)
Received: from ler by thebighonker.lerctr.org with local (Exim 4.61 (FreeBSD))
	(envelope-from <ler@lerctr.org>)
	id 1FVtCT-000L79-Pg
	for FreeBSD-gnats-submit@freebsd.org; Tue, 18 Apr 2006 11:37:13 -0500
Message-Id: <E1FVtCT-000L79-Pg@thebighonker.lerctr.org>
Date: Tue, 18 Apr 2006 11:37:13 -0500
From: Larry Rosenman <ler@lerctr.org>
Reply-To: Larry Rosenman <ler@lerctr.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: uncommenting the msgs invocation in /etc/profile can fail boot
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         96015
>Category:       conf
>Synopsis:       uncommenting the msgs invocation in /etc/profile can fail boot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jilles
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 18 16:40:12 GMT 2006
>Closed-Date:    Fri Mar 15 23:41:44 UTC 2013
>Last-Modified:  Fri Mar 15 23:41:44 UTC 2013
>Originator:     Larry Rosenman
>Release:        FreeBSD 6.1-RC amd64
>Organization:
LERCTR Consulting
>Environment:
System: FreeBSD thebighonker.lerctr.org 6.1-RC FreeBSD 6.1-RC #46: Sat Apr 15 23:20:33 CDT 2006 root@thebighonker.lerctr.org:/usr/obj/usr/src/sys/THEBIGHONKER amd64


>Description:
I wanted to use the msgs(1) facility to have messages for my users displayed
upon login.  After I got it set up, and I uncommented the msgs -f invocation
in the system /etc/profile, my boot failed part way through, because
it wanted console input.  This caused me to have to invoke my remote hands
to fix it, since the box is colo'd. 

I'd like to request that the FreeBSD team consider making the following
2 changes:

1) change the example in /etc/profile from msgs -f to msgs -q
2) change the owner of /var/msgs in /etc/mtree/BSD.var.dist from daemon
   to mailnull so that the facility can work even after a make installworld
   on an upgrade. 

Thanks!
>How-To-Repeat:
	
uncomment the msgs -f invocation in /etc/profile, after having a message
set up via the msgs(1) facility.`
>Fix:

1) change the example to msgs -q
2) change ownership in /etc/mtree/BSD.var.dist of /var/msgs to mailnull



>Release-Note:
>Audit-Trail:

From: "John E. Hein" <jhein@timing.com>
To: bug-followup@FreeBSD.org, ler@lerctr.org
Cc:  
Subject: Re: conf/96015: uncommenting the msgs invocation in /etc/profile
 can fail boot
Date: Wed, 19 Apr 2006 10:21:28 -0600

 We could also check to see if the shell is interactive before putting
 anything in /etc/profile that could require user interaction.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/96015: commit references a PR
Date: Sat, 15 May 2010 17:50:16 +0000 (UTC)

 Author: jilles
 Date: Sat May 15 17:49:56 2010
 New Revision: 208116
 URL: http://svn.freebsd.org/changeset/base/208116
 
 Log:
   Change the commented msgs examples in profile/csh.login from -f to -q.
   
   Starting something that wants input on login seems strange and can be
   dangerous. In some configurations, causing output can be bad, but it is not
   as dangerous.
   
   I do not expect this msgs invocation to be uncommented often.
   
   PR:		conf/96015
   MFC after:	4 days
 
 Modified:
   head/etc/csh.login
   head/etc/profile
 
 Modified: head/etc/csh.login
 ==============================================================================
 --- head/etc/csh.login	Sat May 15 17:02:33 2010	(r208115)
 +++ head/etc/csh.login	Sat May 15 17:49:56 2010	(r208116)
 @@ -9,7 +9,7 @@
  # login.conf(5) and in particular the charset and lang options.
  # For full locales list check /usr/share/locale/*
  #
 -# Read system messages
 -# msgs -f
 +# Check system messages
 +# msgs -q
  # Allow terminal messages
  # mesg y
 
 Modified: head/etc/profile
 ==============================================================================
 --- head/etc/profile	Sat May 15 17:02:33 2010	(r208115)
 +++ head/etc/profile	Sat May 15 17:49:56 2010	(r208116)
 @@ -12,7 +12,7 @@
  # You should also read the setlocale(3) man page for information
  # on how to achieve more precise control of locale settings.
  #
 -# Read system messages
 -# msgs -f
 +# Check system messages
 +# msgs -q
  # Allow terminal messages
  # mesg y
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/96015: commit references a PR
Date: Wed, 19 May 2010 20:53:41 +0000 (UTC)

 Author: jilles
 Date: Wed May 19 20:53:21 2010
 New Revision: 208313
 URL: http://svn.freebsd.org/changeset/base/208313
 
 Log:
   MFC r208116: Change the commented msgs examples in profile/csh.login
   from -f to -q.
   
   Starting something that wants input on login seems strange and can be
   dangerous. In some configurations, causing output can be bad, but it is not
   as dangerous.
   
   I do not expect this msgs invocation to be uncommented often.
   
   PR:		conf/96015
 
 Modified:
   stable/8/etc/csh.login
   stable/8/etc/profile
 Directory Properties:
   stable/8/etc/   (props changed)
 
 Modified: stable/8/etc/csh.login
 ==============================================================================
 --- stable/8/etc/csh.login	Wed May 19 20:00:15 2010	(r208312)
 +++ stable/8/etc/csh.login	Wed May 19 20:53:21 2010	(r208313)
 @@ -9,7 +9,7 @@
  # login.conf(5) and in particular the charset and lang options.
  # For full locales list check /usr/share/locale/*
  #
 -# Read system messages
 -# msgs -f
 +# Check system messages
 +# msgs -q
  # Allow terminal messages
  # mesg y
 
 Modified: stable/8/etc/profile
 ==============================================================================
 --- stable/8/etc/profile	Wed May 19 20:00:15 2010	(r208312)
 +++ stable/8/etc/profile	Wed May 19 20:53:21 2010	(r208313)
 @@ -12,7 +12,7 @@
  # You should also read the setlocale(3) man page for information
  # on how to achieve more precise control of locale settings.
  #
 -# Read system messages
 -# msgs -f
 +# Check system messages
 +# msgs -q
  # Allow terminal messages
  # mesg y
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: eadler 
State-Changed-When: Tue Mar 1 10:14:33 EST 2011 
State-Changed-Why:  
committed in head 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96015 
Responsible-Changed-From-To: freebsd-bugs->jilles 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Tue Mar 1 10:22:15 EST 2011 
Responsible-Changed-Why:  
same as above 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96015 
State-Changed-From-To: patched->closed 
State-Changed-By: eadler 
State-Changed-When: Fri Mar 15 23:41:43 UTC 2013 
State-Changed-Why:  
MFCed/fixed by now or it will never be MFCed 

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