<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Message of the day in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403350#M201265</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can use the news command which displays contents of files under /var/news upon login&lt;BR /&gt;Read man news for more info&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Franky</description>
    <pubDate>Tue, 19 Oct 2004 09:46:04 GMT</pubDate>
    <dc:creator>Franky_1</dc:creator>
    <dc:date>2004-10-19T09:46:04Z</dc:date>
    <item>
      <title>Message of the day</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403348#M201263</link>
      <description>On hpux 11.0, how can I give message when a user logs in first time, &amp;amp; if I need to restrict to a perticular group a perticular message, how can I do that</description>
      <pubDate>Tue, 19 Oct 2004 09:41:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403348#M201263</guid>
      <dc:creator>vaman</dc:creator>
      <dc:date>2004-10-19T09:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Message of the day</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403349#M201264</link>
      <description>You can edit the file /etc/motd with whatever you want.  Legal disclaimers are a popular choice here, as this is displayed to all logins.&lt;BR /&gt;&lt;BR /&gt;To restrict by group, you could edit the /etc/profile to print a message on certain conditions, such as a login IDs group affiliation (man groups for more info).&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Tue, 19 Oct 2004 09:44:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403349#M201264</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-10-19T09:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Message of the day</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403350#M201265</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can use the news command which displays contents of files under /var/news upon login&lt;BR /&gt;Read man news for more info&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Franky</description>
      <pubDate>Tue, 19 Oct 2004 09:46:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403350#M201265</guid>
      <dc:creator>Franky_1</dc:creator>
      <dc:date>2004-10-19T09:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Message of the day</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403351#M201266</link>
      <description>The default profile displays the contents of /etc/motd for this very purpose.  Put your contents in this file.&lt;BR /&gt;&lt;BR /&gt;The part in /etc/profile that calls it looks like this: -&lt;BR /&gt;&lt;BR /&gt;   # Message of the day&lt;BR /&gt;&lt;BR /&gt;        if [ -r /etc/motd ]&lt;BR /&gt;        then&lt;BR /&gt;                cat /etc/motd&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;To restrict it to a certain group, eg GID 110, you could modify this to&lt;BR /&gt;&lt;BR /&gt;   # Message of the day&lt;BR /&gt;&lt;BR /&gt;        if [ -r /etc/motd -a $(id -g) -eq 110 ]&lt;BR /&gt;        then&lt;BR /&gt;                cat /etc/motd&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;If you wanted different messages for different groups, you could have: -&lt;BR /&gt;&lt;BR /&gt;   # Message of the day&lt;BR /&gt; &lt;BR /&gt;        gid=$(id -g)&lt;BR /&gt;&lt;BR /&gt;        if [ -r /etc/motd.$gid ]&lt;BR /&gt;        then&lt;BR /&gt;                cat /etc/motd.$gid&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;Then have /etc/motd.100 , /etc/motd.110 etc.</description>
      <pubDate>Tue, 19 Oct 2004 09:51:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403351#M201266</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2004-10-19T09:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Message of the day</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403352#M201267</link>
      <description>I do not have /etc/motd still I get some message every time I login, it is not from/etc/profile or.profile.&lt;BR /&gt;The messages are like last successful login, last unsuccessful login &amp;amp; some notice,&lt;BR /&gt;Can i know where it is comming from?</description>
      <pubDate>Tue, 19 Oct 2004 10:27:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403352#M201267</guid>
      <dc:creator>vaman</dc:creator>
      <dc:date>2004-10-19T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Message of the day</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403353#M201268</link>
      <description>The last successful login messages etc are generated by the "login" process upon successful authentication, before the profiles are executed.&lt;BR /&gt;&lt;BR /&gt;Not sure what you mean by "notice"?  Perhaps you mean a banner displayed before the login: prompt?  If so then check /etc/inetd.conf for the telnet service.  It may have -b /etc/issue which means it displays the contents of that file before login.</description>
      <pubDate>Tue, 19 Oct 2004 10:32:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403353#M201268</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2004-10-19T10:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Message of the day</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403354#M201269</link>
      <description>Hello Simon,&lt;BR /&gt;&lt;BR /&gt;Yes I mean banners, last login info displayed before I get prompt, but it is not from /etc/issue as I checked the contents of that file, &lt;BR /&gt;Also I am not using telnet but ssh&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Oct 2004 11:46:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403354#M201269</guid>
      <dc:creator>vaman</dc:creator>
      <dc:date>2004-10-19T11:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Message of the day</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403355#M201270</link>
      <description>IF I am using SSH to connect hpux system, what is the file that will give me banner before shell prompt</description>
      <pubDate>Tue, 19 Oct 2004 12:19:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403355#M201270</guid>
      <dc:creator>vaman</dc:creator>
      <dc:date>2004-10-19T12:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Message of the day</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403356#M201271</link>
      <description>sshd will display /etc/motd, unless disabled in the config file /etc/sshd.config or  $HOME/.ssh/config.  Alternate files may be specified in  $HOME/.ssh/environment,  $HOME/.ssh/rc or other files in that directory path, depending on your ssh implementation.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Tue, 19 Oct 2004 12:26:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403356#M201271</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-10-19T12:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Message of the day</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403357#M201272</link>
      <description>You might be looking for /etc/issue except /etc/issue will not display a message to users whom telnet into the machine.</description>
      <pubDate>Tue, 19 Oct 2004 12:32:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-of-the-day/m-p/3403357#M201272</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2004-10-19T12:32:34Z</dc:date>
    </item>
  </channel>
</rss>

