From chris@holly.dyndns.org  Fri Jan 29 04:26:00 1999
Received: from holly.dyndns.org (hou3-23.flex.net [207.18.136.129])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA09846
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Jan 1999 04:25:58 -0800 (PST)
          (envelope-from chris@holly.dyndns.org)
Received: (from chris@localhost)
	by holly.dyndns.org (8.9.2/8.9.1) id GAA00673;
	Fri, 29 Jan 1999 06:25:42 -0600 (CST)
	(envelope-from chris)
Message-Id: <199901291225.GAA00673@holly.dyndns.org>
Date: Fri, 29 Jan 1999 06:25:42 -0600 (CST)
From: chris@holly.dyndns.org
Reply-To: phoenix@calldei.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: PTYs are not set up properly 
X-Send-Pr-Version: 3.2

>Number:         9774
>Category:       misc
>Synopsis:       PTYs are not set up properly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 29 04:30:01 PST 1999
>Closed-Date:    Fri Mar 5 03:05:45 PST 1999
>Last-Modified:  Fri Mar  5 03:06:09 PST 1999
>Originator:     Chris Costello
>Release:        FreeBSD 3.0-STABLE i386
>Organization:
>Environment:

	FreeBSD 3.0-STABLE i386 CVSuped around January 21, 1999.


>Description:

	I first noticed something was wrong when I open an xterm.  In my
	~/.profile I tell it to enable other users to write to my terminal
	via 'mesg y'.  The following error command is produced:

		mesg: /dev/ttyp0: Operation not permitted

	It doesn't matter which xterm I'm on (I currently have 8 open right
	now), either. 

	Also, with my 8 xterms, obviously there should be logins shown from
	ptys.  Under my condition, there are no pty logins shown via finger
	or who:

[chris@holly /usr2/home/chris] $ finger
Login            Name                 TTY  Idle  Login Time   Office  Phone
chris            Chris Costello       v0   6:33  Sun    19:10
chris            Chris Costello       v1   6:37  Tue    21:41
chris            Chris Costello       v2   8:10  Mon    02:08
chris            Chris Costello       v3   8:10  Tue    21:28
chris            Chris Costello       v4   8:31  Sun    19:10
chris            Chris Costello       v5   8:11  Sun    19:59
chris            Chris Costello       v6   8:23  Mon    09:49
chris            Chris Costello       v7   8:25  Thu    19:37
chris            Chris Costello       v8   6:34  Sun    19:19
chris            Chris Costello       v9   6:38  Tue    21:40
chris            Chris Costello       va  18:23  Mon    03:04
chris            Chris Costello       vb   9:03  Sun    19:20
[chris@holly /usr2/home/chris] $ 


	Who gives me basically the same messages -- no pty logins.

	Further comparison, I looked at /dev/ttyp0 and /dev/ttyv0, both
	having logins by user chris (me):

[chris@holly /usr2/home/chris] $ ls -l /dev/tty[pv]0         
crw-rw-rw-   1 root     wheel      5,   0 Jan 29 06:25 /dev/ttyp0
crw--w----   1 chris    tty       12,   0 Jan 29 06:15 /dev/ttyv0


>How-To-Repeat:

	See description.

>Fix:
	
	I can't come up with a fix at this point in time as I don't understand
	exactly how tty ownership works.

>Release-Note:
>Audit-Trail:

From: Chris Costello <chris@holly.dyndns.org>
To: freebsd-bugs@freebsd.org
Cc:  
Subject: misc/9774
Date: Fri, 29 Jan 1999 06:32:01 PST

    it appears to only be a problem in X -- it might have to do with the
 fact that the X server is setuid.  telnet sessions appear as ptys, but xterm
 sessions do not.
 
 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: sheldonh 
State-Changed-When: Fri Mar 5 03:05:45 PST 1999 
State-Changed-Why:  
Closed with originator's consent; problem with eterm. 
>Unformatted:
