Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 1999 06:25:42 -0600 (CST)
From:      chris@holly.dyndns.org
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   misc/9774: PTYs are not set up properly 
Message-ID:  <199901291225.GAA00673@holly.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         9774
>Category:       misc
>Synopsis:       PTYs are not set up properly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 29 04:30:01 PST 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901291225.GAA00673>