I am trying to mount a remote share with sshfs, and I hit the following error

SSHFS version 3.7.3
fusermount3: mount failed: Operation not permitted

The reason is that the setuid of fusermount3 isn't set.

$ ls -lh $(which fusermount3)
lrwxrwxrwx 1 root root 71 Jan  1  1970
/home/lgatto/.guix-profile/bin/fusermount3 ->
/gnu/store/smp1qgzgyzmc0718724188yabxc71g1w-fuse-3.16.2/bin/fusermount3


Mounting used to work, possibly because it used fusermount, which has
its setuid set:

$ ls -lh $(which fusermount)
-r-sr-xr-x 1 root root 35K Feb 21 16:16 /run/privileged/bin/fusermount


How can I setuid for fusermount3? I am not sure I understand how to do
it as a privileged program [1]. Something along these lines, I suppose
...

#+begin_src scheme
  (privileged-program
    (program (file-append fusermount3
"/gnu/store/smp1qgzgyzmc0718724188yabxc71g1w-fuse-3.16.2/bin/fusermount3"))
    (setuid? #t))
#+end_src

I don't know how to expose how fusermount was configured as a
=program= in the first place to then apply that.

Any help is greatly appreciated.

Laurent


[1] https://guix.gnu.org/manual/devel/en/html_node/Privileged-Programs.html

-- 
[ Laurent Gatto | lgatto.github.io ]

Reply via email to