LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Permission denied error when trying to mount image contained in sshfs mount (http://www.linuxquestions.org/questions/linux-general-1/permission-denied-error-when-trying-to-mount-image-contained-in-sshfs-mount-707723/)

openSauce 02-26-2009 08:59 AM

Permission denied error when trying to mount image contained in sshfs mount
 
Hi

I have a filesystem mounted via sshfs, containing a file which itself contains a filesystem, but I get a 'permission denied' error when I try to mount it locally.

Code:

$ sudo mount -o loop sshfs-path/myfile.img /mnt/temp
sshfs-path/myfile.img: Permission denied
$

I get the same error trying to mount a different file from a different sshfs mount. This is all on my machine running Fedora 8 - my other machine running F9 but otherwise set up very similarly (ssh access to the same hosts etc) can mount the images when they are accessed via sshfs.

There don't appear to be any messages in /var/log/{secure,messages,audit/audit.log} relating to the error. Any ideas?

cheers

OS

openSauce 03-08-2009 04:32 AM

*bumps hopefully*

openSauce 03-08-2009 08:50 AM

Solved: turns out that including allow_other as a mount option to sshfs fixes the problem. I'm scratching my head a bit as to why, but it seems as though I shouldn't have been allowed to use sshfs as a normal user without that option. Possibly the system got confused by the users option in fstab, which the sshfs docs say is not recognised by sshfs, even though it worked for me.


All times are GMT -5. The time now is 12:12 PM.