From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#74400: 31.0.50; tramp-loaddefs.elc suddenly owned by root Date: Thu, 2 Jan 2025 15:20:11 -0600 Message-ID: References: <871pz9q1ge.fsf@web.de> <86wmh1vmy0.fsf@gnu.org> <87wmh1oksp.fsf@web.de> <875xol92h1.fsf@gmx.de> <87serpoh2g.fsf@web.de> <87plmtpamy.fsf@web.de> <87y11h6iow.fsf@gmx.de> <86ed38vh9k.fsf@gnu.org> <877c8z8u9r.fsf@gmx.de> <86ldxfte12.fsf@gnu.org> <86ed1lhqps.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36452"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, 74400@debbugs.gnu.org, michael.albinus@gmx.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 22:21:17 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tTSd1-0009IC-UA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 22:21:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTScw-0001kW-IF; Thu, 02 Jan 2025 16:21:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTScp-0001cq-Jl for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 16:21:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTSco-0001pJ-3y for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 16:21:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=V0rD6XvTCYYZ8Gj16dIkTGvtQfVBCtzqIpMotIchfLE=; b=B/L7soJWQuf67SXhQJwFGK/fLYLyQRn/pnV1+b7qGRVaNjGc+FBFmsXlsvmwrn7nlyqngrGVv1w1doeZn3mIcG5Y71J6Wbamu4jGNe1haHwa0LVQKV6Tk7OcY05LuZrnq3Qu2XfNfPeKN1G4Nl/359EAZNfJKsOZByPAh6/z3/ifxs9UgcGjhgwzzASojkYYGsqKEy9yIf1QS4HtU4ZqRZnp9uSQ0oTZ8jHqoxjOqw7aRrf7LI2rhgnPpU45Pch9eUzNneXUnl/t/Xsgcv2bUjudsDlBp0gf4RohByWp/ClrwCAGBZpTkjm/mcVuzsU6yUIoZoURLFTAWCTKruk/vQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTScn-0001N5-Ny for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 16:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 21:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74400 X-GNU-PR-Package: emacs Original-Received: via spool by 74400-submit@debbugs.gnu.org id=B74400.17358528175160 (code B ref 74400); Thu, 02 Jan 2025 21:21:01 +0000 Original-Received: (at 74400) by debbugs.gnu.org; 2 Jan 2025 21:20:17 +0000 Original-Received: from localhost ([127.0.0.1]:46980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTSc4-0001KY-5A for submit@debbugs.gnu.org; Thu, 02 Jan 2025 16:20:16 -0500 Original-Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:58647) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTSc2-0001IJ-2b for 74400@debbugs.gnu.org; Thu, 02 Jan 2025 16:20:15 -0500 Original-Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5cecbddb574so20387092a12.1 for <74400@debbugs.gnu.org>; Thu, 02 Jan 2025 13:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735852812; x=1736457612; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=V0rD6XvTCYYZ8Gj16dIkTGvtQfVBCtzqIpMotIchfLE=; b=GNvfKOxraWcDFU/Pd12wLBorfDhIKKqEKokQwwSEx4vd9PhddGH3DTD1VjZkG9vXXD p9rwHfCUm5XZTscRNDJBNXpAbcCA0NPEoIIZyt2g08a3PPgGcSYdZmezvur8qsuQ/Wtt tfvcJ+3497mhErPyBVTv2ybdtXl5OmPQXgy75xAKbaWzGz1iIJEaZiYRLrZrLeHR4Wqw 7ihTKwD4SDxgSyHu0CpZs7iSlvw9FTm0cDLLRnv8EupYstCGcjRcmXpAFC5JO2qGd1uI gaZjPCff6F7NcQItTXaP4ehEVobMB6/V9vsiIAhkAFvWb9PowOnq4h87qzj4u/4uvZAi 3Etg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735852812; x=1736457612; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=V0rD6XvTCYYZ8Gj16dIkTGvtQfVBCtzqIpMotIchfLE=; b=ZdVyzzpWU3VAD8ZZqqeNcPIyg6f6tA4FkZLj6AxbfZanNECLEUQXZ+KmxVSq/8kBMR koPbHSOeC/zzPgGOmkZoGojSm9tMEKEoDJPFsSq/Hvy118gFiPsifShj/V2nThIDxAGB 0NfDn8hCiYrtrvbYddRu5XILs0yIqDTbx84SfupHZBIzc5JZKhYM5BpLC9RkCgSR3GD5 yL0UfTwRr/xcUflVGECAPEXF31kMn8htRKMjTfcjCx4C1O6ZRfttal5ho/0MVk+fvx9s DRA91fDAoVVOCPo5OIeqWo0cu0WEvzO/ELGcbfUQEeY7jEljMluD5NgdxBoXBS6Md90z 0k5A== X-Forwarded-Encrypted: i=1; AJvYcCUJtJTPnlgKK8lFtotFbqZVy0rDeydFAmHRf23EtNY/+36lEQMlprD5JQ8UPy0J6FJd9K5atw==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yz0c2+GjaA9Eg1JiWgcwQ9phKQ42Kc18GoMvhMPE3y8ia4Kq3xc a6TEamtQdi5Wv4meriQPrFdiXQSt0oAHnedR+F9bqjBQIzYCurvlCUXVLbs/q4S/nmD/ItrOnB/ vDBzia+sQMPnPHIwqlkPgCux7fiA= X-Gm-Gg: ASbGnctA4bM4uIBeKh8H1Jd/21PZzwxylqyzd4ovLmk71K8onVVtf7erWnUPG5tJj9k Je1D2MbYVYKKbv2TehrG6ElM9TtcUj6Z8XacOUcA= X-Google-Smtp-Source: AGHT+IGOARrf9IeaXlhDUwAyMf+mrIcUYpWYt7rKS7LnkQY3YQTlWEvj3LRcGvAW2yNPd2eudpquNUZFilnT/gczYcA= X-Received: by 2002:a05:6402:1ed2:b0:5d9:a91:3382 with SMTP id 4fb4d7f45d1cf-5d90a913393mr2189388a12.21.1735852811570; Thu, 02 Jan 2025 13:20:11 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 2 Jan 2025 15:20:11 -0600 In-Reply-To: <86ed1lhqps.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298242 Archived-At: Eli Zaretskii writes: >> From: Stefan Kangas >> Date: Thu, 2 Jan 2025 14:13:31 -0600 >> Cc: michael_heerdegen@web.de, 74400@debbugs.gnu.org >> >> Eli Zaretskii writes: >> >> >> From: Michael Albinus >> >> Cc: michael_heerdegen@web.de, 74400-done@debbugs.gnu.org >> >> Date: Tue, 19 Nov 2024 10:09:20 +0100 >> >> >> >> My example doesn't claim to be the recipe which happened to Michael. But >> >> it shows, that 'sudo make install' could create root-owned files in the >> >> build dir, and that's what this bug report is about. >> >> >> >> I don't know whether it is important enough to change something. But we >> >> should know (and document), that it could happen. >> > >> > If it's important enough, maybe. >> > >> > I think "make install" uses chmod to give everyone access to the file >> > because some files could be owned by root. If that works, why is the >> > ownership important? >> >> Does everyone get write rights, though? If not, how can you run >> commands like "git clean -fxd" as a regular root after "make install"? > > Sorry, I don't follow: "make install" writes to the installation > directory, and invokes chmod on the files installed there, whereas > "git clean -fxd" is run on the Git repository, which is a different > directory entirely. What am I missing? AFAIU, the issue here is that "sudo make install" can create root-owned files in the build directory.