4

I'm doing the following to mount a remote server to a specific path on my server:

sshfs [email protected]:/backup/folder/ /home/myuser/server-backups/

However when I mount the server the folder permissions change (they become 700), and when I test my rsnapshot.conf file I get the following error:

snapshot_root /home/myuser/server-backups/ - snapshot_root exists \
         but is not readable

What am I doing wrong ? should I mount the remote server with another user ?

1

2 Answers 2

3

FUSE has options to control who has access to the files. I'm guessing you want sshfs -o allow_other.

3
  • ok thanks. One more question, Will the remote server be mounted forever ? I mean, until reboot ?
    – aneuryzm
    Jan 9, 2011 at 9:05
  • Uhm it worked with allow_root instead. But then I got permissions error with rsnapshot tool.. but this is not related to this question.
    – aneuryzm
    Jan 9, 2011 at 9:19
  • @Patrick: As with any mount, it will remain mounted until you unmount it, or of course until a reboot. Jan 9, 2011 at 11:45
0

Assuming that it is a folder with restricted access, e.g. only access for certain users, sshfs can fail to see that one of the IDs in that group belongs to the user that mounted the drive.

You just have to add the option "-o defer_permissions", e.g.

sshfs -o defer_permissions [email protected]:/backup/folder/ /home/myuser/server-backups/

More information can be found here: https://github.com/osxfuse/osxfuse/wiki/Mount-options#default_permissions-and-defer_permissions?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .