<?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: remsh and login messages in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771946#M74940</link>
    <description>&lt;BR /&gt;You could fgrep -v -f /etc/copyright outputscriptpath&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Wed, 24 Jul 2002 18:22:42 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-07-24T18:22:42Z</dc:date>
    <item>
      <title>remsh and login messages</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771940#M74934</link>
      <description>I am doing an su from root to another account and issuing a subsequent remsh command.  ALl of the output is being re-directed to a file but the file is full of the information in the /etc/copyright file.  Is there any way to avoid this? Thanks.</description>
      <pubDate>Wed, 24 Jul 2002 18:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771940#M74934</guid>
      <dc:creator>Scott E Smith</dc:creator>
      <dc:date>2002-07-24T18:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: remsh and login messages</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771941#M74935</link>
      <description>Yes and no.  Yes you can zero out the copyright file.  I'd recommend backing up the old one for possible legal reasons.  I.E.&lt;BR /&gt;cp -p /etc/copyright /etc/copyright_orig&lt;BR /&gt;cat /dev/null &amp;gt;/etc/copyright&lt;BR /&gt;&lt;BR /&gt;FYI it is not the "su" causing the problem, but the remsh.  If no session is established in recex, rsh, rlogin then the /etc/copyright and /etc/motd are displayed as this becomes a login session.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Wed, 24 Jul 2002 18:07:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771941#M74935</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-07-24T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: remsh and login messages</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771942#M74936</link>
      <description>Do you want to disable the copyright info for all users?&lt;BR /&gt;To do that in /etc/profile&lt;BR /&gt;&lt;BR /&gt;comment out /etc/copyright.&lt;BR /&gt;&lt;BR /&gt;#cat /etc/copyright&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;~ Richard</description>
      <pubDate>Wed, 24 Jul 2002 18:08:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771942#M74936</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-07-24T18:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: remsh and login messages</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771943#M74937</link>
      <description>Might then there be a better way than remsh?  I tried rexec but it requires a password.</description>
      <pubDate>Wed, 24 Jul 2002 18:09:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771943#M74937</guid>
      <dc:creator>Scott E Smith</dc:creator>
      <dc:date>2002-07-24T18:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: remsh and login messages</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771944#M74938</link>
      <description>.: check the difference between :&lt;BR /&gt;# su - username  &lt;BR /&gt;AND&lt;BR /&gt;# su username &lt;BR /&gt;&lt;BR /&gt;Cheers! &lt;BR /&gt;PAP (a.k.a pliz assign points)!</description>
      <pubDate>Wed, 24 Jul 2002 18:10:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771944#M74938</guid>
      <dc:creator>T. M. Louah</dc:creator>
      <dc:date>2002-07-24T18:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: remsh and login messages</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771945#M74939</link>
      <description>That didt. Thanks T.M.</description>
      <pubDate>Wed, 24 Jul 2002 18:13:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771945#M74939</guid>
      <dc:creator>Scott E Smith</dc:creator>
      <dc:date>2002-07-24T18:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: remsh and login messages</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771946#M74940</link>
      <description>&lt;BR /&gt;You could fgrep -v -f /etc/copyright outputscriptpath&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 24 Jul 2002 18:22:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771946#M74940</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-07-24T18:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: remsh and login messages</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771947#M74941</link>
      <description>This is a very common problem. /etc/profile and .profile must be rewritten to bypass terminal-specific code. That's because cron jobs and remsh's do not have a controlling terminal. Thus, commands that are appropriate for an interactive login must be bypassed when there is no terminal.&lt;BR /&gt;&lt;BR /&gt;To determine whether this session is interactive, you can use:&lt;BR /&gt;&lt;BR /&gt;  if [ -o interactive ]&lt;BR /&gt;  then&lt;BR /&gt;     export INTERACTIVESHELL=/sbin/true&lt;BR /&gt;  else&lt;BR /&gt;     export INTERACTIVESHELL=/sbin/false&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;Now when a command such as ttytype or tset or the copyright message appears, run these commands only when INTERACTIVESHELL is true:&lt;BR /&gt;&lt;BR /&gt;if $INTERACTIVE&lt;BR /&gt;then&lt;BR /&gt;eval $(ttytype -s)&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;And here's a solution for the long copyright message:&lt;BR /&gt;&lt;BR /&gt;# This meets legal requirements...without the long message&lt;BR /&gt;&lt;BR /&gt;if $INTERACTIVE&lt;BR /&gt;then&lt;BR /&gt;   echo "\nThe copyright notice can be read by typing:  cat /etc/copyright\n"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Now, the message won't appear at all if the shell is not interactive and if it is, only the one-liner will be shown.&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jul 2002 00:27:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-and-login-messages/m-p/2771947#M74941</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-07-25T00:27:51Z</dc:date>
    </item>
  </channel>
</rss>

