From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0F4eA6odhV9LQQAA0tVLHw (envelope-from ) for ; Tue, 13 Oct 2020 03:23:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CDxyOqkdhV8ocgAAbx9fmQ (envelope-from ) for ; Tue, 13 Oct 2020 03:23:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 992F39403CA for ; Tue, 13 Oct 2020 03:23:21 +0000 (UTC) Received: from localhost ([::1]:56184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSAuG-0004Hj-21 for larch@yhetil.org; Mon, 12 Oct 2020 23:23:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSAtz-0004HW-DU for bug-guix@gnu.org; Mon, 12 Oct 2020 23:23:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33190) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSAtx-0001yA-SS for bug-guix@gnu.org; Mon, 12 Oct 2020 23:23:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kSAtx-00054W-OE for bug-guix@gnu.org; Mon, 12 Oct 2020 23:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#39670: Cannot mount NFS share as user or root Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 13 Oct 2020 03:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39670 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Nathan Dehnel Received: via spool by 39670-submit@debbugs.gnu.org id=B39670.160255936619462 (code B ref 39670); Tue, 13 Oct 2020 03:23:01 +0000 Received: (at 39670) by debbugs.gnu.org; 13 Oct 2020 03:22:46 +0000 Received: from localhost ([127.0.0.1]:44736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSAth-00053q-QQ for submit@debbugs.gnu.org; Mon, 12 Oct 2020 23:22:45 -0400 Received: from mail-qv1-f52.google.com ([209.85.219.52]:46497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSAtg-00053d-D5 for 39670@debbugs.gnu.org; Mon, 12 Oct 2020 23:22:44 -0400 Received: by mail-qv1-f52.google.com with SMTP id s1so3215546qvm.13 for <39670@debbugs.gnu.org>; Mon, 12 Oct 2020 20:22:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=dQ7prGd/yWijBGQTcbITvJRFrKs5JOMyZtRHk4JSvk4=; b=IoOFVqK8ylYI0bn4Gx4NPlhBI5gtVx9Q9FgEbSfNIWkSjtjilmdUhj8jwXPxTXODbK 9s/hTbhxSQx9c8J0T5ZBALeRp0RS4+aCH7bfGbK15EF8cEwD5Zw/vV+j0NziI3ELxDqR koY2IQQ1u2YEooEJ1T8LvwsrgYbjdCWspOQI1OLOI2C32fyWWMPKBLI2nGLkhMX5JK+e 74sUmMf/o/VZ8mqjk/coKCyAbBDa1oM0yM+w1PXpOO6cU9uXP/01k3IUjEkQtALYZaRk 6Tpa8L/1Ur617l6GVrFsE89JjqqFyO8+IzcLRG8WJFZxwB5X+47oFg5C1oRsmdvKFDOt XMzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=dQ7prGd/yWijBGQTcbITvJRFrKs5JOMyZtRHk4JSvk4=; b=lcxaI8BFQMRBlEhqGCPe+NGR5ZKnM7NCMusIkAsqBBJke0pwbmmx7E1WzmL62omXQW kuB7+tQVr+CWYp2Y6MT/TfXwCEgoU+4t6Zmnu4shECUfzrM2z4Ur+APAAoR8d8fxuQb3 sQtzniIXM8VfqvPm1ceiuHqawvQY+FpvY6Nk8+PpQ/lWEIdRC70PZ/k9TyAN/j+ERXt0 LD2qe0Fg/0fIEq2iBBaqOo2ZHZkUyOC/yZ2PpcweVwaOBwvkI6qd8VLJ5JW+nZKE/tlq pjkUZwrj8Bcwl2b6ajHKMmd0fvRs7cLCOaTXHsYq9yHZWvJavbHVa6YiPzRERwnp/DL2 igGw== X-Gm-Message-State: AOAM531eyxWEk9LRN2aLlg633hq32C/LyeTipVs8TtfJv+xkyPOcQcqq EF4bVUaZCW0WC/2bA7GBh+fLn63/lBQwDg== X-Google-Smtp-Source: ABdhPJyyGpFfhARykmAw2RJ+JSx3ghia1inXg0kf2+6ru67ThUcXiMIJb62xYEZs3j5GN2Iq57Qx4w== X-Received: by 2002:ad4:43e5:: with SMTP id f5mr28620071qvu.12.1602559358688; Mon, 12 Oct 2020 20:22:38 -0700 (PDT) Received: from hurd (dsl-10-136-39.b2b2c.ca. [72.10.136.39]) by smtp.gmail.com with ESMTPSA id 63sm208192qkn.9.2020.10.12.20.22.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2020 20:22:37 -0700 (PDT) From: Maxim Cournoyer References: <87o8tvwpfk.fsf@gmail.com> <87v9o18bum.fsf@raisin.i-did-not-set--mail-host-address--so-tickle-me> <875zcg7nyu.fsf@gmail.com> <87y2kzvmc2.fsf@gmail.com> <878scyvczd.fsf@gmail.com> <87ft6xohfz.fsf@gmail.com> Date: Mon, 12 Oct 2020 23:22:36 -0400 In-Reply-To: (Nathan Dehnel's message of "Fri, 2 Oct 2020 18:08:17 -0500") Message-ID: <87362i95dv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 39670@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=IoOFVqK8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: UXSj2LtYsQP6 Hello Nathan, Nathan Dehnel writes: > You should also setuid mount.nfs4 because the mount command calls that if > you are using NFSv4. [...] I don't think that's necessary, if your program simply calls to the 'mount' command: sudo strace -f -s200 mount localhost:/pub /tmp/pub --8<---------------cut here---------------start------------->8--- [...] [pid 19019] execve("/run/current-system/profile/sbin/mount.nfs", ["/run/current-system/profile/sbin/mount.nfs", "localhost:/pub", "/tmp/pub", "-o", "rw"], 0x7fff431b5038 /* 21 vars */) = 0 [...] --8<---------------cut here---------------end--------------->8--- You see that mount ends up calling the mount.nfs binary, not mount.nfs4 (even though 'mount' reports this is using NFS v4.2). If you have some software using mount.nfs4, that could be patched to mount.nfs, as mount.nfs4 is just a symlink to mount.nfs. Thanks, Maxim