From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E9167138CA3 for ; Sat, 14 Mar 2015 19:23:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4CCA2E0AB8; Sat, 14 Mar 2015 19:23:26 +0000 (UTC) Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 15E64E0A85 for ; Sat, 14 Mar 2015 19:23:25 +0000 (UTC) Received: by webcq43 with SMTP id cq43so12675105web.2 for ; Sat, 14 Mar 2015 12:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=JyfcFYrJSdJdxkOx2fcRpvw4sPZeHfTcbg1loCrbXy0=; b=d9r+Mhn3Z5qbuEWVvszxVF9Sh6Vzp1OluWW0U4MSHTpMS1JC+uhgkwjLoXBzAntRGA +Qmp01AV42OMDjdS3bYWzNdsFfp8YSqbr7ng2Huoz+zWrv3Zv8XbW7cOLQgsrQCO++ce 01p0+Z3d82iZriEtffTXP2OTSd7ScFoymqcl0KjgOEB2vYHmEJMLFtcx32d+x12M0FFc TcPCqsR5QdraPlGZYRtFoam08wIksowZpMQvuSLGGKcekuSoUxoCFuosTY+yFgBt9z1A Wh6PPCYl3WUaFxEVHQ39rmFHZE38FJVK9uJPfiSTdNQ50y9fLLkgBFf7Er3nFmh5W0rx 723g== X-Received: by 10.180.75.108 with SMTP id b12mr105631226wiw.44.1426361004004; Sat, 14 Mar 2015 12:23:24 -0700 (PDT) Received: from [172.20.0.40] (105-237-94-106.access.mtnbusiness.co.za. [105.237.94.106]) by mx.google.com with ESMTPSA id lu13sm8138442wic.10.2015.03.14.12.23.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Mar 2015 12:23:23 -0700 (PDT) Message-ID: <55048AA5.3090507@gmail.com> Date: Sat, 14 Mar 2015 21:23:17 +0200 From: Alan McKinnon User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Screen: Cannot open your terminal '/dev/tty1' - please check [Update] References: <20150313115241.60fee51b1e2d361dcdd99f7c@gmail.com> <125a8276-2199-4dae-8dc9-619ca436e548@email.android.com> <20150313151628.cc840cdef745f8947c944afd@gmail.com> <20150313222829.2423b7f6@digimed.co.uk> <20150314000034.10ed9854@hal9000.localdomain> <20150314011632.53fda22f@hal9000.localdomain> <20150314060834.3492e89c7ac2e449c93a2319@gmail.com> <20150314103359.735324c1@digimed.co.uk> <20150314064742.eb3fd479e7e54df67d2af665@gmail.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Archives-Salt: 948c157b-e15f-4d3e-91ab-7a64db0fb932 X-Archives-Hash: e5d127c1a271d4035fefdf48825eacbb On 14/03/2015 20:53, Matti Nykyri wrote: >> On Mar 14, 2015, at 12:47, German wrote: >> >> On Sat, 14 Mar 2015 10:33:59 +0000 >> Neil Bothwick 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