GNU bug report logs - #39670
Cannot mount NFS share as user or root

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Maxim Cournoyer <maxim.cournoyer@HIDDEN>; dated Tue, 18 Feb 2020 21:35:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 39670 <at> debbugs.gnu.org:


Received: (at 39670) by debbugs.gnu.org; 20 Feb 2020 16:25:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 20 11:25:51 2020
Received: from localhost ([127.0.0.1]:45706 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j4oe7-0004Ok-Aj
	for submit <at> debbugs.gnu.org; Thu, 20 Feb 2020 11:25:51 -0500
Received: from mail-qt1-f194.google.com ([209.85.160.194]:43282)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1j4oe0-0004OM-Sr
 for 39670 <at> debbugs.gnu.org; Thu, 20 Feb 2020 11:25:45 -0500
Received: by mail-qt1-f194.google.com with SMTP id g21so3255536qtq.10
 for <39670 <at> debbugs.gnu.org>; Thu, 20 Feb 2020 08:25:44 -0800 (PST)
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=AsV42ZDCtmP64WT2TRHEi3mc3VP9ohmUB0Ss6aFPACk=;
 b=UtJliTd2FNiB8cSQrrgym06TuI1H8aMRp8zT+XQS2+Ym0EZ2dFs6A04PhJpG6v+Dtl
 jpGmn0XlNXljfgNTswsVhvRkGgCQONPzGrIh7LCD5jysCP1gBGVD8mllzNax2Pwc4VK1
 DtmO29m4uGPi04/sSXGuyjNaCeeAjU6sxUx4yVMuhhSJOw3VsNKmBivHH0G+v3l5qGJ2
 ozo0L5R0b0UzVF9ySF28LkAD6EHCzV9xDMXFlvsrRlRqN87CaYgfquYdpm/YjUJwQO3m
 au4DXv2um1WK9i7JhLzA1hfLHclYVjKW+72N6qzXLq+7tMcYk6VqsX8VI4K5C4tD9CWd
 s96Q==
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=AsV42ZDCtmP64WT2TRHEi3mc3VP9ohmUB0Ss6aFPACk=;
 b=tHeO33Rrt4LE04rQmldtPje6gK1CHeS0KDr3DHHlECwAXtCiJcvq1FmHplqqAD0O4R
 BM+vTCQvHx8PK39+8736J6g9bpPuKuylcaZfTvJl2lmSgRLbJyzFWIOP6uvyY8yYm7PH
 9zCuli3l4mx5w2YBKeWTsRn0PgTPrKik7K7m/FkihWH0ZTJTxyXVKrPGd52GV4aJJ61Y
 C1Jfj86oZRi+xK2coiUywvertykFCXVn77Max5S4un7dlg9JkL1ogDhylSvIo5t2S4x4
 3WM8cM6mWAjqhcqlRXIWHWxg9GWBqs+jpb01smrXrJCpZXJ/oA/ooDVTc4t71+9+kQKs
 i86Q==
X-Gm-Message-State: APjAAAX+M4YzolwfQ+fNv3l0LKI+nr1hcSfZi9uijnVf3TUj6gH6jxad
 czTHbOBy3TIcq538Mqpf8uWHnu0aZNY=
X-Google-Smtp-Source: APXvYqw0fO1VmKoc8d6nKGshswXIyFG37d8awuKpQVE/iynoRgVh7dQIyxpTjCPbDJaIed/igJI96g==
X-Received: by 2002:ac8:1198:: with SMTP id d24mr27092149qtj.105.1582215939093; 
 Thu, 20 Feb 2020 08:25:39 -0800 (PST)
Received: from raisin ([2607:fad8:4:6:235e:8579:8464:aacc])
 by smtp.gmail.com with ESMTPSA id e3sm2008244qtb.65.2020.02.20.08.25.38
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 20 Feb 2020 08:25:38 -0800 (PST)
From: maxim.cournoyer@HIDDEN
X-Google-Original-From: mcournoyer@HIDDEN
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: Re: bug#39670: Cannot mount NFS share as user or root
References: <CAEEhgEsz+aka+h8P8RN56ochGf_fBeSegj6LOPVkxdwoSHB6oQ@HIDDEN>
 <87o8tvwpfk.fsf@HIDDEN>
Date: Thu, 20 Feb 2020 11:25:37 -0500
In-Reply-To: <87o8tvwpfk.fsf@HIDDEN> (Maxim Cournoyer's message of "Tue, 18
 Feb 2020 16:33:51 -0500")
Message-ID: <87v9o18bum.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 39670
Cc: Nathan Dehnel <ncdehnel@HIDDEN>, 39670 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

Maxim Cournoyer <maxim.cournoyer@HIDDEN> writes:
>
> I encountered this too.  Perhaps we should patch some references to
> mount.nfs (from nfs-utils) in the util-linux package which provides
> 'mount'.
>
> In the meantime, you should use "mount.nfs" directly.

I've looked into patching util-linux to reference explicitly the
mount.nfs helper, and I think this should do it:

--8<---------------cut here---------------start------------->8---
modified   libmount/src/context.c
@@ -1939,8 +1939,13 @@ int mnt_context_prepare_helper(struct libmnt_context *cxt, const char *name,
 		struct stat st;
 		int rc;
 
-		rc = snprintf(helper, sizeof(helper), "%s/%s.%s",
-						path, name, type);
+		if (startswith(type, "nfs")) {
+		  rc = snprintf(helper, sizeof(helper), "/gnu/store/c7kpr1jh5z3mrkz0yw9am86851y57cq7-nfs-utils-2.4.2/sbin/mount.nfs");
+		} else {
+		  rc = snprintf(helper, sizeof(helper), "%s/%s.%s",
+				path, name, type);
+		}
+
 		path = strtok_r(NULL, ":", &p);
 
 		if (rc < 0 || (size_t) rc >= sizeof(helper))

--8<---------------cut here---------------end--------------->8---

But, adding nfs-utils to util-linux creates a dependency cycle which is
bothersome to resolve (nfs-utils requires eudev through lvm2, as well as
util-linux itself).

I've also realised that when I was using 'sudo mount.nfs ...' it
wouldn't work because it'd look up the root user's PATH for the helper.
'sudo -E mount.nfs ...' should work.

We should document that the 'nfs-utils' package needs to be added to the
operating system declaration packages field when NFS file systems are
used.

Maxim




Information forwarded to bug-guix@HIDDEN:
bug#39670; Package guix. Full text available.

Message received at 39670 <at> debbugs.gnu.org:


Received: (at 39670) by debbugs.gnu.org; 18 Feb 2020 22:43:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 17:43:45 2020
Received: from localhost ([127.0.0.1]:41432 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j4Bai-0006vD-UZ
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2020 17:43:45 -0500
Received: from mail-qk1-f170.google.com ([209.85.222.170]:46889)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1j4Bai-0006un-5V
 for 39670 <at> debbugs.gnu.org; Tue, 18 Feb 2020 17:43:44 -0500
Received: by mail-qk1-f170.google.com with SMTP id u124so20728532qkh.13
 for <39670 <at> debbugs.gnu.org>; Tue, 18 Feb 2020 14:43:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=date:in-reply-to:references:mime-version:content-transfer-encoding
 :subject:to:cc:from:message-id;
 bh=U5K4sgGotOczKYCzj/EOER9IF3u9Bnw8jQMK6Am54pY=;
 b=XPLG27RZyebtjgLrfXHuXxMYZTdW53jcQwPVDQYo0B072HeQuErRkMwOBTXmimKvwY
 6vCZRpJxwEtlFpmZSQ8pFxNxVS4E5JEywCvBjIvSeVX228+wJ++FaBy8RTdUrvD3XVm/
 yU9mh4DTIYIrvKw+Uti64qmuKUCGGjRGC+Ca6N2IboKwQ9i1iazXRpOWHv6ZyB2tXHiq
 ZnLk5mh7q9ZHFmPDV8aWugFPn2YJaFSSrVzA1m7KSflx29mndbHFJ2XiNMCiriVfv0Dd
 QeTCkCs/3R3IECOR4nuhI9gCPQu3GVu+R0Cwr5VtAeIyhmHwCaOPKjiZ7AUgbvMexTsx
 m7+A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:date:in-reply-to:references:mime-version
 :content-transfer-encoding:subject:to:cc:from:message-id;
 bh=U5K4sgGotOczKYCzj/EOER9IF3u9Bnw8jQMK6Am54pY=;
 b=EE67Kftby5LZtEzNrdndnYe1BaYkyB0H/DT9SzEi79/rXuLTCPZmJwV/zM5QdoCuY5
 x82FtGb4bO7ekTdCX5ZKhVz7kUxgt5VWeygjZ3ILX1naDdRDqlGPtsfXBnlsA4Gm7tyR
 bDsiQyyZN+u8Jcu+EkXBiDkHSrm8nYnU4K5x4atOmRotPMu2TukpSigP2Y/3eZLSE0JX
 rrVIno1OY0YsfkSb/PxEaARSGYYvVZ8cugY5dln0dYKiDOfoPCYo5d0WEd9BthJajpVk
 tRtisZVHIbp/FaA4Av13Vl5HjyJLnQmeMJmcs5ZKzQ0QcBya/EKYn0Kqd2YL22oAanH5
 jzPA==
X-Gm-Message-State: APjAAAXVe7UNJN+r7TpUqqLPoqIbyloYSdNiUgVeDRXuZ+J84VOnf6MX
 pzmKz5T9BUqOOwK06OFORE8=
X-Google-Smtp-Source: APXvYqzLtLG0wHk7LbtEmJfPX+nSnDhwG1xpoRyAyz+OS0mKCQrPpT1RJM0uYsh8gg1ui+kGqWDv9Q==
X-Received: by 2002:a37:40d2:: with SMTP id
 n201mr20928820qka.211.1582065818652; 
 Tue, 18 Feb 2020 14:43:38 -0800 (PST)
Received: from [100.87.12.80] ([204.48.76.80])
 by smtp.gmail.com with ESMTPSA id v50sm2694809qtb.20.2020.02.18.14.43.37
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 18 Feb 2020 14:43:38 -0800 (PST)
Date: Tue, 18 Feb 2020 22:43:33 +0000
In-Reply-To: <CAEEhgEv5QE0=Kv1C1ftu3cEJAFksvv+1uM+p-T+MbNcUfmbY=g@HIDDEN>
References: <CAEEhgEsz+aka+h8P8RN56ochGf_fBeSegj6LOPVkxdwoSHB6oQ@HIDDEN>
 <87o8tvwpfk.fsf@HIDDEN>
 <CAEEhgEv5QE0=Kv1C1ftu3cEJAFksvv+1uM+p-T+MbNcUfmbY=g@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Subject: Re: bug#39670: Cannot mount NFS share as user or root
To: bug-guix@HIDDEN,Nathan Dehnel <ncdehnel@HIDDEN>
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Message-ID: <72552AC1-DDAE-4A72-A6CE-E91B6BBE5456@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 39670
Cc: 39670 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On February 18, 2020 9:43:29 PM UTC, Nathan Dehnel <ncdehnel@gmail=2Ecom> =
wrote:
>bash-5=2E0$ mount=2Enfs gentooserver:/ /media/store
>mount=2Enfs: permission denied: no match for /media/store found in
>/etc/fstab
>
>bash-5=2E0$ cat /etc/fstab | grep /media/store
>gentooserver:/ /media/store nfs4
>rw,_netdev,noauto,user,lazytime,exec,tcp
>
>?

Did you try as root?

Maxim 




Information forwarded to bug-guix@HIDDEN:
bug#39670; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Feb 2020 22:43:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 17:43:43 2020
Received: from localhost ([127.0.0.1]:41429 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j4Bah-0006v0-Jd
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2020 17:43:43 -0500
Received: from lists.gnu.org ([209.51.188.17]:37443)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1j4Bag-0006us-1H
 for submit <at> debbugs.gnu.org; Tue, 18 Feb 2020 17:43:42 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:36322)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1j4Bae-0001ZL-Vk
 for bug-guix@HIDDEN; Tue, 18 Feb 2020 17:43:41 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1j4Bad-0007bU-VY
 for bug-guix@HIDDEN; Tue, 18 Feb 2020 17:43:40 -0500
Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]:42626)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1j4Bad-0007YK-Qe
 for bug-guix@HIDDEN; Tue, 18 Feb 2020 17:43:39 -0500
Received: by mail-qk1-x72b.google.com with SMTP id o28so19906234qkj.9
 for <bug-guix@HIDDEN>; Tue, 18 Feb 2020 14:43:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=date:in-reply-to:references:mime-version:content-transfer-encoding
 :subject:to:cc:from:message-id;
 bh=U5K4sgGotOczKYCzj/EOER9IF3u9Bnw8jQMK6Am54pY=;
 b=XPLG27RZyebtjgLrfXHuXxMYZTdW53jcQwPVDQYo0B072HeQuErRkMwOBTXmimKvwY
 6vCZRpJxwEtlFpmZSQ8pFxNxVS4E5JEywCvBjIvSeVX228+wJ++FaBy8RTdUrvD3XVm/
 yU9mh4DTIYIrvKw+Uti64qmuKUCGGjRGC+Ca6N2IboKwQ9i1iazXRpOWHv6ZyB2tXHiq
 ZnLk5mh7q9ZHFmPDV8aWugFPn2YJaFSSrVzA1m7KSflx29mndbHFJ2XiNMCiriVfv0Dd
 QeTCkCs/3R3IECOR4nuhI9gCPQu3GVu+R0Cwr5VtAeIyhmHwCaOPKjiZ7AUgbvMexTsx
 m7+A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:date:in-reply-to:references:mime-version
 :content-transfer-encoding:subject:to:cc:from:message-id;
 bh=U5K4sgGotOczKYCzj/EOER9IF3u9Bnw8jQMK6Am54pY=;
 b=PL735TpdwTA+fz1FLLabRcFhr0Uw8UKYacXL5q4QC8HBr6A3RuBAojKSX1SA5RneZc
 rTwVXSVUmH61JlLn6pWU4eRG60ZfxzlZRE3s8qW6D6TDeQGGI4/nS2C4HllW49PACWrj
 mjFoWPRcziroOOo5/BHI9wdtF98KS6y+Ba55jencp7wvYMnajmS+mLc+LP/fHnxACsZG
 rUF9x33/reEneykWFMcHfr0ImQDCsYvYFd3Scyh0KKSQ0OgXyOGf+mF/l2gRVdThbvyA
 7l49DWrgBYFzJb0Ru+PmXtYaI80yVr22PGgh3d687TurZR7aS4O6HCdiaSWqS2Q+gI1i
 H+Lw==
X-Gm-Message-State: APjAAAVlegS7YXh5iOlO0vwg6oeaMIKsXoy3Cox75DPENve+d/Wj+PBj
 wp0FE8nBLn3xyXL2WZWn5+Sp7XBvGxs=
X-Google-Smtp-Source: APXvYqzLtLG0wHk7LbtEmJfPX+nSnDhwG1xpoRyAyz+OS0mKCQrPpT1RJM0uYsh8gg1ui+kGqWDv9Q==
X-Received: by 2002:a37:40d2:: with SMTP id
 n201mr20928820qka.211.1582065818652; 
 Tue, 18 Feb 2020 14:43:38 -0800 (PST)
Received: from [100.87.12.80] ([204.48.76.80])
 by smtp.gmail.com with ESMTPSA id v50sm2694809qtb.20.2020.02.18.14.43.37
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 18 Feb 2020 14:43:38 -0800 (PST)
Date: Tue, 18 Feb 2020 22:43:33 +0000
In-Reply-To: <CAEEhgEv5QE0=Kv1C1ftu3cEJAFksvv+1uM+p-T+MbNcUfmbY=g@HIDDEN>
References: <CAEEhgEsz+aka+h8P8RN56ochGf_fBeSegj6LOPVkxdwoSHB6oQ@HIDDEN>
 <87o8tvwpfk.fsf@HIDDEN>
 <CAEEhgEv5QE0=Kv1C1ftu3cEJAFksvv+1uM+p-T+MbNcUfmbY=g@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Subject: Re: bug#39670: Cannot mount NFS share as user or root
To: bug-guix@HIDDEN,Nathan Dehnel <ncdehnel@HIDDEN>
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Message-ID: <72552AC1-DDAE-4A72-A6CE-E91B6BBE5456@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::72b
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: submit
Cc: 39670 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Hello,

On February 18, 2020 9:43:29 PM UTC, Nathan Dehnel <ncdehnel@gmail=2Ecom> =
wrote:
>bash-5=2E0$ mount=2Enfs gentooserver:/ /media/store
>mount=2Enfs: permission denied: no match for /media/store found in
>/etc/fstab
>
>bash-5=2E0$ cat /etc/fstab | grep /media/store
>gentooserver:/ /media/store nfs4
>rw,_netdev,noauto,user,lazytime,exec,tcp
>
>?

Did you try as root?

Maxim 




Information forwarded to bug-guix@HIDDEN:
bug#39670; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Feb 2020 21:43:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 16:43:49 2020
Received: from localhost ([127.0.0.1]:41392 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j4Aei-0005Jf-Vy
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2020 16:43:49 -0500
Received: from lists.gnu.org ([209.51.188.17]:50081)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ncdehnel@HIDDEN>) id 1j4Aeh-0005JQ-9G
 for submit <at> debbugs.gnu.org; Tue, 18 Feb 2020 16:43:48 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:38717)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ncdehnel@HIDDEN>) id 1j4Aee-0003QY-38
 for bug-guix@HIDDEN; Tue, 18 Feb 2020 16:43:46 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ncdehnel@HIDDEN>) id 1j4Aec-0007QS-W8
 for bug-guix@HIDDEN; Tue, 18 Feb 2020 16:43:43 -0500
Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:53051)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <ncdehnel@HIDDEN>) id 1j4Aec-0007MP-LH
 for bug-guix@HIDDEN; Tue, 18 Feb 2020 16:43:42 -0500
Received: by mail-wm1-x32c.google.com with SMTP id p9so4313820wmc.2
 for <bug-guix@HIDDEN>; Tue, 18 Feb 2020 13:43:42 -0800 (PST)
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:content-transfer-encoding;
 bh=lj2C4wFF8wPKXSWWHzNVVReYmDw2lyJNDE6tpVsTPTg=;
 b=UNtcKqFSrZsges+Xh67HZl5BqGnkKf0ae/QzmtwOL7rgYAT/h0efdJA1GHv7L1RCaB
 SKCulYert5V+BHfSS4NJ3QuoHUO/sDu9InxwGYEv9fCXeSxl7zawt36MP66XRwWrYWxa
 dyavhDHwrVUP04sRWdKRyiDubl/Gs/QvQZF59mS1NVBw4Ac+++QLZ9YOmg5z526rloFD
 9VGONar9xfXtQMFLBJcrZ5UolSLVK55YTE5dfQnUSzOin+sN7sQcoiXt8h80K43ZaQnJ
 qNAntI6FEv/U9j8nmb876tX2PgQAvhRtmg7KxyTv0ChVCqsywegdYCUrg72vDe67XDoI
 7mrA==
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:content-transfer-encoding;
 bh=lj2C4wFF8wPKXSWWHzNVVReYmDw2lyJNDE6tpVsTPTg=;
 b=enRMpaS5mYcYjR+PvYd+JGDI9UpkZF25ITXydFsvg+rlAfIRduXIZCFo/KK0NJO58X
 FPM/K4jCGz3DMRZwZkYkUsBxcB4fr67Qus+Qt2Blg1lWlX1bo5NQ2zlosbyvFfR7QD0G
 mxlhXAQYvEkRA1Oi3uzo/gQBDe6MA4LEV9ll2WodiXIjClZIIpG6UL6ltTqpLkAtKd5Y
 ge6dskkWkQoIGlV90PA60J8UgUxCRSpp9L/yV4C0jmv0sQAhsEBXlnKDFP23KYqZsQeY
 G8URozsz13xgBXDS+NuC+G98JRQfvWHN3r6yHEI0zScFpUogH7dkOsz5CS8KOcsppCIb
 LLrQ==
X-Gm-Message-State: APjAAAVkSYBRQIWHwLSB3Aa+3U8FdohXH4pAT7qb7gU9QumSzylY8cVI
 /xO1ywlbHF8O1GQRUoPEKVxQW+T3md8CnfdShhs=
X-Google-Smtp-Source: APXvYqw2ShBMBDdIW8kRwO5nbP2RcuQSANkQ5SUH95aC5ooJsyHamZZi6LnyZ+QVaq2T2yEIl/FLtQKXgt9MsA5OFC8=
X-Received: by 2002:a7b:c10e:: with SMTP id w14mr594943wmi.61.1582062221367;
 Tue, 18 Feb 2020 13:43:41 -0800 (PST)
MIME-Version: 1.0
References: <CAEEhgEsz+aka+h8P8RN56ochGf_fBeSegj6LOPVkxdwoSHB6oQ@HIDDEN>
 <87o8tvwpfk.fsf@HIDDEN>
In-Reply-To: <87o8tvwpfk.fsf@HIDDEN>
From: Nathan Dehnel <ncdehnel@HIDDEN>
Date: Tue, 18 Feb 2020 15:43:29 -0600
Message-ID: <CAEEhgEv5QE0=Kv1C1ftu3cEJAFksvv+1uM+p-T+MbNcUfmbY=g@HIDDEN>
Subject: Re: Cannot mount NFS share as user or root
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::32c
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: submit
Cc: bug-guix@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

bash-5.0$ mount.nfs gentooserver:/ /media/store
mount.nfs: permission denied: no match for /media/store found in /etc/fstab

bash-5.0$ cat /etc/fstab | grep /media/store
gentooserver:/ /media/store nfs4 rw,_netdev,noauto,user,lazytime,exec,tcp

?

On Tue, Feb 18, 2020 at 3:33 PM Maxim Cournoyer
<maxim.cournoyer@HIDDEN> wrote:
>
> Hello Nathan,
>
> Nathan Dehnel <ncdehnel@HIDDEN> writes:
>
> > bash-5.0$ mount /media/store
> > mount: /media/store: bad option; for several filesystems (e.g. nfs,
> > cifs) you might need a /sbin/mount.<type> helper program
> >
> > /etc/config.scm:
> >
> > (file-system
> >              (mount-point "/media/store")
> >              (device "gentooserver:/")
> >              (type "nfs4")
> >              (mount? #f)
> >              (create-mount-point? #t)
> >              (options "rw,_netdev,noauto,user,lazytime,exec,tcp"))
> >
> > /etc/fstab:
> >
> > gentooserver:/ /media/store nfs4 rw,_netdev,noauto,user,lazytime,exec,t=
cp
> >
> > nfs-utils is installed:
> >
> > bash-5.0$ guix package -i nfs-utils
> > The following package will be upgraded:
> >    nfs-utils 2.4.2 =E2=86=92 2.4.2
> > /gnu/store/chmbpkh0gvvmdhgwjw7rpl63f99mv7i6-nfs-utils-2.4.2
> >
> > nothing to be done
>
> I encountered this too.  Perhaps we should patch some references to
> mount.nfs (from nfs-utils) in the util-linux package which provides
> 'mount'.
>
> In the meantime, you should use "mount.nfs" directly.
>
> I'm opening an issue to track progress on this.
>
> Thank you,
>
> Maxim




Information forwarded to bug-guix@HIDDEN:
bug#39670; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Feb 2020 21:34:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 16:34:08 2020
Received: from localhost ([127.0.0.1]:41377 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j4AVM-000531-Br
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2020 16:34:08 -0500
Received: from lists.gnu.org ([209.51.188.17]:40705)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1j4AVK-00052q-Fc
 for submit <at> debbugs.gnu.org; Tue, 18 Feb 2020 16:34:07 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:35412)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1j4AVE-0006zD-VO
 for bug-guix@HIDDEN; Tue, 18 Feb 2020 16:34:03 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1j4AVC-0005F9-SZ
 for bug-guix@HIDDEN; Tue, 18 Feb 2020 16:34:00 -0500
Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]:34727)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1j4AVA-00055H-4e
 for bug-guix@HIDDEN; Tue, 18 Feb 2020 16:33:57 -0500
Received: by mail-qt1-x832.google.com with SMTP id l16so11008506qtq.1
 for <bug-guix@HIDDEN>; Tue, 18 Feb 2020 13:33:54 -0800 (PST)
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:content-transfer-encoding;
 bh=HQQa+rBHPoqY8vMWVVwstZYKpQ8glZUx2TQo+w+Yis4=;
 b=JJAciwXZHJskkLbX4SnaqXkX8s3PN3GV2HfH3Ehgog8z3K0KlMezwqO5ezzIzzwIPh
 qqWnI4l0Ll+An6E4T2vDCkH630Ai+pKbMzyEJ5BRS12ekBZSjCkucs9RpGIDaB9IOkN7
 W0ejKa/0AMEFfyF2DsBBcnos6u7w+gBLeLvC6KhOcV9DILQEql1EaJpEfWAuGLuumnNh
 z+v9ldsjUxBtHm0DGKTyqPHv9Wkztxx9eyRaq7YGW/tyZjtU7pCoZwq/2znjTm6RyV6C
 uehMpBaxX0OYhOhCr7f2ro58EwpQ9X9VGpRapnE8S5ermlTF4hyQ+dkestRyy1UPR4Py
 SgWA==
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:content-transfer-encoding;
 bh=HQQa+rBHPoqY8vMWVVwstZYKpQ8glZUx2TQo+w+Yis4=;
 b=mdtrg2uoOcBdJroY6zkdN4kku02o6ghoza0jzbfiwoKBS5sXsWIuNPdvvezLnxADpB
 PCHszwyhiMkOpwWzHr4xz10HM+TCDjYsQoB6Hrdu5jS+5vLmr9hAfiBAGRsQOm2fBPYa
 WZ+7+xCO+l4MCAu1z5My/rKFIdZWghLpJXNbkWaB/2go/UN4EyFychVBOV6GVPRjnbpc
 EYyXWw8/yddzsyVY+W/LI4EaHnBCSV0p6OMauGVUWMmh/Ao9EX6YGqrkXMDnnW58OyIc
 3n/f8uOBnT71FD3xozBxjy8pSA6UUrf36yCn7OFmuxbj2k9shWWJ+5lIvNwOozEGCdDf
 ubGg==
X-Gm-Message-State: APjAAAXfwZE3bf4z20xdTottoHeBJYsiIa+j4ni1qz9Y0KogQq/YkcTE
 LY+eBI1qU+gPw+5AQgjSHwyaWeToErI=
X-Google-Smtp-Source: APXvYqwP8kMIWdzayiF2ZZBLlZ1Yt+sv52gsgbZQEa2lrWNFQpj62SlbL5C2DFrBtBunjUzWnR4b0g==
X-Received: by 2002:ac8:8d6:: with SMTP id y22mr18377879qth.85.1582061632507; 
 Tue, 18 Feb 2020 13:33:52 -0800 (PST)
Received: from raisin ([2607:fad8:4:6:235e:8579:8464:aacc])
 by smtp.gmail.com with ESMTPSA id n4sm2456879qti.55.2020.02.18.13.33.51
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 18 Feb 2020 13:33:51 -0800 (PST)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Nathan Dehnel <ncdehnel@HIDDEN>
Subject: Re: Cannot mount NFS share as user or root
References: <CAEEhgEsz+aka+h8P8RN56ochGf_fBeSegj6LOPVkxdwoSHB6oQ@HIDDEN>
Date: Tue, 18 Feb 2020 16:33:51 -0500
In-Reply-To: <CAEEhgEsz+aka+h8P8RN56ochGf_fBeSegj6LOPVkxdwoSHB6oQ@HIDDEN>
 (Nathan Dehnel's message of "Mon, 17 Feb 2020 19:08:05 -0600")
Message-ID: <87o8tvwpfk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::832
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: submit
Cc: bug-guix@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Hello Nathan,

Nathan Dehnel <ncdehnel@HIDDEN> writes:

> bash-5.0$ mount /media/store
> mount: /media/store: bad option; for several filesystems (e.g. nfs,
> cifs) you might need a /sbin/mount.<type> helper program
>
> /etc/config.scm:
>
> (file-system
>              (mount-point "/media/store")
>              (device "gentooserver:/")
>              (type "nfs4")
>              (mount? #f)
>              (create-mount-point? #t)
>              (options "rw,_netdev,noauto,user,lazytime,exec,tcp"))
>
> /etc/fstab:
>
> gentooserver:/ /media/store nfs4 rw,_netdev,noauto,user,lazytime,exec,tcp
>
> nfs-utils is installed:
>
> bash-5.0$ guix package -i nfs-utils
> The following package will be upgraded:
>    nfs-utils 2.4.2 =E2=86=92 2.4.2
> /gnu/store/chmbpkh0gvvmdhgwjw7rpl63f99mv7i6-nfs-utils-2.4.2
>
> nothing to be done

I encountered this too.  Perhaps we should patch some references to
mount.nfs (from nfs-utils) in the util-linux package which provides
'mount'.

In the meantime, you should use "mount.nfs" directly.

I'm opening an issue to track progress on this.

Thank you,

Maxim




Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#39670; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 20 Feb 2020 16:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.