From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 21:07:38 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FF3316A4CE for ; Fri, 25 Jun 2004 21:07:38 +0000 (GMT) Received: from pinky.otenet.gr (pinky.otenet.gr [195.170.0.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8398943D55 for ; Fri, 25 Jun 2004 21:07:34 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a161.otenet.gr [212.205.215.161]) i5PL5Oav017963; Sat, 26 Jun 2004 00:05:25 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.11/8.12.11) with ESMTP id i5PL5L5v006029; Sat, 26 Jun 2004 00:05:21 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.11/8.12.11/Submit) id i5PL5Kjt006028; Sat, 26 Jun 2004 00:05:20 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 26 Jun 2004 00:05:20 +0300 From: Giorgos Keramidas To: Alex Mitchell Message-ID: <20040625210520.GA5176@gothmog.gr> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-questions@freebsd.org Subject: Re: hushlogin? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2004 21:07:38 -0000 [-- Moved to freebsd-questions from freebsd-bugs --] On 2004-06-21 10:30, Alex Mitchell wrote: > > I currently have FreeBSD 5.2.1 installed on an IBM xSeries 235. > I have HHP Dolphin scanners that dial into a radius server (modem > pool) which uses rlogin to transfer the scanner upload files to the > IBM server. I am using .hushlogin to suppress motd, but am still > having issues with the 'Last login:...' appearing. The "Last login:" message should not appear if you follo the instructions in the manpage of login(1). I just tested it and nothing gets printed: giorgos@gothmog[23:42]/home/giorgos$ ssh -l giorgos localhost Password: ******** Last login: Fri Jun 25 23:42:09 2004 from gothmog Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.2-CURRENT (CELERON) #2: Thu Jun 24 22:18:29 EEST 2004 giorgos@gothmog[23:42]/home/giorgos$ touch .hushlogin giorgos@gothmog[23:42]/home/giorgos$ exit logout Connection to gothmog closed. giorgos@gothmog[23:42]/home/giorgos$ ssh -l giorgos localhost Password: giorgos@gothmog[23:42]/home/giorgos$ Note that this was tested with ssh(1). The rsh(1) output doesn't contain "Last login: " messages, even if .hushlogin does not exist: giorgos@gothmog[00:02]/home/giorgos$ cat .rhosts 127.0.0.1 giorgos giorgos@gothmog[00:03]/home/giorgos$ ls -ld .hushlogin ls: .hushlogin: No such file or directory giorgos@gothmog[00:03]/home/giorgos$ rsh localhost ls -ld .rhosts -rw------- 1 giorgos giorgos 18 Jun 26 00:01 .rhosts giorgos@gothmog[00:04]/home/giorgos$ BTW, this is not a bug and does not belong in freebsd-bugs. Try posting to freebsd-questions the next time :-) - Giorgos