1

I want suppress the message showed up each time on login:

Debian GNU/Linux 6.0 <ip-addr> tty1
<ip-addr> login:

Does someone know where is the config to change it?

UPD1

to suppress <ip-addr> one can empty the /etc/hostname file

still the question, how to suppress the whole greeting message motd things are working for me only within the SSH logins, but not for direct server login

2 Answers 2

6

Probably you want to change /etc/motd, /etc/motd.tail or their linked targets. Motd translates to "Message of the day". Also check the contents of /etc/update-motd.d (at least on ubuntu). This is what the Debian Wiki says about it. If you want to remove the motd completely:

sudo rm /etc/motd
sudo touch /etc/motd
7
  • that one I know, but its only for SSH logins, not for a normal direct login.
    – static
    Nov 22, 2012 at 14:26
  • thanx for the link to the debian wiki about the motd, there is described where in the motd Linux blabla come from: uname -snrvm > /var/run/motd
    – static
    Nov 22, 2012 at 14:59
  • Yes, but remember it's overwritten all the time. So if you want to get rid of everything, remove the symlink /etc/motd and replace it with an empty file.
    – Michael
    Nov 22, 2012 at 15:01
  • I created ~/.hushlogin as described here link
    – static
    Nov 22, 2012 at 15:03
  • but the direct login works another way as I see it stays unchanged after all this motd tricks...
    – static
    Nov 22, 2012 at 15:08
3

So I found it. It is not a login message, it is a pre-login or logon message described in the files

/etc/issue     - normal pre-login
/etc/issue.net - telnet pre-login

Here the description: link1 link2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .