From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +H8eChqzd1/megAA0tVLHw (envelope-from ) for ; Fri, 02 Oct 2020 23:09:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uPL0BRqzd1/VdQAA1q6Kng (envelope-from ) for ; Fri, 02 Oct 2020 23:09:14 +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 A9FE39402DA for ; Fri, 2 Oct 2020 23:09:13 +0000 (UTC) Received: from localhost ([::1]:39976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOUAq-0000D4-EY for larch@yhetil.org; Fri, 02 Oct 2020 19:09:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOUAh-0000CL-JM for bug-guix@gnu.org; Fri, 02 Oct 2020 19:09:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59408) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOUAf-0006Nf-PM for bug-guix@gnu.org; Fri, 02 Oct 2020 19:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOUAf-0002jk-Kf for bug-guix@gnu.org; Fri, 02 Oct 2020 19:09:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#39670: Cannot mount NFS share as user or root Resent-From: Nathan Dehnel Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 02 Oct 2020 23:09: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: Maxim Cournoyer Received: via spool by 39670-done@debbugs.gnu.org id=D39670.160168011810491 (code D ref 39670); Fri, 02 Oct 2020 23:09:01 +0000 Received: (at 39670-done) by debbugs.gnu.org; 2 Oct 2020 23:08:38 +0000 Received: from localhost ([127.0.0.1]:42721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOUAI-0002j8-7H for submit@debbugs.gnu.org; Fri, 02 Oct 2020 19:08:38 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:35632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOUAE-0002iu-1B for 39670-done@debbugs.gnu.org; Fri, 02 Oct 2020 19:08:36 -0400 Received: by mail-wr1-f45.google.com with SMTP id e16so3427349wrm.2 for <39670-done@debbugs.gnu.org>; Fri, 02 Oct 2020 16:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZQ+QE62S16mgy+RX/oM5DyGaiyGRDknEcm4HA0QyJFU=; b=rr0+pEMPcHyScra1q8MqdqQIak0utRd19ZwhYsWcKAssQ3g1UdxNnd0Ak04wsOLBNW 4AIO1kdVfe06oGlmyNeK05vYqJ2BbMIpzBzfaZzuA7wA4uorJ1LAqp4CiyB7mO+B9yWQ LJ1N15Nj/TmxjvtEbW5McN6IKVvJXRs/X71oYMxNlVdBh1WbxfSOcapzbgblSpeLEqne XYLaBAQpyNHs+o0Uvld9uw5UXKM8Qs0s4tOybD20/5yw7O4jzvSZVH+zGbn8/h6OVS27 TKMnCuMoGuXThB8Hbgw9/2SKS+uD3ezU/t/CUWEzg0Evzf4UiBH15ZZrRqbpSqL7M2kv jCPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZQ+QE62S16mgy+RX/oM5DyGaiyGRDknEcm4HA0QyJFU=; b=AffVlmFqKBsRNLkAKg+dk39dMo9aGfVJ+gj1xqcosxKvcFPkAABkQVgF4RxdHVereI 4kkFkv7isSpkKIi6eP8o3y6iOV4xHRuCLu2NiVx2oLre5K7lsENdWZH2GRR7xfp5YqTu RxymKdJ9B9x/84BE9nurWp+coS/XoKP6ICJSy/TWej9r0bUuPBiBqn9DQzr/+KXSI5EH 9qo6HSKD8w5bCvn1RW4YWXJHRp1ID3zr79VB1TkFWqRDk3n1TbgtA09s77LELiGlsLE6 m6xve+KGYi92xBthh/Ap8CKqUB6rxMZ97g6l1yC0w9NTK+nUUU/Lo8L4wLpgbhVMWprg sggQ== X-Gm-Message-State: AOAM5318DzaxeAKjcaR1XUuPF/6V4u8W9x+s/x7Ijw1NjCp1QxAxbGKj 3Zq7qw7ywglGdxLvJj+X6LqPKeyfOtA+W6pbayE= X-Google-Smtp-Source: ABdhPJwCXIFv9+qop91ZXOL8uoGsXa2E27rg1J8e5hU1nN3ye4CK5YQIfb0cfF1aroZzS+q9Llj/8Q8akjwF5yLN3j0= X-Received: by 2002:a5d:414b:: with SMTP id c11mr5176495wrq.181.1601680108322; Fri, 02 Oct 2020 16:08:28 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <87ft6xohfz.fsf@gmail.com> From: Nathan Dehnel Date: Fri, 2 Oct 2020 18:08:17 -0500 Message-ID: Content-Type: multipart/alternative; boundary="000000000000e6857405b0b83533" 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-done@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=rr0+pEMP; 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: JPgJHPQW0wkW --000000000000e6857405b0b83533 Content-Type: text/plain; charset="UTF-8" You should also setuid mount.nfs4 because the mount command calls that if you are using NFSv4. On Thu, Oct 1, 2020 at 2:47 PM Maxim Cournoyer wrote: > Hi! > > > Nathan Dehnel writes: > > > >> Right, but it's more inconvenient than just clicking the share in thunar > >> and it mounting. Actually, I can't mount it without doing "sudo" first, > >> despite having the "user" fstab flag set. This actually might be a > separate > >> issue, but I'm not sure. > > > > That's a good point. We should try to make this simpler. The mount.nfs > > binary needs to be setuid root to allow unprivileged users to mount NFS > > file systems. Unfortunately, the mount command (which we already define > > as setuid-root) only looked for helpers under /run/current/profile/sbin. > > This is now fixed in commit def6e2ae4619587114383b3f8fd9f3cf8310b4b9 > > (which had to be made on core-updates). > > > > [...] > > > I've sent a patch for review which proposes to add these setuid-root > binaries for > > desktop users out-of-the-box on Guix System, which only adds about 4 MiB > > to the almost 3 GiB closure of the lightweight-desktop.tmpl system [0]. > > > > As mentioned before, it depends on a change to util-linux that had to be > > made on the core-updates branch, so it won't be usable until the next > > core-updates merge. > > This patch has now been merged with commit d40c9f6c85. > > Closing! > > Thank you, > > Maxim > --000000000000e6857405b0b83533 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You should also setuid mount.nfs4 because the mount comman= d calls that if you are using NFSv4.

On Thu, Oct 1, 2020 at 2:47 PM Maxi= m Cournoyer <maxim.cournoye= r@gmail.com> wrote:
Hi!

> Nathan Dehnel <ncdehnel@gmail.com> writes:
>
>> Right, but it's more inconvenient than just clicking the share= in thunar
>> and it mounting. Actually, I can't mount it without doing &quo= t;sudo" first,
>> despite having the "user" fstab flag set. This actually = might be a separate
>> issue, but I'm not sure.
>
> That's a good point.=C2=A0 We should try to make this simpler.=C2= =A0 The mount.nfs
> binary needs to be setuid root to allow unprivileged users to mount NF= S
> file systems.=C2=A0 Unfortunately, the mount command (which we already= define
> as setuid-root) only looked for helpers under /run/current/profile/sbi= n.
> This is now fixed in commit def6e2ae4619587114383b3f8fd9f3cf8310b4b9 > (which had to be made on core-updates).
>

[...]

> I've sent a patch for review which proposes to add these setuid-ro= ot binaries for
> desktop users out-of-the-box on Guix System, which only adds about 4 M= iB
> to the almost 3 GiB closure of the lightweight-desktop.tmpl system [0]= .
>
> As mentioned before, it depends on a change to util-linux that had to = be
> made on the core-updates branch, so it won't be usable until the n= ext
> core-updates merge.

This patch has now been merged with commit d40c9f6c85.

Closing!

Thank you,

Maxim
--000000000000e6857405b0b83533--