HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mesg: cannot change mode
Operating System - HP-UX
1831320
Members
3214
Online
110023
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
02-05-2004 02:40 AM
02-05-2004 02:40 AM
When some users login via telnet, they see this message: mesg: cannot change mode. Other users don't. Can you educate me as to what this means? Also, how can I fix it so they don't see this message any longer? Thanks, Robert
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2004 02:46 AM
02-05-2004 02:46 AM
Solution
"mesg" is a command that allows or denies messages from users using "wall" or "talk" to be sent to the terminal. My guess would be that the permisions on the device this user uses is wrong. type "tty" and then "ls -l" on the result to see if your user actually has permission to modify the permission on this device.
To be honest though, very few people use this any more except for broadcast messages saying the machine is going down. SO another alternaive is to remove the "mesg" command from $HOME/.profile or /etc/profile or wherever it is.
To be honest though, very few people use this any more except for broadcast messages saying the machine is going down. SO another alternaive is to remove the "mesg" command from $HOME/.profile or /etc/profile or wherever it is.
Never preceed any demonstration with anything more predictive than "watch this"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2004 02:46 AM
02-05-2004 02:46 AM
Re: mesg: cannot change mode
You probably have the following code in /etc/profile .profile or other source files.
mesg n > /dev/null
When su - to another user this code, which is designed to secure the terminal files from hackers doesn't have rights to execute. Its just a message, and can safely be ignored.
SEP
mesg n > /dev/null
When su - to another user this code, which is designed to secure the terminal files from hackers doesn't have rights to execute. Its just a message, and can safely be ignored.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2004 02:48 AM
02-05-2004 02:48 AM
Re: mesg: cannot change mode
This has to do with the 'mesg' command. In either the /etc/profile or the users .profile you may see a line like 'mesg n'. That is most likely the cause of your problem.
If you want to eliminate these messages then you could comment out the 'mesg n' line.
For more information on what this does to a 'man mesg'.
If you want to eliminate these messages then you could comment out the 'mesg n' line.
For more information on what this does to a 'man mesg'.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP