all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#42036: Failed to mount fuse sshfs
@ 2020-06-24 20:36 Oleg Pykhalov
  2020-06-25 10:27 ` Efraim Flashner
  0 siblings, 1 reply; 6+ messages in thread
From: Oleg Pykhalov @ 2020-06-24 20:36 UTC (permalink / raw)
  To: 42036

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

‘mount -t fuse -o rw,allow_other,debug sshfs#user@host: /mnt’ which
could be used byself or by ‘autofs’ cannot find ‘ssh’ and ‘sshfs’
binaries.  A workaround are symlinks:
/bin/ssh -> /gnu/store/...-openssh-8.3p1/bin/ssh
/bin/sshfs -> /gnu/store/...-sshfs-2.10/bin/sshfs

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#42036: Failed to mount fuse sshfs
  2020-06-24 20:36 bug#42036: Failed to mount fuse sshfs Oleg Pykhalov
@ 2020-06-25 10:27 ` Efraim Flashner
  2020-06-25 12:46   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  0 siblings, 1 reply; 6+ messages in thread
From: Efraim Flashner @ 2020-06-25 10:27 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: 42036

[-- Attachment #1: Type: text/plain, Size: 708 bytes --]

On Wed, Jun 24, 2020 at 11:36:57PM +0300, Oleg Pykhalov wrote:
> ‘mount -t fuse -o rw,allow_other,debug sshfs#user@host: /mnt’ which
> could be used byself or by ‘autofs’ cannot find ‘ssh’ and ‘sshfs’
> binaries.  A workaround are symlinks:
> /bin/ssh -> /gnu/store/...-openssh-8.3p1/bin/ssh
> /bin/sshfs -> /gnu/store/...-sshfs-2.10/bin/sshfs

I'm not clear on the usage of sshfs, but I just tried 'sshfs
efraim@other-machine: mnt/' and it worked without any issues.


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#42036: Failed to mount fuse sshfs
  2020-06-25 10:27 ` Efraim Flashner
@ 2020-06-25 12:46   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2020-06-26  6:01     ` Oleg Pykhalov
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2020-06-25 12:46 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: Oleg Pykhalov, 42036

[-- Attachment #1: Type: text/plain, Size: 658 bytes --]

Efraim Flashner 写道:
> 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 /bin, apparently.  This poses a problem with e.g. autofs.

However, Oleg: are you sure it looks *only* in /bin?  Did you 
install ‘sshfs’ to your user profile (‘guix install’ or a 
manifest) or system profile (the ‘packages’ field of your 
‘operating-system’)?  Try the latter.  See ‘Scheme Procedure: 
udisks-service’ in the (guix)Desktop Services section of the 
manual.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#42036: Failed to mount fuse sshfs
  2020-06-25 12:46   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2020-06-26  6:01     ` Oleg Pykhalov
  2020-06-28 11:49       ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2022-05-16  6:51       ` Michael Rohleder
  0 siblings, 2 replies; 6+ messages in thread
From: Oleg Pykhalov @ 2020-06-26  6:01 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 42036

[-- Attachment #1: Type: text/plain, Size: 2560 bytes --]

Hi,

Tobias Geerinckx-Rice <me@tobias.gr> writes:

> Efraim Flashner 写道:
>> 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 /bin,
> apparently.  This poses a problem with e.g. autofs.
>
> However, Oleg: are you sure it looks *only* in /bin?  Did you install ‘sshfs’
> to your user profile (‘guix install’ or a manifest) or system profile (the
> ‘packages’ field of your ‘operating-system’)?

I tried to install in Guix system profile via ‘packages’ field.  No
success to run mount.

Then I added to ‘services’ field:
--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"))
--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 ‘root’ account.

Here is a ‘mount -t‘ strace:
--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: sshfs: 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 */) = 0
...
stat(".", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
stat("/usr/local/bin/sshfs", 0x7ffed0ac1c90) = -1 ENOENT (No such file or directory)
stat("/usr/local/sbin/sshfs", 0x7ffed0ac1c90) = -1 ENOENT (No such file or directory)
stat("/usr/bin/sshfs", 0x7ffed0ac1c90)  = -1 ENOENT (No such file or directory)
stat("/usr/sbin/sshfs", 0x7ffed0ac1c90) = -1 ENOENT (No such file or directory)
stat("/bin/sshfs", 0x7ffed0ac1c90)      = -1 ENOENT (No such file or directory)
stat("/sbin/sshfs", 0x7ffed0ac1c90)     = -1 ENOENT (No such file or directory)
stat(".", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
stat("./sshfs", 0x7ffed0ac1c90)         = -1 ENOENT (No such file or directory)
--8<---------------cut here---------------end--------------->8---

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#42036: Failed to mount fuse sshfs
  2020-06-26  6:01     ` Oleg Pykhalov
@ 2020-06-28 11:49       ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2022-05-16  6:51       ` Michael Rohleder
  1 sibling, 0 replies; 6+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2020-06-28 11:49 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: Efraim Flashner, 42036

[-- Attachment #1: Type: text/plain, Size: 2053 bytes --]

Oleg Pykhalov 写道:
> Tobias Geerinckx-Rice <me@tobias.gr> writes:
>> However, Oleg: are you sure it looks *only* in /bin?

[…]

> Here is a ‘mount -t‘ strace:
> --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: 
> sshfs: 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 */) = 0
> ...
> stat(".", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
> stat("/usr/local/bin/sshfs", 0x7ffed0ac1c90) = -1 ENOENT (No 
> such file or directory)
> stat("/usr/local/sbin/sshfs", 0x7ffed0ac1c90) = -1 ENOENT (No 
> such file or directory)
> stat("/usr/bin/sshfs", 0x7ffed0ac1c90)  = -1 ENOENT (No such 
> file or directory)
> stat("/usr/sbin/sshfs", 0x7ffed0ac1c90) = -1 ENOENT (No such 
> file or directory)
> stat("/bin/sshfs", 0x7ffed0ac1c90)      = -1 ENOENT (No such 
> file or directory)
> stat("/sbin/sshfs", 0x7ffed0ac1c90)     = -1 ENOENT (No such 
> file or directory)
> stat(".", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
> stat("./sshfs", 0x7ffed0ac1c90)         = -1 ENOENT (No such 
> file or directory)
> --8<---------------cut 
> here---------------end--------------->8---

Thanks!  This part comes from mount.fuse, right?

mount calls mount.fuse with $PATH unset.  mount.fuse calls 
<bash-minimal>/bin/sh -c sshfs …, which uses

  /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.

by default.  Not very useful on Guix Systems.

I'm considering the best place to fix this: util-linux (probably), 
fuse (it would only affect mount.fuse, but maybe we want that kind 
of control), or bash (almost certainly not).

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#42036: Failed to mount fuse sshfs
  2020-06-26  6:01     ` Oleg Pykhalov
  2020-06-28 11:49       ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2022-05-16  6:51       ` Michael Rohleder
  1 sibling, 0 replies; 6+ messages in thread
From: Michael Rohleder @ 2022-05-16  6:51 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: 42036

[-- Attachment #1: Type: text/plain, Size: 343 bytes --]

Oleg Pykhalov <go.wigust@gmail.com> writes:
> I tried to install in Guix system profile via ‘packages’ field.  No
> success to run mount.

For me, the trick was to install fuse in the system profile (to find
mount.fuse3).

-- 
Some people claim that the UNIX learning curve is steep, but at least you
only have to climb it once.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-16  6:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-24 20:36 bug#42036: Failed to mount fuse sshfs Oleg Pykhalov
2020-06-25 10:27 ` Efraim Flashner
2020-06-25 12:46   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-06-26  6:01     ` Oleg Pykhalov
2020-06-28 11:49       ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-05-16  6:51       ` Michael Rohleder

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.