public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: German <gentgerman@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Screen: Cannot open your terminal '/dev/tty1' - please check [Update]
Date: Tue, 17 Mar 2015 16:31:01 -0400	[thread overview]
Message-ID: <20150317163101.9a6486c88007f5d44f6993ba@gmail.com> (raw)
In-Reply-To: <462A6275-708E-4A79-B148-01A257B9F476@iki.fi>

On Tue, 17 Mar 2015 22:14:03 +0200
Matti Nykyri <matti.nykyri@iki.fi> wrote:

> > On Mar 17, 2015, at 21:52, German <gentgerman@gmail.com> wrote:
> > 
> > On Tue, 17 Mar 2015 20:39:46 +0200
> > Matti Nykyri <matti.nykyri@iki.fi> wrote:
> > 
> >>> On Mar 17, 2015, at 19:33, German <gentgerman@gmail.com> wrote:
> >>> 
> >>> On Tue, 17 Mar 2015 19:16:42 +0200
> >>> Matti Nykyri <matti.nykyri@iki.fi> wrote:
> >>> 
> >>>>>> On Mar 17, 2015, at 18:11, German <gentgerman@gmail.com> wrote:
> >>>>>> 
> >>>>>> 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
> >>>>>> 
> >>>>>> In this file change the line:
> >>>>>> TTYPERM 0600
> >>>>>> To:
> >>>>>> TTYPERM 0620
> >>>>>> 
> >>>>>> And your problem is fixed.
> >>>>> 
> >>>>> Sorry, this didn't fix it
> >>>> 
> >>>> Yes. Sorry. The mode was wrong:
> >>>> 
> >>>> TTYPERM 660
> >>>> 
> >>>> Will fix it, if your screen is setgid tty and ttyX is gid tty. If not then:
> >>>> 
> >>>> TTYPERM 666
> >>>> 
> >>>> Will fix it, but also your tty will be world readable. If you don't consider that too big security risk, then just go
> >>> 
> >>> Neither 660 nor 666 fixed it. Sorry :(
> >> 
> >> If you have:
> >> 
> >> TTYPERM 0666
> >> 
> >> And logout and login. What mode and ownership do you have in you tty (/dev/ttyX)?
> > 
> > Ok, Matti, 0666 worked, now I can run screen as a user. Thanks. Do you think I have to try to run it 0660? Will it be less security risk?
> 
> Well 0666 = 666. The reason it now worked is because you logged out and then back in. This is becaus login program only reads the /etc/login.defs-file when you login.
> 
I pretty much sure that I logged out and logged in back after setting to 666 and it didn't work, but setting to 0666 has worked. Strange.

> With mode 0666 every user on your computer can read everything (every character) you have in your screen (so not much privacy). If you set:
> 
> TTYGROUP utmp
> TTYPERM 0660
> 
> And have:
> 
> -rwxr-sr-x root utmp /usr/bin/screen
> 
> Everything will also work and you have more privacy.

I'll be the only user on this system. So I guess I can leave it as it is.

> 
> When /bin/login us run it changes ownership of the tty to the user who logs in. Su -l does not do this. That is why the screen doesn't work. ConsoleKit is the program that is responsible for many of these permission changes. Do you have that installed?

I think ConsoleKit was installed when I emerged screen, but I am not sure.
> 
> -- 
> -Matti
> 
> 
> 
> 


-- 
German <gentgerman@gmail.com>


  reply	other threads:[~2015-03-17 20:31 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-13 15:52 [gentoo-user] Screen: Cannot open your terminal '/dev/tty1' - please check German
2015-03-13 15:59 ` Neil Bothwick
2015-03-13 16:06   ` German
2015-03-13 16:11     ` Canek Peláez Valdés
2015-03-13 16:22       ` German
2015-03-13 16:31         ` Canek Peláez Valdés
2015-03-13 16:38           ` German
2015-03-13 19:16   ` [gentoo-user] Screen: Cannot open your terminal '/dev/tty1' - please check [Update] German
2015-03-13 22:28     ` Neil Bothwick
2015-03-13 23:00       ` wabenbau
2015-03-13 23:12         ` German
2015-03-13 23:22         ` Neil Bothwick
2015-03-13 23:28           ` Neil Bothwick
2015-03-13 23:33             ` German
2015-03-13 23:55             ` Peter Humphrey
2015-03-14  0:07               ` wabenbau
2015-03-14  0:14                 ` wabenbau
2015-03-14 16:13                   ` Tom H
2015-03-14  0:16         ` wabenbau
2015-03-14 10:08           ` German
2015-03-14 10:33             ` Neil Bothwick
2015-03-14 10:47               ` German
2015-03-14 18:53                 ` Matti Nykyri
2015-03-14 19:23                   ` Alan McKinnon
2015-03-15  7:21                     ` Matti Nykyri
2015-03-15  9:52                   ` Peter Humphrey
2015-03-17 16:11                   ` German
2015-03-17 17:16                     ` Matti Nykyri
2015-03-17 17:33                       ` German
2015-03-17 18:39                         ` Matti Nykyri
2015-03-17 19:52                           ` German
2015-03-17 20:14                             ` Matti Nykyri
2015-03-17 20:31                               ` German [this message]
2015-03-17 15:36               ` German
2015-03-14 18:03             ` Tom H
2015-03-17 15:42               ` German
2015-03-17 20:59                 ` Tom H
2015-03-13 23:10       ` Peter Humphrey
2015-03-13 23:25         ` Neil Bothwick
2015-03-13 23:50           ` Peter Humphrey
2015-03-13 21:18   ` [gentoo-user] Screen: Cannot open your terminal '/dev/tty1' - please check [Yet another update] German

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150317163101.9a6486c88007f5d44f6993ba@gmail.com \
    --to=gentgerman@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox