Problem
I execute the command pg(C) either as root, or as a regular user, and take these steps:
- I shell escape, ":!sh" - If I am a regular user, I become root. - I execute the command mesg(C).
The above steps change the permissions on the /dev/tty device to:
crw-rw---- 1 root root 3, 0 Jun 3 15:13 /dev/ttyThe original state of the /dev/tty is 666 permissions. These
permission changes have subsequent problems on programs that
use the /dev/tty device.According to the man pages, the mesg command should only report the current state without changing it.
Solution
This has been fixed in SCO OpenServer Release 5.0.6.
As a workaround for earlier releases, do not execute mesg(C)
with root privileges in a shell environment in which the
controlling tty is /dev/tty. To find if this is the controlling
tty, type the tty(C) command. This will result in /dev/tty, or
some other device.Make sure to change the permissions of /dev/tty back to 666, as root, using this command:
#chmod 666 /dev/tty