Subject: bin/377: login(1) checks tty name to determine if it is a dialup
To: None <gnats-admin>
From: Thorsten Lockert <tholo@SigmaSoft.COM>
List: netbsd-bugs
Date: 08/02/1994 16:20:09
>Number:         377
>Category:       bin
>Synopsis:       login(1) checks tty name to determine if login is from dialup
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Aug  2 16:20:06 1994
>Originator:     Thorsten Lockert
>Organization:
SigmaSoft, Th. Lockert
>Release:        current
>Environment:
	
System: NetBSD gandalf.bbb.no 1.0-ALPHA NetBSD 1.0-ALPHA (GANDALF) #2: Sun Jul 24 18:47:54 MET DST 1994 tholo@gandalf.bbb.no:/usr/src/sys/arch/i386/compile/GANDALF i386


>Description:
	In login(1) there is code to syslog when a login is done through
	a dialup tty.  The check it performs looks like this:

	if (tty[sizeof("tty")-1] == 'd')
		syslog(LOG_INFO, "DIALUP %s, %s", tty, pwd->pw_name);
>How-To-Repeat:
	Read the code of login(1)
>Fix:
	One fix might be to add an extra flag in ttys(5) to indicate that
	some tty is a dialup, thus removing the dependency on such ttys to
	be named "ttydX".
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------