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.60) (envelope-from ) id 1Ouh21-00033u-BI for garchives@archives.gentoo.org; Sun, 12 Sep 2010 07:31:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 771F3E0805; Sun, 12 Sep 2010 07:29:56 +0000 (UTC) Received: from mail-iw0-f181.google.com (mail-iw0-f181.google.com [209.85.214.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 5EF3BE0805 for ; Sun, 12 Sep 2010 07:29:56 +0000 (UTC) Received: by iwn39 with SMTP id 39so4958377iwn.40 for ; Sun, 12 Sep 2010 00:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=byJKasfYg1RYHQWHKEBAd3Da3ZKhTgvIiBhFnH6O3/s=; b=AWQEHbM/iWWnmeDoyy1g2ncuG3e6/FaNqwCFUlpxoeVuewSO3SdR/VZ+NakylxoiWy 1pNI6jeK59I8B16oWw+uC1yyAv2lhT+M6JMatb1AbeAVqkDm5QI92uLX8wjshpW70oA/ vAGTyXqTr9UwiRQTgQvnnYOzn3Vpr/AAZWGwE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=qwjyla3CpR8jcIOFfNuuC85w479flu7iYZwZwceb85WLmJtdH1Q/Lb4u/gKbS+rU5p 6u8tGaOV+0MmT3gUVXf6tz0w/hAW+tdwuZVRAXDgkxnrU8zMkS/VnmyUJkKajV3lfoIj 5vLU1jmzMC/5RI+23jPk1HuFcb/3q7uspBDfU= Received: by 10.231.185.142 with SMTP id co14mr3881510ibb.97.1284276595890; Sun, 12 Sep 2010 00:29:55 -0700 (PDT) Received: from pacific.net.au (ppp5915.dsl.pacific.net.au [125.255.25.21]) by mx.google.com with ESMTPS id g31sm4594307ibh.16.2010.09.12.00.29.53 (version=SSLv3 cipher=RC4-MD5); Sun, 12 Sep 2010 00:29:54 -0700 (PDT) Date: Sun, 12 Sep 2010 17:29:49 +1000 From: Gregory Shearman To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] sudo in kernel config ? Message-ID: <20100912072949.GA17122@pacific.net.au> Mail-Followup-To: gentoo-user@lists.gentoo.org References: 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Archives-Salt: 7e41edd7-d3a6-4913-b560-7c9796c17866 X-Archives-Hash: 33524853af06755f3bae98c0e56454ad In linux.gentoo.user, you wrote: > > Some people, such as myself, use kernel sources outside of portage (I > follow a git repo) and do so as a non-root user. In this case the > kernel tree is not owned by root and the config/compile is easily done > as a non-root user. > > If you are super-paranoid. You can make a non-root copy > of /usr/src/linux and compile it as a non-root user. > > But there really isn't any point in using sudo. It's effectively doing > the same thing that you are trying to avoid. I agree there's no point in using sudo, but what's the problem? You don't need to edit the kernel sources merely to build a new kernel. You can build your kernel outside the tree using for example: make O=/home/user/kernel/tree/ menuconfig make O=/home/user/kernel/tree/ All files are put into the user's directory. All that's need is the KBUILD_OUTPUT environment variable set, so that drivers can find the kernel .config file etc. I've built my kernels like this for years now. All kernels are built by a specific user and then installed as root. No problem, no worries about permissions and no altering the portage installed kernel sources so that a purge (emerge -P gentoo-sources) will automatically remove the whole tree. -- Regards, Gregory.