4

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

sshfs user@remoteserver.com:/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 ?

3

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

  • ok thanks. One more question, Will the remote server be mounted forever ? I mean, until reboot ? – aneuryzm Jan 9 '11 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 '11 at 9:19
  • @Patrick: As with any mount, it will remain mounted until you unmount it, or of course until a reboot. – Gilles 'SO- stop being evil' Jan 9 '11 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 user@remoteserver.com:/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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.