From unknown Sat Jun 14 08:56:38 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39670 <39670@debbugs.gnu.org> To: bug#39670 <39670@debbugs.gnu.org> Subject: Status: Cannot mount NFS share as user or root Reply-To: bug#39670 <39670@debbugs.gnu.org> Date: Sat, 14 Jun 2025 15:56:38 +0000 retitle 39670 Cannot mount NFS share as user or root reassign 39670 guix submitter 39670 Maxim Cournoyer severity 39670 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 16:34:08 2020 Received: (at submit) by debbugs.gnu.org; 18 Feb 2020 21:34:08 +0000 Received: from localhost ([127.0.0.1]:41377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4AVM-000531-Br for submit@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 ) id 1j4AVK-00052q-Fc for submit@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 ) id 1j4AVE-0006zD-VO for bug-guix@gnu.org; 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 ) id 1j4AVC-0005F9-SZ for bug-guix@gnu.org; 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 ) id 1j4AVA-00055H-4e for bug-guix@gnu.org; Tue, 18 Feb 2020 16:33:57 -0500 Received: by mail-qt1-x832.google.com with SMTP id l16so11008506qtq.1 for ; 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 To: Nathan Dehnel Subject: Re: Cannot mount NFS share as user or root References: Date: Tue, 18 Feb 2020 16:33:51 -0500 In-Reply-To: (Nathan Dehnel's message of "Mon, 17 Feb 2020 19:08:05 -0600") Message-ID: <87o8tvwpfk.fsf@gmail.com> 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@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hello Nathan, Nathan Dehnel 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. 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 16:43:49 2020 Received: (at submit) by debbugs.gnu.org; 18 Feb 2020 21:43:49 +0000 Received: from localhost ([127.0.0.1]:41392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4Aei-0005Jf-Vy for submit@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 ) id 1j4Aeh-0005JQ-9G for submit@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 ) id 1j4Aee-0003QY-38 for bug-guix@gnu.org; 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 ) id 1j4Aec-0007QS-W8 for bug-guix@gnu.org; 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 ) id 1j4Aec-0007MP-LH for bug-guix@gnu.org; Tue, 18 Feb 2020 16:43:42 -0500 Received: by mail-wm1-x32c.google.com with SMTP id p9so4313820wmc.2 for ; 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: <87o8tvwpfk.fsf@gmail.com> In-Reply-To: <87o8tvwpfk.fsf@gmail.com> From: Nathan Dehnel Date: Tue, 18 Feb 2020 15:43:29 -0600 Message-ID: Subject: Re: Cannot mount NFS share as user or root To: Maxim Cournoyer 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@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 wrote: > > Hello Nathan, > > Nathan Dehnel 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. 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 17:43:43 2020 Received: (at submit) by debbugs.gnu.org; 18 Feb 2020 22:43:44 +0000 Received: from localhost ([127.0.0.1]:41429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4Bah-0006v0-Jd for submit@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 ) id 1j4Bag-0006us-1H for submit@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 ) id 1j4Bae-0001ZL-Vk for bug-guix@gnu.org; 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 ) id 1j4Bad-0007bU-VY for bug-guix@gnu.org; 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 ) id 1j4Bad-0007YK-Qe for bug-guix@gnu.org; Tue, 18 Feb 2020 17:43:39 -0500 Received: by mail-qk1-x72b.google.com with SMTP id o28so19906234qkj.9 for ; 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: References: <87o8tvwpfk.fsf@gmail.com> 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@gnu.org,Nathan Dehnel From: Maxim Cournoyer Message-ID: <72552AC1-DDAE-4A72-A6CE-E91B6BBE5456@gmail.com> 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hello, On February 18, 2020 9:43:29 PM UTC, Nathan Dehnel = 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 20 11:25:51 2020 Received: (at 39670) by debbugs.gnu.org; 20 Feb 2020 16:25:51 +0000 Received: from localhost ([127.0.0.1]:45706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4oe7-0004Ok-Aj for submit@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 ) id 1j4oe0-0004OM-Sr for 39670@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@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@gmail.com X-Google-Original-From: mcournoyer@raisin.i-did-not-set--mail-host-address--so-tickle-me To: Maxim Cournoyer Subject: Re: bug#39670: Cannot mount NFS share as user or root References: <87o8tvwpfk.fsf@gmail.com> Date: Thu, 20 Feb 2020 11:25:37 -0500 In-Reply-To: <87o8tvwpfk.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 18 Feb 2020 16:33:51 -0500") Message-ID: <87v9o18bum.fsf@raisin.i-did-not-set--mail-host-address--so-tickle-me> 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 , 39670@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Maxim Cournoyer 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 From debbugs-submit-bounces@debbugs.gnu.org Wed May 27 23:11:46 2020 Received: (at 39670-done) by debbugs.gnu.org; 28 May 2020 03:11:46 +0000 Received: from localhost ([127.0.0.1]:50492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1je8xO-0005ww-1F for submit@debbugs.gnu.org; Wed, 27 May 2020 23:11:46 -0400 Received: from mail-qk1-f181.google.com ([209.85.222.181]:38984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1je8xM-0005wf-GP for 39670-done@debbugs.gnu.org; Wed, 27 May 2020 23:11:44 -0400 Received: by mail-qk1-f181.google.com with SMTP id w3so1841755qkb.6 for <39670-done@debbugs.gnu.org>; Wed, 27 May 2020 20:11: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=zT9HcOfYNnks9Sfuji8jpPNDs+1XrfCMcghc6a+ZkXo=; b=UZrc4ckHWw/bjRoBKNH37BMY0/VsmkuTq2iUefQH4UDdorIackmuvoTwRwF3xIgrud ECvdSw1zjd66abZwzCesdvN1FZkcSeCgenIWTsoVu2QbhEcGP96NdHjWXZK/gJxJvRXp 9hwxOp2pExkcF7lMoK+WFejNYbnZB78/288clyUnH/1Q+qqyZq2DbzF8lwINvYtbN8Bs Z4vn4Oehz/ztwKYvO7nKqphW7uosE7SERTTLkk8fxd8wDNcfJ4KdQ09G9JJSkamBcDyy Gi+IFJzm/K0UKWOVxW/lNNpygd08njhY7g/9OJZ+WwblyNsvCs17InfTS/yEZY9VOaom 3qvA== 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=zT9HcOfYNnks9Sfuji8jpPNDs+1XrfCMcghc6a+ZkXo=; b=FZKG+eP9T+MNGxEtvFi4embrlVKCKZsvpheJ1oe3Z2JwON79viNgFcy2Rqn5AYhOyu RhuNPdiK5mkIVM6kc0HBtH7kqok14XkPlGEGr4YMePGWFDmip+cOVlVxg1vk52jmccpn 7Bbka4UUulb9YkmJ4l9fan5n01Ff0oo0O8TrpuGiHoy9cDs/GRkz77DNAoKUUIyWZduE 8rB9Z6ULf2VWwyqA3AIeZRMH8UkuiFBPSrTO/vtTh3oKEPMk5xH9oINx+PmBI2b2kLEE MIAkejmjj29JqD9ICYKxKpkPzP0Y9jTJ+Q315wKVkTuxGmbksD88DJw6JU9VzZytMM+Y DX8g== X-Gm-Message-State: AOAM530GwOCGRGkb1l13+duVOnldjYPlAeSS8/W8mskdQjFY7jkdn4gC WkSVywquWL/3hrMFvA9jbVKFmvD6xTM= X-Google-Smtp-Source: ABdhPJxz4yjaCvmmeOxlBgKaT95M+I8hVMywNdv95vho/3xv4Lk8lAZbdsSdmTQtVKNgca0AYka9Jg== X-Received: by 2002:a05:620a:576:: with SMTP id p22mr891845qkp.196.1590635498806; Wed, 27 May 2020 20:11:38 -0700 (PDT) Received: from hurd (dsl-10-130-200.b2b2c.ca. [72.10.130.200]) by smtp.gmail.com with ESMTPSA id x4sm4445562qtj.43.2020.05.27.20.11.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 20:11:37 -0700 (PDT) From: Maxim Cournoyer To: Nathan Dehnel Subject: Re: bug#39670: Cannot mount NFS share as user or root References: <87o8tvwpfk.fsf@gmail.com> <87v9o18bum.fsf@raisin.i-did-not-set--mail-host-address--so-tickle-me> Date: Wed, 27 May 2020 23:11:37 -0400 In-Reply-To: <87v9o18bum.fsf@raisin.i-did-not-set--mail-host-address--so-tickle-me> (maxim cournoyer's message of "Thu, 20 Feb 2020 11:25:37 -0500") Message-ID: <875zcg7nyu.fsf@gmail.com> 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-done Cc: 39670-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I thought documenting this, but we don't really have a section to cover this, and it isn't really Guix specific... So, closing. Thank you. Maxim From unknown Sat Jun 14 08:56:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 25 Jun 2020 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From unknown Sat Jun 14 08:56:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Thu, 24 Sep 2020 04:18:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 24 16:42:55 2020 Received: (at control) by debbugs.gnu.org; 24 Sep 2020 20:42:55 +0000 Received: from localhost ([127.0.0.1]:41913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLY4t-00033i-LE for submit@debbugs.gnu.org; Thu, 24 Sep 2020 16:42:55 -0400 Received: from mail-qt1-f171.google.com ([209.85.160.171]:40011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLY4r-00033V-O1 for control@debbugs.gnu.org; Thu, 24 Sep 2020 16:42:54 -0400 Received: by mail-qt1-f171.google.com with SMTP id v54so219850qtj.7 for ; Thu, 24 Sep 2020 13:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:to:from:subject; bh=6vfYJA2ME5S/3uNk66M90mEAzU83rHtptYXn6HNn69w=; b=sFcF7qe2QfCpj1fFAwxRxPtjwg30XwI99Qx+gBXakadEiCevXTFrGgD1CJr6Bg7QXY X+Myg+knFGPZKRqV5eMQBCKa/A11k+nyY1Aw8Tv6GrT2TW/X3DMFkyl1DPpV6I7blOMT FUis627pseSeZI7TClUvRUSft2CRb4xasdSpl+g90Dxmid+gG0nuyiUez5Rwu5HnKUH3 7HyIKkRYEwovy7hT7+IxESNol4ONaUqQQqy/zue3GgGB0X8bRWLKKB4Z0DAGbcVBAjcq 2sUEgSchTboe/pzaRL6qZa4d1Axnh7c2iixcJyt39WZ1H2j/1ryFWR954vq83Eb8syVo znwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:to:from:subject; bh=6vfYJA2ME5S/3uNk66M90mEAzU83rHtptYXn6HNn69w=; b=IgF1SRMVoMgEqE68MWMTzZs9Z8Vh1QugRT17sQe4UAJc4NrvWyeRxpSW3jretjL15g 0TeIk/7IPEXjya8gmqlCq6o8Msrh1JIk9A8n9W64n4COACp3HYawq0LeJv38sqFdJdU1 H+aGpzSRFeUEs/S/LuRWAyXyBManyE6HyBh0Xz/4O1lU5G0oigcy+aejpQcBZjlWx2Kx OAebuA9KdirP2OUlOLuIeaqEXjm9Y3khfQMC3l6w/M05EBB+nQ2EHyd7ilxNmXqGCJIi uVEaDLrw0wm2ub11z94Woa5tZZT1WUxk7x2vXEdnF/3ys3ZjiPLuFcuRuGJZheuRli20 1Ayw== X-Gm-Message-State: AOAM533Cgkk+2xHyqH5oP+xrRyLBdiuLWhoPBvIhcQveOQvtGKRvUCBb j/E1reO45sOHhvACODhx9LwN7rYvOy7Z1w== X-Google-Smtp-Source: ABdhPJxHm3pvFupoNgXrr0Oi04fxCT9KQPcizHEYg5Dv3/RomJ08DxvDiVlP9ZgjVKBXUgWiK5e9jw== X-Received: by 2002:ac8:43d3:: with SMTP id w19mr1067099qtn.129.1600980167867; Thu, 24 Sep 2020 13:42:47 -0700 (PDT) Received: from hurd (dsl-10-130-151.b2b2c.ca. [72.10.130.151]) by smtp.gmail.com with ESMTPSA id t140sm401018qke.125.2020.09.24.13.42.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 13:42:47 -0700 (PDT) Date: Thu, 24 Sep 2020 16:44:05 -0400 Message-Id: <87blhuvrai.fsf@gmail.com> To: control@debbugs.gnu.org From: Maxim Cournoyer Subject: control message for bug #39670 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) unarchive 39670 quit From unknown Sat Jun 14 08:56:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Thu, 24 Sep 2020 20:43:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 24 21:52:01 2020 Received: (at 39670) by debbugs.gnu.org; 25 Sep 2020 01:52:01 +0000 Received: from localhost ([127.0.0.1]:42153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLcu0-00040h-Tx for submit@debbugs.gnu.org; Thu, 24 Sep 2020 21:52:01 -0400 Received: from mail-qt1-f169.google.com ([209.85.160.169]:41981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLcty-00040U-90 for 39670@debbugs.gnu.org; Thu, 24 Sep 2020 21:51:59 -0400 Received: by mail-qt1-f169.google.com with SMTP id b2so732623qtp.8 for <39670@debbugs.gnu.org>; Thu, 24 Sep 2020 18:51:58 -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=MRg4IlCJw8ZmlLoAU4VXFotbs0s9OSA678gtVQzmHx4=; b=DlbQ7EjXw1hZ+K1quPJemWjSlqhJNDRgjB9I4sKkgqUJrI2Za4hdJL7CjGIeHUQvW0 96CTLJVJkV8LNDp/hlnmKl7bf/iolk10DZugmbdufZFVH9KhsqITzEvNXopHNJqlB/u6 Icy04Agyg/10Hr98ZEymJ0HOTgXl32mRIJizqkAeDvOuWZD0qSMRDCccbi1Bf5X8SSrp Yr+NuwoUdpSmQkIQlSVX5YAi9bJxoptUmsxeNgdtybT+MGZ0r5vBFENmD6JQI9SjwX67 ydSHqp2QHLpIGv6yj9fjcYSEuTqyhwk6po8xgzau8k/Bt8w2hjKBn3K+BoNJkb68phVm pmKQ== 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=MRg4IlCJw8ZmlLoAU4VXFotbs0s9OSA678gtVQzmHx4=; b=IxBaNHsHZsGEAQcL2pFY4QMLwNEktb10GPiXtT0YsxAc7dgwfIJYjSac4Evovr/MP5 apzAtoklgi4lbfG+wV7VbiwflYrgMZKVXcbLqPG2zwaUTXmU8B4TRsqbdjxmll9PkUgH IMheMpdiF3fff/be5+4dJ8gzzmU8hnsamJ+BB1sQUz2tYTRD8kcCctau6RtasS5C9L46 18Ihxp0BBmZvqNI0a4iQmxpn+8q115YxAdK/FfEVzPSk6aX6eq70fmdajW7iVcXz0skl E8Gul0xWT6G9lkMlYgLtHjH4LE7BoVJ3xO459cKZCe1rN7jg8UkMpWPI3IUOsVIp9dOl JHyg== X-Gm-Message-State: AOAM532yHLyhuGpUcKlKqjWgLxq3yus1+JV1YdoicYdYnuaukKPjWfOD b6DdQzOSxp+QCeJlG/HkBR3iheO4hRT2rw== X-Google-Smtp-Source: ABdhPJzwIALgqPbz8GlSa8jO3S3oEldeBOksOMnoteemB3TkrzNcRV+AohPU4b83X0ldpvVxMU6Rdg== X-Received: by 2002:ac8:19e9:: with SMTP id s38mr2299016qtk.248.1600998712486; Thu, 24 Sep 2020 18:51:52 -0700 (PDT) Received: from hurd (dsl-10-130-151.b2b2c.ca. [72.10.130.151]) by smtp.gmail.com with ESMTPSA id y7sm1004080qtn.11.2020.09.24.18.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 18:51:51 -0700 (PDT) From: Maxim Cournoyer To: Nathan Dehnel Subject: Re: bug#39670: Cannot mount NFS share as user or root 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> Date: Thu, 24 Sep 2020 21:53:10 -0400 In-Reply-To: (Nathan Dehnel's message of "Thu, 24 Sep 2020 02:19:29 -0500") Message-ID: <878scyvczd.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-Debbugs-Envelope-To: 39670 Cc: 39670@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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). > Why doesn't the regular "mount" command work, again? Some sort of > dependency loop because of the functional package manager? And this is > deemed "not guix-specific"? For some file systems, 'mount' requires helper to be found in its PATH (see: "man mount"). That is true on any systems (not Guix-specific). These helpers are not installed out-of-the-box on Guix System, so you need to add them yourself to the 'packages' operating system field. If you also want to be able to use mount as an unprivileged user, the mount command as well as its helpers must all be setuid-root. Again, this is something (for the helpers) that must currently done manually by adding, for example: --8<---------------cut here---------------start------------->8--- (setuid-programs (cons* (file-append nfs-utils "/sbin/mount.nfs") (file-append ntfs-3g "/sbin/mount.ntfs-3g") %setuid-programs)) --8<---------------cut here---------------end--------------->8--- 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. Maxim [0] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43604 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 01 15:47:34 2020 Received: (at 39670-done) by debbugs.gnu.org; 1 Oct 2020 19:47:34 +0000 Received: from localhost ([127.0.0.1]:38441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO4YA-0005cY-5o for submit@debbugs.gnu.org; Thu, 01 Oct 2020 15:47:34 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:34323) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO4Y7-0005cL-Tr for 39670-done@debbugs.gnu.org; Thu, 01 Oct 2020 15:47:32 -0400 Received: by mail-qk1-f177.google.com with SMTP id c62so6945586qke.1 for <39670-done@debbugs.gnu.org>; Thu, 01 Oct 2020 12:47:31 -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=nIdoKOYQqiF0GfvksfV9wZr9hC6e4pp05tiNUzYU9wk=; b=DeiD3hOmWQAJ4+b1tsWwbs8euxlnMs8OO1mp7O/Bf7yHrfayX7ZgFR6QYyxR77J9C9 yd32VZ9w8l5URPtFAOEm1/9J/fLb3agiZm6fBIs1+0Pai7xXZHVNRXv6085jJX3MqF31 VEt2Hnd2XT9Z4e/KljtRnJt3jm3/Qz6l4jw80/EsHYqeoIYV2OHEprlA2NC2aZMHkDCn ycoW4wX0ybjj/XLiQRMGloiy0k6RbR3WHORM1APFVqpA8dkDMuaPR4eNN2/8dLO1CFmr EfZy8KES7ZuVrpKMmwgcbO49htmxxsyqfNIbUJUukmK+eupt51mycHPEPrbK7mmbZ7nQ BHUw== 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=nIdoKOYQqiF0GfvksfV9wZr9hC6e4pp05tiNUzYU9wk=; b=mIqLsH4E34iD8GV1AjxohPNOdNLw3R7uDLTNQv5hdFf+qOVbL8h6/zYAUDJG6dcDHa BFgf1xkdA7febVNqcYw75eVd1tpR42HOgYAI2KXKKTMKw8Dmr3bNarqx/UVdeCThNK7T aImOc8VWdgwaaC3kk8fHu0f4mE6khenhjoS3lLrh/PeYgtOannG3cLvEmN3TxMKRc/WI guq+YOZmmA+vb3wFOFkgVlSAgybDHxdmu6IRftQhWbk1ySby9G3LPVsnp/eOediXdn6B W8GMIor610WQQgbM/sr1mARta4jm9wc1G48Ed7WtH0A0piJoO5FnK4Hkry04mMXd7aNz L+mw== X-Gm-Message-State: AOAM530cJlmOhbcwYvV0hcglhYgkJsRdi48nNlHArlMXcRhoPzrj+Fde rJ7/5EwlpINjmqm8RHQNWCAlZy6n2vf3Vw== X-Google-Smtp-Source: ABdhPJwXfc/UGbEjhaF1BBFgnkRktLOF+Ynx8j9toHHGfA5049huEegtJpgzf3oGF7MAuW7LKrxMUQ== X-Received: by 2002:ae9:f301:: with SMTP id p1mr9389261qkg.216.1601581646098; Thu, 01 Oct 2020 12:47:26 -0700 (PDT) Received: from hurd (dsl-10-135-18.b2b2c.ca. [72.10.135.18]) by smtp.gmail.com with ESMTPSA id p3sm6975054qkj.113.2020.10.01.12.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2020 12:47:25 -0700 (PDT) From: Maxim Cournoyer To: Nathan Dehnel Subject: Re: bug#39670: Cannot mount NFS share as user or root 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> Date: Thu, 01 Oct 2020 15:49:04 -0400 In-Reply-To: <878scyvczd.fsf@gmail.com> (Maxim Cournoyer's message of "Thu, 24 Sep 2020 21:53:10 -0400") Message-ID: <87ft6xohfz.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-Debbugs-Envelope-To: 39670-done Cc: 39670-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 02 19:08:38 2020 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: Subject: Re: bug#39670: Cannot mount NFS share as user or root To: Maxim Cournoyer Content-Type: multipart/alternative; boundary="000000000000e6857405b0b83533" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39670-done Cc: 39670-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --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-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 12 23:22:46 2020 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 To: Nathan Dehnel Subject: Re: bug#39670: Cannot mount NFS share as user or root 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-Debbugs-Envelope-To: 39670 Cc: 39670@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From unknown Sat Jun 14 08:56:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 10 Nov 2020 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator