Removing log in warranty-warning?


5 posts
by kirreen » Thu Dec 20, 2012 9:32 pm
When logging in I get a warning on Raspbian wheezy.
Code: Select all
Linux pi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
Last login: Thu Dec 20 20:08:18 2012 from 192.168.1.14
How can I remove this from all users? I can't find it in .bashrc, and I don't know where else it is.
Posts: 2
Joined: Thu Dec 20, 2012 8:57 pm
by joan » Thu Dec 20, 2012 10:02 pm
man motd (message of the day)
User avatar
Posts: 6001
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK
by rgh » Thu Dec 20, 2012 10:02 pm
It comes from /etc/motd (message of the day).
Posts: 220
Joined: Fri Nov 25, 2011 3:53 pm
by bgreat » Thu Dec 20, 2012 10:05 pm
It is the Message Of The Day...

/etc/motd contains:
Code: Select all
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.


You can replace the with your own message or delete for no additional message.

Note: You need to have root privileges to modify /etc/motd

Enjoy!
User avatar
Posts: 235
Joined: Mon Jan 23, 2012 2:09 pm
by kirreen » Thu Dec 20, 2012 10:12 pm
Can I comment lines in motd?
Is it text only? I currently have a script in .bashcr that gives me the IP and some more stuff, could I put this in the motd? The .bashcr script takes a few seconds after the motd to load.

EDIT: Should have checked the comment thing by myself, and I couldn't comment it.
Posts: 2
Joined: Thu Dec 20, 2012 8:57 pm