Gentoo Archives: gentoo-user

From: Matti Nykyri <matti.nykyri@×××.fi>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Screen: Cannot open your terminal '/dev/tty1' - please check [Update]
Date: Tue, 17 Mar 2015 18:40:20
Message-Id: 3D97C856-A376-454C-9361-F624230CCE1B@iki.fi
In Reply to: Re: [gentoo-user] Screen: Cannot open your terminal '/dev/tty1' - please check [Update] by German
1 > On Mar 17, 2015, at 19:33, German <gentgerman@×××××.com> wrote:
2 >
3 > On Tue, 17 Mar 2015 19:16:42 +0200
4 > Matti Nykyri <matti.nykyri@×××.fi> wrote:
5 >
6 >>>> On Mar 17, 2015, at 18:11, German <gentgerman@×××××.com> wrote:
7 >>>>
8 >>>> Don't hit your head to a brick wall. A small strace to the login process reveals that login set things as you tell it to in /etc/login.defs
9 >>>>
10 >>>> In this file change the line:
11 >>>> TTYPERM 0600
12 >>>> To:
13 >>>> TTYPERM 0620
14 >>>>
15 >>>> And your problem is fixed.
16 >>>
17 >>> Sorry, this didn't fix it
18 >>
19 >> Yes. Sorry. The mode was wrong:
20 >>
21 >> TTYPERM 660
22 >>
23 >> Will fix it, if your screen is setgid tty and ttyX is gid tty. If not then:
24 >>
25 >> TTYPERM 666
26 >>
27 >> Will fix it, but also your tty will be world readable. If you don't consider that too big security risk, then just go
28 >
29 > Neither 660 nor 666 fixed it. Sorry :(
30
31 If you have:
32
33 TTYPERM 0666
34
35 And logout and login. What mode and ownership do you have in you tty (/dev/ttyX)?
36
37 --
38 -Matti

Replies