can't access tty; job control turned off (busybox?)

rtmistler - December 3, 2010

Using the default build for MVL6.0 on Intel ATOM Z530; my root login immediately gives me:

"-sh: can't access tty; job control turned off"

tty is /usr/bin/tty, executing this gives me "/dev/console"

If I "echo 1 > /dev/console" I see that echo out on my default console.  Also if I "echo 1 > /dev/tty0" I see that echo out on my default console.

My boot line is:

bzImage console=tty0 noinitrd ip=0.0.0.0:::::eth0:off rw root=/dev/sda2

General Google searches seem to indicate that busybox is either build incorrectly, or there's some other problem associated with busybox.

My normal shell commands work; however if I execute /bin/sh or just enter "sh" I get

sh: can't access tty; job control turned off

Seems to be a protection thing when I see that; however ... I'm root.

Privileges for /dev/tty, ttyS0, ttyS1, ttyS2, and ttyS3 are all:

crw-rw---- whereas for all others tty0-63 are crw--w----

Most of these problems appear to be related to public distributions and nothing found yet in my web search refers to any MVL distribution or more specific busybox fixes.  There was one recommendation to rebuild busybox with different flags, likely with the intent to disable job control ... I do not know I didn't check that solution yet.

Share this

Comments

try

try replacing

con:2345:respawn:/sbin/getty console

with

con:2345:respawn:/sbin/getty -L ttyS1 115200 vt100

in /etc/inittab