Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jun 2004 00:05:20 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Alex Mitchell <alex@vestigocorp.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: hushlogin?
Message-ID:  <20040625210520.GA5176@gothmog.gr>
In-Reply-To: <FKEJLIBBEDCPHJIAGPPBEEGMGCAA.alex@vestigocorp.com>
References:  <FKEJLIBBEDCPHJIAGPPBEEGMGCAA.alex@vestigocorp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[-- Moved to freebsd-questions from freebsd-bugs --]

On 2004-06-21 10:30, Alex Mitchell <alex@vestigocorp.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040625210520.GA5176>