From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 26 02:01:21 2020 Received: (at 42036) by debbugs.gnu.org; 26 Jun 2020 06:01:21 +0000 Received: from localhost ([127.0.0.1]:41727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1johQP-0000ky-Aa for submit@debbugs.gnu.org; Fri, 26 Jun 2020 02:01:21 -0400 Received: from mail-lj1-f172.google.com ([209.85.208.172]:42220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1johQM-0000kf-FI for 42036@debbugs.gnu.org; Fri, 26 Jun 2020 02:01:20 -0400 Received: by mail-lj1-f172.google.com with SMTP id h22so1894409lji.9 for <42036@debbugs.gnu.org>; Thu, 25 Jun 2020 23:01:18 -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=1tOf0oQeQg3AC0+dudy272HmmTibFkscpS97BdG0WZM=; b=LouHzNaMd1BrRJvutTHR3QiFrS9n8btxRPwlqaPT41//nNW/WpEF/11NYnqFImv6RT 0bJx/WzgukFPWbGm534BkK5pkWNBZmmsQhIZnJu//btxRp7O9g4VoKyUhW5OS4lMRtwb JRaRhWNiD4WQqzN9m9WZ35Kudr3EEXFhUUrg21XfLbZBfkkIdmqLCXP9u+Hh0ww8plh6 /A+bOBVUSMC6L0uQ8IStZzh/NPT3eEtKMEI1CAvHrvqM+UBAZ1D1VrlzdpO1kg249/yw wrHE2BVr2ZyfuaYArI/0pq6JU+LsJiSGIIc38Q94WwN2R6Toos26/AHU4e7SGc7fHeWo 4ucg== 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=1tOf0oQeQg3AC0+dudy272HmmTibFkscpS97BdG0WZM=; b=ogorvsgbn9TCLgVWerVXjXKxRI6gcC4slK2ZMSWcP6smBZgF0JxO5+dFDZCP0GKHkm hsnp2Fv8/88+Ft0UrZJodes6vVOSogW3wiUHUDleWkEYu1dXtK15kGs3pzt5WhNVFKkn rSg4EcRg2AWhHqHqc2LX8x7Ie/W8NSjtBv+FIO+FlrCfSKawNEEEJ+5CuuyOXmWdJmRJ ox6JKD1bCLqRE/eb0WGAXMO3JYtz2ax3M0GxAzxcphSxRXLmMhB3YF/wsOq9DNmIMB48 577dqsqThNa+Y3ZJn/oLxTiszf37Om8DgHj/HO6hRY0UfBKoCQKZY50k9fJ8juannF00 3T3Q== X-Gm-Message-State: AOAM533yUG2LPwNwleiT3ukMSLvkKsVsOKqEHMOScNGJqfXmikfyVe0w uRa/i9jsJkx+jYxMnqIhmQj4Lc2zDa0= X-Google-Smtp-Source: ABdhPJyTH21lFQBR7vxaIOs2TeFRFeGJqTAFhPW2YfM5sd1k4WK9bVepsA+GpMaZ/IH4GAzisTv8pg== X-Received: by 2002:a2e:b5ab:: with SMTP id f11mr493697ljn.438.1593151271885; Thu, 25 Jun 2020 23:01:11 -0700 (PDT) Received: from guixsd (ppp91-122-98-213.pppoe.avangarddsl.ru. [91.122.98.213]) by smtp.gmail.com with ESMTPSA id h18sm861866lji.136.2020.06.25.23.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 23:01:10 -0700 (PDT) From: Oleg Pykhalov To: Tobias Geerinckx-Rice Subject: Re: bug#42036: Failed to mount fuse sshfs References: <87pn9o19qu.fsf@gmail.com> <20200625102730.GA21908@E5400> <87bll7b9e1.fsf@nckx> Date: Fri, 26 Jun 2020 09:01:05 +0300 In-Reply-To: <87bll7b9e1.fsf@nckx> (Tobias Geerinckx-Rice's message of "Thu, 25 Jun 2020 14:46:46 +0200") Message-ID: <877dvujrha.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42036 Cc: Efraim Flashner , 42036@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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Tobias Geerinckx-Rice writes: > Efraim Flashner =E5=86=99=E9=81=93=EF=BC=9A >> I'm not clear on the usage of sshfs, but I just tried 'sshfs >> efraim@other-machine: mnt/' and it worked without any issues. > > Right. The bug is mount(8) not finding it because it(?) only looks in /b= in, > apparently. This poses a problem with e.g. autofs. > > However, Oleg: are you sure it looks *only* in /bin? Did you install =E2= =80=98sshfs=E2=80=99 > to your user profile (=E2=80=98guix install=E2=80=99 or a manifest) or sy= stem profile (the > =E2=80=98packages=E2=80=99 field of your =E2=80=98operating-system=E2=80= =99)? I tried to install in Guix system profile via =E2=80=98packages=E2=80=99 fi= eld. No success to run mount. Then I added to =E2=80=98services=E2=80=99 field: =2D-8<---------------cut here---------------start------------->8--- ;; mount -t fuse and autofs (extra-special-file "/bin/sshfs" (file-append sshfs "/bin/sshfs")) (extra-special-file "/bin/ssh" (file-append openssh "/bin/ssh")) =2D-8<---------------cut here---------------end--------------->8--- which works without problems. I didn't have an idea to install them in non-priveleged user profile, because I tested with a =E2=80=98root=E2=80=99 account. Here is a =E2=80=98mount -t=E2=80=98 strace: =2D-8<---------------cut here---------------start------------->8--- oleg@guixsd ~$ mount -t fuse -o rw,allow_other sshfs#oleg@workstation:/home= /oleg /tmp/f /gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/sh: ssh= fs: command not found execve("/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin= /sh", ["/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin= /sh", "-c", "'sshfs' 'oleg@workstation:/home/oleg' '/tmp/f' '-o' 'rw,allow_= other,dev,suid'"], 0x961430 /* 74 vars */) =3D 0 ... stat(".", {st_mode=3DS_IFDIR|0755, st_size=3D20480, ...}) =3D 0 stat("/usr/local/bin/sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No such file or= directory) stat("/usr/local/sbin/sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No such file o= r directory) stat("/usr/bin/sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No such file or dire= ctory) stat("/usr/sbin/sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No such file or dire= ctory) stat("/bin/sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No such file or dire= ctory) stat("/sbin/sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No such file or dire= ctory) stat(".", {st_mode=3DS_IFDIR|0755, st_size=3D20480, ...}) =3D 0 stat("./sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No such file or dire= ctory) =2D-8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAl71jyEACgkQFn+OpQAa +pyjFRAAhUR2xPd6i+0KZNroQvyHaq8i2AXykW3iE42ryngHTNwqZbqz3e+v738N Sfp+1QwrX1CwOterzznBc/I3jA3YGmg4pzMgOQ8COnyytLe7h7eOUFNNSeiFmuDE KhP0S50rXxhw71bTfVUE8buYh6Vw+Jrjhfw26YxwvIbW+t54fuIHAZD0BcrbI3/2 Uc87IoZoKRKA3xjMfmkjoctMQBuEQBny2hS+hsc9SkpedvIVj/MrJpFjQ7DJHBS8 sJE/ZtNmF6XRKOhbBJpqMDlQWaMqqiheRqH5RPneMs2PQneB6SYSwtPmG5eclsxd hU/wpqdrKOi9FR2uU7pU6gn6kXatfk1e6/Q/BC8VgI756fyqZX6JZkKYqgm2Xegl COA0DK/TPqF8DgCjeQOtqLvziOExBO7Or58KF/I7b8KXkd5jD25iI61v2GR1hGpR NrV06CmM1s+LvTUr8kMDjEcXTzoB8G6UM9tnB8BGcroVZUG+Gc7jbivqJom3HJkz V3HmVmVnC8PYrfW/2Xz0BiaxsfGfTl5SY6XIS1r2qLQaatSUTr7UETndqel9MdsN cv10Bgq8YQQMEJeNtkfSxbT02CXyTtMGAOJqWORv0We1igE/Lg70/ABUTLz5lYQS QQSB20vNQs38sMRSdR/71pVyYeDVViI4xU+i1Ut/QKd6rW3maec= =ifFa -----END PGP SIGNATURE----- --=-=-=--