From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.77) (envelope-from ) id 1SlF9s-0007w1-5m for garchives@archives.gentoo.org; Sun, 01 Jul 2012 08:05:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ADB11E0262; Sun, 1 Jul 2012 08:05:14 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 875CEE07E2 for ; Sun, 1 Jul 2012 08:03:29 +0000 (UTC) Received: from digimed.co.uk (yooden.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPSA id D1BDD8042E for ; Sun, 1 Jul 2012 09:03:28 +0100 (BST) Date: Sun, 1 Jul 2012 09:03:27 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Problem with sudo Message-ID: <20120701090327.1c89bbee@digimed.co.uk> In-Reply-To: References: Organization: Digital Media Production X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/t8AxaHVdCbpr8S2gDsNpAwX"; protocol="application/pgp-signature" X-Archives-Salt: 58d7ec25-95b2-4672-9e74-a3bfa1ee418f X-Archives-Hash: a0ca3f479e2ddb843f9bd4b31138bcda --Sig_/t8AxaHVdCbpr8S2gDsNpAwX Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 30 Jun 2012 21:55:27 -0500, Alecks Gates wrote: > Did you use it interactively? It should look like this: > alecks@linux:~$ sudo -i > root@linux: ~# echo "sys-boot/grub:2 **" >> > /etc/portage/package.accept_keywords/package.keywords.grub2 >=20 > Just the way I like to do it. You could also do something like "sudo > su" and I'm sure someone else here will have all sorts of > alternatives. sudo -i sudo su sudo bash sudo zsh sudo screen sudo tmux There are plenty of ways to get a root shell with sudo. > Just like I'm sure someone has a way to do it all in > one line, anyway. echo "some text" | sudo tee /some/file --=20 Neil Bothwick Disinformation is not as good as datinformation. --Sig_/t8AxaHVdCbpr8S2gDsNpAwX Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAk/wBE8ACgkQum4al0N1GQPQ4ACfaL1z9wEqFfT7djunHmfqoWsQ uQYAnA6oEXeoDUg/rg34QvWWmyvj28a+ =JGCp -----END PGP SIGNATURE----- --Sig_/t8AxaHVdCbpr8S2gDsNpAwX--