Errors "Cannot open your control terminal" or "cannot reopen stdout."Quote:Joe Chasan writes:
> /usr/bin/pg on my SCO OSE 5.0.0 system recently went wacko.
> no changes that can be traced to it.
> One day it works, then the next day all non-root users get
> "pg: cannot reopen stdout"
> As root, it works.
> I tried reinstalling pg from an older backup, checked permissions, tried
> rebooting, no improvement.
> Any ideas?
KEYWORDS: passwd man pg /dev/tty cannot open your control terminal reopen
stdoutpipe ksh more
RELEASE: SCO XENIX System V Operating System
SCO UNIX System V/386 Operating System
SCO Open Desktop Operating System
PROBLEM: When running the commands below, I get following errors:
Generic
pg(C) & man(C) - "pg: cannot reopen stdout"
On SCO UNIX and Open Desktop
passwd(ADM) - "Cannot open your control terminal"
On SCO XENIX
passwd(ADM) - Gives no error and does not prompt for
the new password.
Other commands may also fail with similar errors.
CAUSE: For some unknown reason, the system is missing the file /dev/tty.
This may have been caused by an improper system shutdown.
SOLUTION: Recreate the file /dev/tty. To do this, log in as root and type:
mknod /dev/tty c 3 0 # Character device 'c', major 3, minor 0
chmod 666 /dev/tty # Correct permissions
chown bin /dev/tty # Correct owner
For SCO XENIX only
chgrp bin /dev/tty # Correct group
For SCO UNIX and Open Desktop only
chgrp terminal /dev/tty # Correct group
The fixperm command could also be used to recreate this special
device file. See fixperm(ADM) for more information.
NOTE: If this problem occurs under KSH and the given solution does not
resolve the problem, then make sure KSH is not corrupted and it
is not transfered from another (non-SCO) system. Under certain
circumstances, rebuilding the kernel solves the problem. As the
last resort, you may remove and reinstall the KSH binary.
--