From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 14BBB6DE0219 for ; Wed, 10 Jan 2018 12:42:02 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.025 X-Spam-Level: X-Spam-Status: No, score=-0.025 tagged_above=-999 required=5 tests=[AWL=-0.025] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gRTa88U-Ws-Q for ; Wed, 10 Jan 2018 12:42:00 -0800 (PST) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id F29806DE0205 for ; Wed, 10 Jan 2018 12:41:59 -0800 (PST) Received: from fifthhorseman.net (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id 28689F99A; Wed, 10 Jan 2018 15:41:53 -0500 (EST) Received: by fifthhorseman.net (Postfix, from userid 1000) id D0B2A2045A; Wed, 10 Jan 2018 15:40:13 -0500 (EST) From: Daniel Kahn Gillmor To: Antoine Amarilli , notmuch@notmuchmail.org Subject: Re: Bug?: manpages are only readable by root when doing sudo make install with umask 077 In-Reply-To: <20180110182959.nci4wukse5y4yvot@zeta> References: <20180110153814.s3ptgetykmruivac@zeta> <87tvvt3cpk.fsf@fifthhorseman.net> <20180110182959.nci4wukse5y4yvot@zeta> Date: Wed, 10 Jan 2018 15:40:13 -0500 Message-ID: <87h8rt30sy.fsf@fifthhorseman.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2018 20:42:02 -0000 Hi Antoine-- On Wed 2018-01-10 19:29:59 +0100, Antoine Amarilli wrote: > On Wed, Jan 10, 2018 at 11:23:03AM -0500, Daniel Kahn Gillmor wrote: > That's right. Looking more closely I think the issue is only with the > permissions of the directories /usr/local/share/man/man*, not the files > that they contain. Of course this is still an obstacle for the manpages > to be readable. So I guess the following in doc/Makefile.local (just > above what you quoted): > > mkdir -p "$(DESTDIR)$(mandir)/man1" > mkdir -p "$(DESTDIR)$(mandir)/man5" > mkdir -p "$(DESTDIR)$(mandir)/man7" > > does not override the umask. I suspect that the parameter -m0644 should > be passed to these invocations too. That sounds about right, though i think you want -m0755, since the directories need the executable bit set to be traversable. Would you try this out (probably have to remove the existing directories first to test it, assuming that there's nothing there from anything other than notmuch), and then send a patch directly to the mailing list? thanks for your attention to detail here, it's the best way to make things work for everyone in the future :) --dkg