From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Newsgroups: gmane.emacs.help Subject: Re: sudo make install Date: Wed, 15 Apr 2015 10:15:46 +0000 Message-ID: References: <87pp76wl1e.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1429100096 25745 80.91.229.3 (15 Apr 2015 12:14:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2015 12:14:56 +0000 (UTC) To: Stefan Monnier , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 15 14:14:47 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YiMDO-0002jO-Js for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Apr 2015 14:14:47 +0200 Original-Received: from localhost ([::1]:60177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiMDN-0005kC-Of for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Apr 2015 08:14:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiKMM-0007zN-LE for help-gnu-emacs@gnu.org; Wed, 15 Apr 2015 06:15:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiKMG-0001iU-Tt for help-gnu-emacs@gnu.org; Wed, 15 Apr 2015 06:15:54 -0400 Original-Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:35151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiKMG-0001h2-Ew for help-gnu-emacs@gnu.org; Wed, 15 Apr 2015 06:15:48 -0400 Original-Received: by labbd9 with SMTP id bd9so28938543lab.2 for ; Wed, 15 Apr 2015 03:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marcher.name; s=dkim; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=R4IT9b38NNRdjXWC61nwcgeh8ev4cSu5XAEaoYjrlzk=; b=XKz6TMFUvLC3olwdLjLipCWz6BX16NZPM97T3BYC58BjeGaZe2SPYdgXYJH34kjC3X 35Eizx1+3DCL7TxopXXsau/DF1BQGxQDVTmgAtGlEIrVi0z7Jr7sPjzaMsqNPkyhkMPb HOo/EspPFSVeL8Vgumf7GsXNaZLLIs57xUWTU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; bh=R4IT9b38NNRdjXWC61nwcgeh8ev4cSu5XAEaoYjrlzk=; b=Lm+VdL6ULePqWAJ22LGPt4SqzqKL7eYNcnumcGaNdkS5juE7ore6rx2LFKvCH1LQ6s b6kELJDbCgXNXdgIEgQ7cuxC0EPtBO3TMAVrZhlOWzjGAy6fn+4IbFF3rNDkExAcCNMT AR0X3k/mbi2YBkTdpWpeSS8yrHKfi5aCQBhS3z8BSSVg4RKIMZYJiFydwKbOhMJkFtB7 L9G13Y4tA4MJiJs2IT94Si3C9E7o0uUqs2lvxpiYZijqPWHcXb1Bfh3vco4f4p2sK+HD IYdZV+hm4DjgGsJxp351acjhiPzB7kA396I5pnwZJ/IuQ/f2VaMmZn3GBzS8LG4nDALP hhCw== X-Gm-Message-State: ALoCoQk0tkiiz0gb6JRyPNCT9zgjSKOAtiX2GuvGPaDLseMWPnj2TYRrxChq6TCdXBKthRaTuyj5 X-Received: by 10.152.182.167 with SMTP id ef7mr23176070lac.109.1429092946558; Wed, 15 Apr 2015 03:15:46 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22e X-Mailman-Approved-At: Wed, 15 Apr 2015 08:14:22 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103736 Archived-At: This might be controversial :) I've never been a fan of requiring root (uid 0) rights to install software in site-specific plases -- or install any software for that matter, but that topic is for a different mailing list. :) So this is what I've been doing for quite some time: * Use some "swadm" (Software Administration) group that has R/W access to the relevant directories (presumably /usr/local in your case) ** Maybe even extend that to "swadm-emacs" (or any other package) I only have to deal with the major distributions so /usr/local is enough for me. With the *BSD stuff you might want to choose a different site prefix, AFAIR ports/packages installs in /usr/local. Make yourself a member of that group and be done with it. In my specific case: I do like to build _and_ install with the same account. Yes that may be risky in case a build or install step goes south but practically I found that to be the easiest choice. regards, Martin On Wed, Apr 15, 2015 at 3:10 AM Stefan Monnier wrote: > > My question: when I want to "make install", I need to use "sudo". But > > after that operation, the emacs/ source dir now contains files owned by > > root. > > A "make install" right after "make" should not create/touch local files > (exactly for the reason you show). So if you do get some root-owned > files even though you did a (non-root) "make" right before the "make > install", I recommend you M-x report-emacs-bug. > > > Stefan > > >