<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Enable or Disable Login Messages</title>
	<atom:link href="http://ubuntu-tutorials.com/2007/12/09/how-to-enable-or-disable-login-messages/feed/" rel="self" type="application/rss+xml" />
	<link>http://ubuntu-tutorials.com/2007/12/09/how-to-enable-or-disable-login-messages/</link>
	<description>Enhancing your Ubuntu experience!</description>
	<lastBuildDate>Fri, 11 May 2012 05:04:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: sdebaun</title>
		<link>http://ubuntu-tutorials.com/2007/12/09/how-to-enable-or-disable-login-messages/#comment-12201</link>
		<dc:creator>sdebaun</dc:creator>
		<pubDate>Tue, 16 Nov 2010 11:26:44 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=518#comment-12201</guid>
		<description>Add Dynamic (or custom) Log-in Messages or remove them - (UBUNTU 10.04 LTS)
------------------------------------------------------------------------------------------------------

To add/edit dynamic info to the log-in message add a numbered script  to:  
  /etc/update-motd.d/

By numbered I mean, ordered. For example 000-yourmessage will come before 999-yourmessage.

To customize, just add what you want to the existing scripts, comment out what you don&#039;t want,  or remove the existing ones if you like.

(Editing /etc/motd does not work. Read the comment in: /etc/update-motd.d/99-footer)

To silence the log-in message-
By default, simply adding .hushlogin to your user home directory removes login messages for that user. The default configuration for that is configured in:      
 /etc/login.defs

You can change the .hushlogin path if needed, possibly silencing the message for all users by doing so.</description>
		<content:encoded><![CDATA[<p>Add Dynamic (or custom) Log-in Messages or remove them &#8211; (UBUNTU 10.04 LTS)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>To add/edit dynamic info to the log-in message add a numbered script  to:<br />
  /etc/update-motd.d/</p>
<p>By numbered I mean, ordered. For example 000-yourmessage will come before 999-yourmessage.</p>
<p>To customize, just add what you want to the existing scripts, comment out what you don&#8217;t want,  or remove the existing ones if you like.</p>
<p>(Editing /etc/motd does not work. Read the comment in: /etc/update-motd.d/99-footer)</p>
<p>To silence the log-in message-<br />
By default, simply adding .hushlogin to your user home directory removes login messages for that user. The default configuration for that is configured in:<br />
 /etc/login.defs</p>
<p>You can change the .hushlogin path if needed, possibly silencing the message for all users by doing so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://ubuntu-tutorials.com/2007/12/09/how-to-enable-or-disable-login-messages/#comment-11606</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 24 Jul 2010 19:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=518#comment-11606</guid>
		<description>Many thanks for the tip! It saved my day with sshfs, which fails to mount a remote partition (it gives a &quot;read: Connection reset by peer&quot; error message) when ssh-ing into the remote host generates output (such as a motd or some error message from the login script). Simply creating the $HOME/.hushlogin on my account on the remote host solved the problem.

I note that the solutions proposed in the comments above probably would not solve my problem. Redirecting the ssh output is probably not an option when ssh is called via sshfs, and i cannot modify files in /etc because i do not have root privileges on the remote host.</description>
		<content:encoded><![CDATA[<p>Many thanks for the tip! It saved my day with sshfs, which fails to mount a remote partition (it gives a &#8220;read: Connection reset by peer&#8221; error message) when ssh-ing into the remote host generates output (such as a motd or some error message from the login script). Simply creating the $HOME/.hushlogin on my account on the remote host solved the problem.</p>
<p>I note that the solutions proposed in the comments above probably would not solve my problem. Redirecting the ssh output is probably not an option when ssh is called via sshfs, and i cannot modify files in /etc because i do not have root privileges on the remote host.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Schnyder</title>
		<link>http://ubuntu-tutorials.com/2007/12/09/how-to-enable-or-disable-login-messages/#comment-8331</link>
		<dc:creator>Stefan Schnyder</dc:creator>
		<pubDate>Mon, 30 Mar 2009 14:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=518#comment-8331</guid>
		<description>I wanted to do this myself but creating the .hushlogin file also stops printing the motd file. I like to have my motd message but not the last login info.

I found another solution for Debian. I didn&#039;t test it under Ubuntu but since it&#039;s also Debian based it might work:

Edit the file /etc/pam.d/login

Comment out the line:
session optional pam_lastlog.so
which prints the last login info upon succesful login so it looks like this:
#session optional pam_lastlog.so

This will disable the last login message but still display the content of motd.

Have fun! ;)

Credits go to this guy: http://linux.derkeiler.com/Newsgroups/comp.os.linux.misc/2007-09/msg00952.html</description>
		<content:encoded><![CDATA[<p>I wanted to do this myself but creating the .hushlogin file also stops printing the motd file. I like to have my motd message but not the last login info.</p>
<p>I found another solution for Debian. I didn&#8217;t test it under Ubuntu but since it&#8217;s also Debian based it might work:</p>
<p>Edit the file /etc/pam.d/login</p>
<p>Comment out the line:<br />
session optional pam_lastlog.so<br />
which prints the last login info upon succesful login so it looks like this:<br />
#session optional pam_lastlog.so</p>
<p>This will disable the last login message but still display the content of motd.</p>
<p>Have fun! <img src='http://ubuntu-tutorials.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Credits go to this guy: <a href="http://linux.derkeiler.com/Newsgroups/comp.os.linux.misc/2007-09/msg00952.html" rel="nofollow">http://linux.derkeiler.com/Newsgroups/comp.os.linux.misc/2007-09/msg00952.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajveer Vashisth</title>
		<link>http://ubuntu-tutorials.com/2007/12/09/how-to-enable-or-disable-login-messages/#comment-3555</link>
		<dc:creator>Rajveer Vashisth</dc:creator>
		<pubDate>Fri, 25 Jan 2008 12:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=518#comment-3555</guid>
		<description>Either you can use the following

ex: 
ssh   &quot;df -k &#124; grep -i tmp&quot; 2&gt;/dev/null</description>
		<content:encoded><![CDATA[<p>Either you can use the following</p>
<p>ex:<br />
ssh   &#8220;df -k | grep -i tmp&#8221; 2&gt;/dev/null</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lonnie Olson</title>
		<link>http://ubuntu-tutorials.com/2007/12/09/how-to-enable-or-disable-login-messages/#comment-3178</link>
		<dc:creator>Lonnie Olson</dc:creator>
		<pubDate>Thu, 13 Dec 2007 00:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=518#comment-3178</guid>
		<description>My preferred method for handling /etc/motd is to display the server name you just connected to.  A very handy reminder, and lots of fun.

apt-get install figlet
figlet $HOSTNAME &gt; /etc/motd

FYI, the figfonts package contains some really fun fonts to use as well.</description>
		<content:encoded><![CDATA[<p>My preferred method for handling /etc/motd is to display the server name you just connected to.  A very handy reminder, and lots of fun.</p>
<p>apt-get install figlet<br />
figlet $HOSTNAME &gt; /etc/motd</p>
<p>FYI, the figfonts package contains some really fun fonts to use as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yorokobi</title>
		<link>http://ubuntu-tutorials.com/2007/12/09/how-to-enable-or-disable-login-messages/#comment-3183</link>
		<dc:creator>Yorokobi</dc:creator>
		<pubDate>Mon, 10 Dec 2007 21:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=518#comment-3183</guid>
		<description>Another option:

Create an empty /etc/issues.net file (`touch /etc/issues.net`) then uncomment the Banner line in /etc/ssh/sshd_config and restart ssh (`/etc/init.d/ssh restart`). This will trim the login [banner&#124;notice&#124;motd] down to one line: an  OS identifier. I tested this on Dapper, haven&#039;t tried it on Feisty or Gutsy.</description>
		<content:encoded><![CDATA[<p>Another option:</p>
<p>Create an empty /etc/issues.net file (`touch /etc/issues.net`) then uncomment the Banner line in /etc/ssh/sshd_config and restart ssh (`/etc/init.d/ssh restart`). This will trim the login [banner|notice|motd] down to one line: an  OS identifier. I tested this on Dapper, haven&#8217;t tried it on Feisty or Gutsy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: munwin</title>
		<link>http://ubuntu-tutorials.com/2007/12/09/how-to-enable-or-disable-login-messages/#comment-3182</link>
		<dc:creator>munwin</dc:creator>
		<pubDate>Mon, 10 Dec 2007 02:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=518#comment-3182</guid>
		<description>Do you know if it&#039;s possible to put dynamic information in the motd ? I&#039;d love to put the IPAddress in there. This would be beneficial to local console users (think VMWare images)... But it could change at each boot up - think DHCP... Any ideas ?</description>
		<content:encoded><![CDATA[<p>Do you know if it&#8217;s possible to put dynamic information in the motd ? I&#8217;d love to put the IPAddress in there. This would be beneficial to local console users (think VMWare images)&#8230; But it could change at each boot up &#8211; think DHCP&#8230; Any ideas ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: imbrandon</title>
		<link>http://ubuntu-tutorials.com/2007/12/09/how-to-enable-or-disable-login-messages/#comment-3181</link>
		<dc:creator>imbrandon</dc:creator>
		<pubDate>Mon, 10 Dec 2007 00:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=518#comment-3181</guid>
		<description>well your *almost* correct with the Message of the Day ( /etc/motd ) information,

when you login you are correct that the information is displayed from /etc/motd BUT you shouldent edit that file directly without also editing /etc/motd.tail ( a skeleton without the boot-time and kernel version at the top ) otherwise on next reboot your /etc/motd message will be overridden by /etc/motd.tail

just FYI :)</description>
		<content:encoded><![CDATA[<p>well your *almost* correct with the Message of the Day ( /etc/motd ) information,</p>
<p>when you login you are correct that the information is displayed from /etc/motd BUT you shouldent edit that file directly without also editing /etc/motd.tail ( a skeleton without the boot-time and kernel version at the top ) otherwise on next reboot your /etc/motd message will be overridden by /etc/motd.tail</p>
<p>just FYI <img src='http://ubuntu-tutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://ubuntu-tutorials.com/2007/12/09/how-to-enable-or-disable-login-messages/#comment-3180</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Sun, 09 Dec 2007 21:46:25 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=518#comment-3180</guid>
		<description>why not just do this:
ssh myserver 2&gt;/dev/null</description>
		<content:encoded><![CDATA[<p>why not just do this:<br />
ssh myserver 2&gt;/dev/null</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mlissner</title>
		<link>http://ubuntu-tutorials.com/2007/12/09/how-to-enable-or-disable-login-messages/#comment-3179</link>
		<dc:creator>mlissner</dc:creator>
		<pubDate>Sun, 09 Dec 2007 21:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=518#comment-3179</guid>
		<description>Yopu might add that motd stands for Message Of The Day.

On a similar note, you can put messages in your ~/.bashrc file with echo &quot;message text&quot;, and those will get displayed. However, it&#039;s paramount that you not do this because it will break ssh!</description>
		<content:encoded><![CDATA[<p>Yopu might add that motd stands for Message Of The Day.</p>
<p>On a similar note, you can put messages in your ~/.bashrc file with echo &#8220;message text&#8221;, and those will get displayed. However, it&#8217;s paramount that you not do this because it will break ssh!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic (User agent is rejected)
Database Caching 2/5 queries in 0.003 seconds using disk: basic
Object Caching 323/323 objects using disk: basic

Served from: ubuntu-tutorials.com @ 2012-05-24 17:19:03 -->
