Technical article 118224

How come I can log in as a user, yet if I run "tty" I get the error "not a tty"?

OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

I log in to a server over a serial port or telnet connection, when I try to run "mscreen" I get "Unable to determine tty type" or if I run the command "tty" I get "not a tty".

I have run the "custom" check to "Software->Verify System" and the checks have been fine.

/etc/inittab contains all the correct "tty" entries for my system and the entries match the contents of /etc/conf/cf.d/init.base and /etc/conf/init.d.

Cause

It is possible that the /dev directory permissions have been reset.

Solution

Check to ensure that the permissions of /dev are set to:

drwxr-xr-x  12 bin      bin         6144 Jun  6 17:06 dev

Use the "chmod" and "chown" commands to fix it as required, for example:

# chmod 755 /dev
# chown bin:bin /dev

In order to ensure that other permissions are not broken elsewhere, run:

	     # /etc/fixmog -v

See also

chmod(C)
chown(C)
fixmog(ADM)
mscreen(M)
tty(C)

ta105411, "Filesystem Repair Utilities for SCO OpenServer 5.0.0, 5.0.2, 5.0.4, 5.0.5, 5.0.6" ta105591, "How is /etc/inittab affected by a kernel relink?" ta114363, "How do I unretire a user in Improved or High Security?" ta117224, "The escape (ESC) function key doesn't respond when running mscreens."

From the Xinuos technical article database, record 118224. Reproduced with permission. The original is at www.sco.com/ta/118224, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.