From owner-freebsd-doc Thu Feb 6 13:40: 4 2003 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DE8537B401 for ; Thu, 6 Feb 2003 13:40:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59FCA43FB1 for ; Thu, 6 Feb 2003 13:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h16Le1NS012315 for ; Thu, 6 Feb 2003 13:40:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h16Le1kM012314; Thu, 6 Feb 2003 13:40:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 098B237B406 for ; Thu, 6 Feb 2003 13:36:55 -0800 (PST) Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4917843FB1 for ; Thu, 6 Feb 2003 13:36:54 -0800 (PST) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: from nkinkade by sub21-156.member.dsl-only.net with local (Exim 4.10) id 18gthQ-0000Ia-00 for FreeBSD-gnats-submit@freebsd.org; Thu, 06 Feb 2003 13:36:48 -0800 Message-Id: Date: Thu, 06 Feb 2003 13:36:48 -0800 From: Nathan Kinkade Reply-To: Nathan Kinkade To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/48018: telnetd(8) manpage appears incorrect regarding gettytab Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 48018 >Category: docs >Synopsis: telnetd(8) manpage appears incorrect regarding gettytab >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 06 13:40:00 PST 2003 >Closed-Date: >Last-Modified: >Originator: Nathan Kinkade >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD sub21-156.member.dsl-only.net 4.7-STABLE FreeBSD 4.7-STABLE #5: Tue Nov 26 21:45:30 PST 2002 root@sub21-156.member.dsl-only.net:/usr/obj/usr/src/sys/SMP i386 >Description: The telnetd manpage clearly states in the Notes subsection that the telnetd will consult /etc/gettytab and process the 'im' capability if specified, and that if the 'if' capability is specified that this will override 'im'. telnetd does process the 'im' capability, but ignores the 'if' capability. It seems apparent from the telnetd source that it doesn't even check for the existence of the 'if' capability. Please see line 778-794 of file /usr/src/libexec/telnetd/telnetd.c. Whereas, the manpage for telnetd(8) reads: "You can also use a System V style /etc/issue file by using the if capability, which will override im. The information specified in either im or if will be displayed to both console and remote logins." >How-To-Repeat: Create the file /etc/issue, or whatever you happen to have specified in /etc/gettytab for the 'if' capability. Then attempt to login to the machine in question using telnet. The contents of the file /etc/issues is not displayed along with the login prompt, although the contents of the 'im' capability are displayed. >Fix: I suppose there are two approaches. Either configure telnetd to honor the 'if' capability of gettytab as the manpage states, or remove the offending text from the Notes subsection of the telnetd(8) manpage. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message