FreeBSD showing version number upon login

Marcin Jessa lists at yazzy.org
Thu Feb 9 03:54:13 PST 2006


On Thu, 09 Feb 2006 11:44:17 +0000
"Poul-Henning Kamp" <phk at phk.freebsd.dk> wrote:

> In message <e367ea100602090316s3352395ibc8801604b06ddda at mail.gmail.com>, Frank 
> Altpeter writes:
> >On 2/9/06, alex <theawel at gmail.com> wrote:
> >> this had absolutely no effect, what i am trying to remove is the line
> >> that has the FreeBSD info:
> >>
> >> [canceroftheweb:~] alex% ssh -l alex shake
> >> Last login: Thu Feb  9 04:09:18 2006 from 192.168.0.100
> >>
> >> FreeBSD 6.0-RELEASE (GENERIC) #0: Thu Nov  3 09:36:13 UTC 2005
> >>
> >> Welcome to Master Shake!
> >>
> >> 4:14AM  up  3:06, 1 user, load averages: 0.00, 0.00, 0.00
> >> [shake:~] alex%
> >>
> >>
> >> There has got to be an easy way to delete that line!
> >
> >Uhm... "rm /etc/motd" ?
> 
> Uhm, "uname -a"  ?
> 
> Uhm "echo __FreeBSD_cc_version | cpp -E" ?
> 
> Uhm "strings /bin/cat | grep -i freebsd" ?
> 
> Thinking that you can hide from a user what operating system he
> is running on, you are seriously deluded...

This can be useful in case you give users a custom, resticted shell, something like
vtysh of quagga.
Otherwise you're right, I don't see any point in hiding this from users.
Besides this thread is not really appropriate for the freebsd-current@ mailing list... 

Cheers,
Marcin


More information about the freebsd-current mailing list