<?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: mesg: cannot change mode in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mesg-cannot-change-mode/m-p/5564215#M478646</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;and also when i login direct or by switch from root user to any normal user i don't see any thing under the home directory&lt;BR /&gt;but when i run more command as following&lt;BR /&gt;&lt;BR /&gt;$ more .profile&lt;BR /&gt;&lt;BR /&gt;i see the content of this file ????! although there is nothing&lt;BR /&gt;&lt;BR /&gt;$ ls -l&lt;BR /&gt;total 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ pwd&lt;BR /&gt;/home/mousa&lt;BR /&gt;$&lt;BR /&gt;$&lt;BR /&gt;$&lt;BR /&gt;$ cd&lt;BR /&gt;$ ll&lt;BR /&gt;total 0&lt;BR /&gt;$ pwd&lt;BR /&gt;/home/mousa&lt;BR /&gt;$&lt;BR /&gt;$&lt;BR /&gt;$&lt;BR /&gt;$ more .profile&lt;BR /&gt;&lt;BR /&gt;# @(#)B.11.31_LR&lt;BR /&gt;&lt;BR /&gt;# Default user .profile file (/usr/bin/sh initialization).&lt;BR /&gt;&lt;BR /&gt;# Set up the terminal:&lt;BR /&gt;if [ "$TERM" = "" ]&lt;BR /&gt;then&lt;BR /&gt;eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;else&lt;BR /&gt;eval ` tset -s -Q `&lt;BR /&gt;fi&lt;BR /&gt;stty erase "^H" kill "^U" intr "^C" eof "^D"&lt;BR /&gt;stty hupcl ixon ixoff&lt;BR /&gt;tabs&lt;BR /&gt;&lt;BR /&gt;# NOTE: '.' is added to $PATH for compatibility reasons only. This&lt;BR /&gt;# default will be changed in a future release. If "." is not&lt;BR /&gt;# needed for compatibility it is better to omit this line.&lt;BR /&gt;# Please edit .profile according to your site requirements.&lt;BR /&gt;&lt;BR /&gt;# Set up the search paths:&lt;BR /&gt;PATH=$PATH:.&lt;BR /&gt;&lt;BR /&gt;# Set up the shell environment:&lt;BR /&gt;set -u&lt;BR /&gt;trap "echo 'logout'" 0&lt;BR /&gt;&lt;BR /&gt;# Set up the shell variables:&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;export EDITOR&lt;BR /&gt;umask 077&lt;BR /&gt;mesg n&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Mon, 27 Feb 2012 04:51:32 GMT</pubDate>
    <dc:creator>itrc55</dc:creator>
    <dc:date>2012-02-27T04:51:32Z</dc:date>
    <item>
      <title>mesg: cannot change mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mesg-cannot-change-mode/m-p/5564207#M478645</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i facing strange issue with all users on multiple servers, where when i switch from root user to any other user as following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# su - testuser&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i facing the below message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mesg: cannot change mode&lt;BR /&gt;mesg: cannot change mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2012 04:42:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mesg-cannot-change-mode/m-p/5564207#M478645</guid>
      <dc:creator>itrc55</dc:creator>
      <dc:date>2012-02-27T04:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: mesg: cannot change mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mesg-cannot-change-mode/m-p/5564215#M478646</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;and also when i login direct or by switch from root user to any normal user i don't see any thing under the home directory&lt;BR /&gt;but when i run more command as following&lt;BR /&gt;&lt;BR /&gt;$ more .profile&lt;BR /&gt;&lt;BR /&gt;i see the content of this file ????! although there is nothing&lt;BR /&gt;&lt;BR /&gt;$ ls -l&lt;BR /&gt;total 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ pwd&lt;BR /&gt;/home/mousa&lt;BR /&gt;$&lt;BR /&gt;$&lt;BR /&gt;$&lt;BR /&gt;$ cd&lt;BR /&gt;$ ll&lt;BR /&gt;total 0&lt;BR /&gt;$ pwd&lt;BR /&gt;/home/mousa&lt;BR /&gt;$&lt;BR /&gt;$&lt;BR /&gt;$&lt;BR /&gt;$ more .profile&lt;BR /&gt;&lt;BR /&gt;# @(#)B.11.31_LR&lt;BR /&gt;&lt;BR /&gt;# Default user .profile file (/usr/bin/sh initialization).&lt;BR /&gt;&lt;BR /&gt;# Set up the terminal:&lt;BR /&gt;if [ "$TERM" = "" ]&lt;BR /&gt;then&lt;BR /&gt;eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;else&lt;BR /&gt;eval ` tset -s -Q `&lt;BR /&gt;fi&lt;BR /&gt;stty erase "^H" kill "^U" intr "^C" eof "^D"&lt;BR /&gt;stty hupcl ixon ixoff&lt;BR /&gt;tabs&lt;BR /&gt;&lt;BR /&gt;# NOTE: '.' is added to $PATH for compatibility reasons only. This&lt;BR /&gt;# default will be changed in a future release. If "." is not&lt;BR /&gt;# needed for compatibility it is better to omit this line.&lt;BR /&gt;# Please edit .profile according to your site requirements.&lt;BR /&gt;&lt;BR /&gt;# Set up the search paths:&lt;BR /&gt;PATH=$PATH:.&lt;BR /&gt;&lt;BR /&gt;# Set up the shell environment:&lt;BR /&gt;set -u&lt;BR /&gt;trap "echo 'logout'" 0&lt;BR /&gt;&lt;BR /&gt;# Set up the shell variables:&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;export EDITOR&lt;BR /&gt;umask 077&lt;BR /&gt;mesg n&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 27 Feb 2012 04:51:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mesg-cannot-change-mode/m-p/5564215#M478646</guid>
      <dc:creator>itrc55</dc:creator>
      <dc:date>2012-02-27T04:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: mesg: cannot change mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mesg-cannot-change-mode/m-p/5565243#M478683</link>
      <description>&lt;P&gt;In Unix, files with "." as the first character of the filename are normally hidden. You can see them when you add option "-a" to the ls command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In HP-UX, the "-a" option for ls is on by default for root, but off for all other users. So root will see all files with just "ls -l", but other users will need "ls -la".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you login, you are given the ownership to the TTY/PTY device of your session. You can know your tty device with the command "tty".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "mesg" command tries to change the permissions of the TTY/PTY device: "mesg n" is equivalent to "chmod o-w $(tty)", and "mesg y" is equivalent to "chmod o+w $(tty)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you use "su" or similar to switch to another user, the TTY/PTY device stays owned by the original user. When you switch from regular user to root, this is not a problem because root can change anything anyway. But when you switch from root to regular user, or from one regular user to another, commands like "mesg" may cause errors. This is usually nothing more than a minor inconvenience.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2012 15:55:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mesg-cannot-change-mode/m-p/5565243#M478683</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2012-02-27T15:55:45Z</dc:date>
    </item>
  </channel>
</rss>

