Subject: bin/29554: PAM problems - telnetd doesn't obtain a ptyfs with the right user
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <gcw@primenet.com.au>
List: netbsd-bugs
Date: 02/28/2005 05:57:00
>Number:         29554
>Category:       bin
>Synopsis:       PAM'd telnetd/ptyfs gives a root owned tty
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 28 05:57:00 +0000 2005
>Originator:     Geoff C. Wing
>Release:        NetBSD 2.99.16 (2005-02-28)
>Organization:
>Environment:
System: NetBSD g.primenet.com.au 2.99.16 NetBSD 2.99.16 (G) #0: Sun Feb 27 14:34:43 EST 2005 gcw@g.primenet.com.au:/usr/netbsd/src/sys/arch/i386/compile/G i386
Architecture: i386
Machine: i386
>Description:
	% telnet updatedhost
	[....]
	% w
	4:52PM  up 1 day,  2:12, 6 users, load averages: 3.15, 2.69, 2.86
	USER     TTY     FROM                                  LOGIN@  IDLE WHAT
	gcw      9       localhost                             4:52PM     ? login -a \\^P\\^B\\M-~\\M-s\\^?\\000\\000\\^A\\000\\000\\000\\000\\000\\000\\000\
	% ls -l `tty`
	crw--w----  1 root  tty  5, 9 Feb 28 16:52 /dev/pts/9

>How-To-Repeat:
	see above
>Fix:
	?