Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] program to view/control virtual terminals (ctrl-alt-f[1-6])
Date: Thu, 29 Jun 2006 02:43:26
Message-Id: 7573e9640606281936i1c21bba6scf0166823607adc1@mail.gmail.com
In Reply to: [gentoo-user] program to view/control virtual terminals (ctrl-alt-f[1-6]) by Iain Buchanan
1 On 6/28/06, Iain Buchanan <iaindb@××××××××××××.au> wrote:
2 > The suggestions were screen, and showconsole. showconsole only shows
3 > output, and doesn't let you type into it; and screen can't (?) attach to
4 > such a virtual console.
5
6 Screen can definitely attach to a virtual console. I just tried the
7 following in /etc/inittab:
8
9 c5:2345:respawn:/usr/bin/screen -R tty5.localhost /bin/login
10 >/dev/tty5 </dev/tty5 2>&1
11 c6:2345:respawn:/usr/bin/screen -R tty6.localhost /bin/login
12 >/dev/tty6 </dev/tty6 2>&1
13
14 You can then attach to either of those with
15
16 screen -D -r tty5.localhost
17 screen -D -r tty6.localhost
18
19 The only thing you really can't do is login as root, because screen
20 uses psuedo tty's which are declared unsecure by default. Unless you
21 want to add all pty devices to /etc/securetty...
22
23 But there is no security with this setup anyway, because on a console
24 all one has to do is "Ctrl-a c" to get a root shell.
25
26 Still, this should give you an idea of what you will have to do if you
27 are going to write your own program to manage this...
28
29 -Richard
30 --
31 gentoo-user@g.o mailing list