Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Running sshfs after unshare -r


    We have sshfs installed and working so we can mount a remote directory with the command

    Code:
    sshfs user(_at_)remotemachine:dir mount_location

    however if we try using this same working command after running an
    Code:
    unshare -r
    we get the error:

    Code:
    fusermount: mount failed: Operation not permitted.
    What could we do to run the sshfs mount after the unshare without it failing?



    **replace (_at_) with the actual symbol used for ssh/email (forum rules need 15 posts first before I can use the symbol in a post).

  2. #2
    Linux Guru
    Join Date
    Dec 2013
    Posts
    2,747
    -->
    i don't use unshare, but i use sshfs.
    sometimes i'm getting fuse errors.
    it usually helps to unmount:
    Code:
    fusermount -u /path/to/sshfs-mount
    sometimes also
    Code:
    killall sshfs
    edit:
    hmm, looking at man unshare, it would rather seem to be a permissions problem, maybe with ssh. use verbose option for ssh, or no daemon option for sshfs, maybe you can get more info.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •