From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: sudo make install Date: Sun, 19 Apr 2015 15:33:26 +0200 Message-ID: <87twwc8cpl.fsf@web.de> References: <87pp76wl1e.fsf@web.de> <20150415151457700363175@bob.proulx.com> <87r3rkbalh.fsf@web.de> <20150416143415154796888@bob.proulx.com> <87vbgu3iac.fsf@web.de> <20150418130152206309092@bob.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429450438 6695 80.91.229.3 (19 Apr 2015 13:33:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Apr 2015 13:33:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 19 15:33:46 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 1YjpM2-0005Ki-JY for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Apr 2015 15:33:46 +0200 Original-Received: from localhost ([::1]:48537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjpM2-0003EB-3Y for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Apr 2015 09:33:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjpLq-0003E1-04 for help-gnu-emacs@gnu.org; Sun, 19 Apr 2015 09:33:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjpLl-0003r7-VK for help-gnu-emacs@gnu.org; Sun, 19 Apr 2015 09:33:33 -0400 Original-Received: from mout.web.de ([212.227.15.14]:65529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjpLl-0003qy-KO for help-gnu-emacs@gnu.org; Sun, 19 Apr 2015 09:33:29 -0400 Original-Received: from drachen.dragon ([94.217.114.52]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0MGCm7-1YWse83emF-00FAPu; Sun, 19 Apr 2015 15:33:28 +0200 In-Reply-To: <20150418130152206309092@bob.proulx.com> (Bob Proulx's message of "Sat, 18 Apr 2015 13:32:21 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:oX9y3E68nZm/5DzGYJKJJf7E5CR+e3vWnIpUY5Hmg7bMvQk7NnQ 4T3mAQVI43FvHQTXB+eGef+09NZR7qsjUAn5rc14v2NxJPlxqr/rdZQf2HxJKl9AQ90IBHw 3/Intz6y3M0oQJHxPpKsx8iq+BZuKC8rgFXe1BGP0UiaZb/pv7iE1+IgQJWzT5qGXoJQyCB CX7uPNGmVg1+KPSyxKvkA== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.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:103857 Archived-At: Hi Bob, > Again, if you are a solo individual working on your own laptop or > whatever then umask doesn't matter. If you are in group 'staff' then > you would be able to 'make install' and write the files to /usr/local > without root (without sudo, without su) and the files could be written > using a more restrictive 022 umask. The umask strategy above only > comes into play when there are multiple users needing to share a > working area. thanks again for your explanations. I think I got it right - but got confused by the octal notation of the umask and the optional leading zero. I didn't find any explanation of how the umask is interpreted for different numbers of digits. I tried "umask 0002", and saw from the umask -S output that it was what I wanted. I also understood the role of the sticky bit set for "/usr/share": it causes the files I created there to be group owned by "staff" even when it is not my primary group. But after all, it doesn't work as expected. When I do "make install", even with the correct umask in effect, installed stuff in /usr/local is not group writable. Looking at the output of "make install", "make" seems to set the umask explicitly itself: --8<---------------cut here---------------start------------->8--- [...] Installing utilities for users to run. umask 022 && /bin/mkdir -p "/usr/local/bin" for file in etags ctags emacsclient ebrowse ; do \ /usr/bin/install -c ${file} \ "/usr/local/bin"/` \ echo ${file} | sed -e 's/$//' -e 's,x,x,' \ ` || exit; \ done make[1]: Leaving directory '/home/micha/software/emacs/lib-src' if test "no" = "no"; then \ /usr/bin/install -c src/emacs "/usr/local/bin/`echo emacs-25.0.50 | sed 's,x,x,'`" || exit 1 ; \ chmod 1755 "/usr/local/bin/`echo emacs-25.0.50 | sed 's,x,x,'`" || true; \ if test "x" = x; then \ rm -f "/usr/local/bin/`echo emacs | sed 's,x,x,'`" ; \ cd "/usr/local/bin" && ln -s `echo emacs-25.0.50 | sed 's,x,x,'` `echo emacs | sed 's,x,x,'`; \ fi; [...] --8<---------------cut here---------------end--------------->8--- This prevents me from getting the result you suggested. Thanks, Michael.