>I'd like to make it *less* easy for the hacker wanna-be's
>to know what OS I am running and would to get rid of
>the banner that says
> SunOS 5.7
> login:
I'm adding the following to my "vfaq" file:
Subject: How do I prevent my machine from announcing OS version, daemon
version, etc in the banner message?
In unix, find the daemon in question, possibly by finding its line
in /etc/inetd.conf, and read its man page. For complex config files
(e.g. sendmail), search in the config file for the constant portions of
the string it's outputting (e.g. in sendmail.cf find the string "Sendmail"
with a capital 'S'). For telnetd, some systems have "-h" to suppress the
greeting and other systems output the contents of a file called something
like /etc/issue. (Note that in redhat linux, you really want to modify
/etc/rc.d/rc.local rather than (or in addition to) /etc/issue*, because
it regenerates /etc/issue* upon boot.)
[paragraph repeated from the article I just wrote re sendmail banner:]
But this might not really be a security issue and it might not be worth
your effort. Suppressing banners probably doesn't restrict any information
which is genuinely useful to an attacker. If an attacker has some "exploit"
program for sendmail 1.2.3 only, then rather than checking the banner
to see if your machine is in fact running sendmail 1.2.3, they might as
well just run the exploit program, which is a direct check of whether
you're vulnerable. Whereas the banner suppression *will* interfere with
some kinds of checking of sendmail versions which you yourself may want
to do occasionally.