- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Message of the day
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
Forums
Discussions
Discussions
Discussions
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
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
10-19-2004 02:41 AM
10-19-2004 02:41 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 02:44 AM
10-19-2004 02:44 AM
Re: Message of the day
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).
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 02:46 AM
10-19-2004 02:46 AM
Re: Message of the day
you can use the news command which displays contents of files under /var/news upon login
Read man news for more info
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 02:51 AM
10-19-2004 02:51 AM
SolutionThe part in /etc/profile that calls it looks like this: -
# Message of the day
if [ -r /etc/motd ]
then
cat /etc/motd
fi
To restrict it to a certain group, eg GID 110, you could modify this to
# Message of the day
if [ -r /etc/motd -a $(id -g) -eq 110 ]
then
cat /etc/motd
fi
If you wanted different messages for different groups, you could have: -
# Message of the day
gid=$(id -g)
if [ -r /etc/motd.$gid ]
then
cat /etc/motd.$gid
fi
Then have /etc/motd.100 , /etc/motd.110 etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 03:27 AM
10-19-2004 03:27 AM
Re: Message of the day
The messages are like last successful login, last unsuccessful login & some notice,
Can i know where it is comming from?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 03:32 AM
10-19-2004 03:32 AM
Re: Message of the day
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 04:46 AM
10-19-2004 04:46 AM
Re: Message of the day
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,
Also I am not using telnet but ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 05:19 AM
10-19-2004 05:19 AM
Re: Message of the day
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 05:26 AM
10-19-2004 05:26 AM
Re: Message of the day
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 05:32 AM
10-19-2004 05:32 AM