hushlogin?
Giorgos Keramidas
keramida at ceid.upatras.gr
Fri Jun 25 14:07:38 PDT 2004
[-- Moved to freebsd-questions from freebsd-bugs --]
On 2004-06-21 10:30, Alex Mitchell <alex at 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 at 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 at gothmog[23:42]/home/giorgos$ touch .hushlogin
giorgos at gothmog[23:42]/home/giorgos$ exit
logout
Connection to gothmog closed.
giorgos at gothmog[23:42]/home/giorgos$ ssh -l giorgos localhost
Password:
giorgos at 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 at gothmog[00:02]/home/giorgos$ cat .rhosts
127.0.0.1 giorgos
giorgos at gothmog[00:03]/home/giorgos$ ls -ld .hushlogin
ls: .hushlogin: No such file or directory
giorgos at gothmog[00:03]/home/giorgos$ rsh localhost ls -ld .rhosts
-rw------- 1 giorgos giorgos 18 Jun 26 00:01 .rhosts
giorgos at 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
More information about the freebsd-questions
mailing list