LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-26-2009, 08:59 AM   #1
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
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
 
Old 03-08-2009, 04:32 AM   #2
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Original Poster
Rep: Reputation: 39
*bumps hopefully*
 
Old 03-08-2009, 08:50 AM   #3
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Original Poster
Rep: Reputation: 39
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
Permission Denied Error Message when trying to mount an NFS share kaplan71 Fedora 1 02-14-2009 07:26 AM
permission denied w/ SSHFS FC6 psychobyte Linux - Software 1 02-03-2007 12:04 AM
'permission denied' trying to mount a directory leupi Linux - Networking 19 12-04-2005 06:50 PM
cannot mount anything; I'm denied permission help! DemoniX Slackware 5 08-07-2005 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration