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 17:17:04
Message-Id: AA71B2AC-BC67-4973-BF7C-1EA1AE79BB36@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 18:11, German <gentgerman@×××××.com> wrote:
2 >
3 >> 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
4 >>
5 >> In this file change the line:
6 >> TTYPERM 0600
7 >> To:
8 >> TTYPERM 0620
9 >>
10 >> And your problem is fixed.
11 >
12 > Sorry, this didn't fix it
13
14 Yes. Sorry. The mode was wrong:
15
16 TTYPERM 660
17
18 Will fix it, if your screen is setgid tty and ttyX is gid tty. If not then:
19
20 TTYPERM 666
21
22 Will fix it, but also your tty will be world readable. If you don't consider that too big security risk, then just go ahead.
23
24 --
25 -Matti

Replies