From gpalmer@orion.webspan.net  Mon Nov  4 12:19:27 1996
Received: from mail.webspan.net (mail.webspan.net [206.154.70.7])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA24459
          for <freebsd-gnats-submit@freebsd.org>; Mon, 4 Nov 1996 12:19:21 -0800 (PST)
Received: from orion.webspan.net (orion.webspan.net [206.154.70.5]) 
          by mail.webspan.net (8.7.5/8.7.3) with ESMTP id PAA18518
          for <freebsd-gnats-submit@freebsd.org>; Mon, 4 Nov 1996 15:16:39 -0500 (EST)
Received: from orion.webspan.net (localhost [127.0.0.1]) 
          by orion.webspan.net (8.7.5/8.7.3) with ESMTP id PAA15464
          for <freebsd-gnats-submit@freebsd.org>; Mon, 4 Nov 1996 15:16:39 -0500 (EST)
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.18]) 
          by mail.webspan.net (8.7.5/8.7.3) with ESMTP id PAA17914
          for <gpalmer@webspan.net>; Mon, 4 Nov 1996 15:09:47 -0500 (EST)
Received: from nike.efn.org (resnet.uoregon.edu [128.223.170.28])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA23317
          for <FreeBSD-gnats@freefall.FreeBSD.org>; Mon, 4 Nov 1996 12:08:20 -0800 (PST)
Received: (from jmg@localhost) by nike.efn.org (8.7.5/8.7.3) id MAA27344; Mon, 4 Nov 1996 12:08:14 -0800 (PST)
Message-Id: <199611042008.MAA27344@nike.efn.org>
Date: Mon, 4 Nov 1996 12:08:14 -0800 (PST)
From: John-Mark Gurney <jmg@nike.efn.org>
Reply-To: gurney_j@efn.org
To: FreeBSD-gnats@freefall.freebsd.org
Subject: not all perms of pty back in shape after reboot
X-Send-Pr-Version: 3.2

>Number:         1957
>Category:       conf
>Synopsis:       not all perms of ptys are put back into shape on boot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov  4 12:20:01 PST 1996
>Closed-Date:    Mon Dec 23 01:32:29 MET 1996
>Last-Modified:  Mon Dec 23 01:32:59 MET 1996
>Originator:     John-Mark Gurney
>Release:        FreeBSD 2.2-960801-SNAP
>Organization:
Cu Networking
>Environment:
n/a
	

>Description:
basicly if you use a bunch of pty's (over 128) the perms are not reset in /etc/rc on reboot...  it only does the first 128...

I have not had more than 128...  but I was looking at the /etc/rc file and thought that was strange...

diff is relative to current

	

>How-To-Repeat:

I guess pull the power on a machine with more than 128 users on....  
	

>Fix:
	
apply this patch:

Index: rc
===================================================================
RCS file: /usr/cvs/src/etc/rc,v
retrieving revision 1.105
diff -c -r1.105 rc
*** rc	1996/11/03 14:41:58	1.105
--- rc	1996/11/04 20:02:20
***************
*** 115,121 ****
  mount -a -t nfs >/dev/null 2>&1
  
  # Whack the pty perms back into shape.
! chmod 666 /dev/tty[pqrs]*
  
  # clean up left-over files
  rm -f /etc/nologin
--- 115,121 ----
  mount -a -t nfs >/dev/null 2>&1
  
  # Whack the pty perms back into shape.
! chmod 666 /dev/tty[pqrsPQRS]*
  
  # clean up left-over files
  rm -f /etc/nologin
	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Mon Dec 23 01:32:29 MET 1996 
State-Changed-Why:  
Suggested fix applied in rev 1.108 of /etc/rc. 

>Unformatted:
