From owner-freebsd-bugs Fri Dec 15 2:20: 7 2000 From owner-freebsd-bugs@FreeBSD.ORG Fri Dec 15 02:20:01 2000 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2E3A837B402 for ; Fri, 15 Dec 2000 02:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eBFAK1x70369; Fri, 15 Dec 2000 02:20:01 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 15 Dec 2000 02:20:01 -0800 (PST) Resent-Message-Id: <200012151020.eBFAK1x70369@freefall.freebsd.org> Resent-From: gnats-admin@FreeBSD.org (GNATS Management) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: gnats-admin@FreeBSD.org, tanes73@yahoo.com Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3403337B402 for ; Fri, 15 Dec 2000 02:14:05 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eBFAE5K68822; Fri, 15 Dec 2000 02:14:05 -0800 (PST) (envelope-from nobody) Message-Id: <200012151014.eBFAE5K68822@freefall.freebsd.org> Date: Fri, 15 Dec 2000 02:14:05 -0800 (PST) From: tanes73@yahoo.com Sender: nobody@FreeBSD.org To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: i386/23562: telnetd doesn't show message in file specified by if in gettytab. Resent-Sender: gnats@FreeBSD.org Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 23562 >Category: i386 >Synopsis: telnetd doesn't show message in file specified by if in gettytab. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 15 02:20:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Tanes Sriviroolchai >Release: 4.2 Release >Organization: NCR (Thailand) Ltd. >Environment: FreeBSD checkserv.Thailand.ncr.com 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 2 0 13:02:55 GMT 2000 jkh@bento.FreeBSD.org:/usr/src/sys/compile/GENERIC i386 >Description: Telnetd(8) said that we can use s5 style /etc/issue by using if capability, which would overide im. However, no matter how I set if=/etc/issue: in /etc/gettytab and create (with proper mode) /etc/issue, the content of /etc/issue will not be shown. However, getty does show content inside /etc/issue on console. >How-To-Repeat: in /etc/gettytab add if as shown below. :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:if=/etc/issu e: create /etc/issue with mode 644 root/wheel and contain any messages such as Hello Issue Reboot. After the system restart, the console will display: Hello Issue FreeBSD/i386 (checkserv.Thailand.ncr.com) (ttyv0) login: Login and telnet localhost, you will see that it shows: FreeBSD/i386 (checkserv.Thailand.ncr.com) (ttyp2) login: instead of Hello Issue login: >Fix: Recompile telnetd from /usr/src/libexec/telnetd (4.2 Release) and update new telnetd back into distribution. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message