From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Screen: Cannot open your terminal '/dev/tty1' - please check [Update]
Date: Sat, 14 Mar 2015 21:23:17 +0200 [thread overview]
Message-ID: <55048AA5.3090507@gmail.com> (raw)
In-Reply-To: <B9F078E9-BBB2-4C0F-B028-59824240B703@iki.fi>
On 14/03/2015 20:53, Matti Nykyri wrote:
>> On Mar 14, 2015, at 12:47, German <gentgerman@gmail.com> wrote:
>>
>> On Sat, 14 Mar 2015 10:33:59 +0000
>> Neil Bothwick <neil@digimed.co.uk> wrote:
>>
>>> On Sat, 14 Mar 2015 06:08:34 -0400, German wrote:
>>>
>>>>> Forget about "chmod 770". Better do a "chmod g+rw". :-)
>>>>
>>>> Tried it, it also doesn't stay permanently. OK, no solution :(
>>>
>>> The correct solution is a udev rule, but it appears that something may be
>>> overriding that when you login.
>>
>> I have the same udev rule. Yes, something is overriding it.
>>
>> A kludgy solution is to add the chmod
>>> command to ~/.bash_profile.
>
> 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.
>
> The problem has nothing to do with udev. If you don't like a volatile /dev just remove udev and create everything you wan't by hand (not recommended ;)
>
> Another thing i'm puzzled by is, why do you wan't to login as root and the su to someone else? I usually do it the other way around...
>
There is a use-case for doing it (but I highly doubt the OP is using it)
Take a system user like eg sybase or rancid. You can't run those apps as
root (it messes with permissions etc, and some scripts detect EUID 0 and
refuse to run). The sybase and rancid users can't log in at all, and the
system is set up so I can't su as me to that account directly. So I have
to go from my login account to root then drop privs to the system user.
--
Alan McKinnon
alan.mckinnon@gmail.com
next prev parent reply other threads:[~2015-03-14 19:23 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 [this message]
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
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=55048AA5.3090507@gmail.com \
--to=alan.mckinnon@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