- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: remsh and login messages
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 11:02 AM
тАО07-24-2002 11:02 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 11:07 AM
тАО07-24-2002 11:07 AM
Re: remsh and login messages
cp -p /etc/copyright /etc/copyright_orig
cat /dev/null >/etc/copyright
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.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 11:08 AM
тАО07-24-2002 11:08 AM
Re: remsh and login messages
To do that in /etc/profile
comment out /etc/copyright.
#cat /etc/copyright
~ Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 11:09 AM
тАО07-24-2002 11:09 AM
Re: remsh and login messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 11:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 11:13 AM
тАО07-24-2002 11:13 AM
Re: remsh and login messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 11:22 AM
тАО07-24-2002 11:22 AM
Re: remsh and login messages
You could fgrep -v -f /etc/copyright outputscriptpath
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 05:27 PM
тАО07-24-2002 05:27 PM
Re: remsh and login messages
To determine whether this session is interactive, you can use:
if [ -o interactive ]
then
export INTERACTIVESHELL=/sbin/true
else
export INTERACTIVESHELL=/sbin/false
fi
Now when a command such as ttytype or tset or the copyright message appears, run these commands only when INTERACTIVESHELL is true:
if $INTERACTIVE
then
eval $(ttytype -s)
fi
And here's a solution for the long copyright message:
# This meets legal requirements...without the long message
if $INTERACTIVE
then
echo "\nThe copyright notice can be read by typing: cat /etc/copyright\n"
fi
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.
Bill Hassell, sysadmin