nadir
Posts: 112
Joined: Sun Jun 10, 2012 5:45 am

sshfs: operation not permitted

Tue Jul 10, 2012 12:54 am

I just copied my installation from one SD-card to a new/bigger one, with rsync.
I described it a bit more elaborate here:
http://www.raspberrypi.org/phpBB3/viewt ... 65#p117665
I don't know if it is the source of the problem, or just coincidence.

I get this error:

Code: Select all

malone@rp-server$ sshfs server: Sshfs
Enter passphrase for key '/home/malone/.ssh/server_rsa': 
fusermount: mount failed: Operation not permitted

I make use of:
~/.ssh/config
I can ssh to server without any problems.

I copied ~/malone/.ssh/config and ~/malone/.ssh/server_rsa to /root/.ssh, and root can mount with sshfs.

malone is in the fuse group.

I checked the ownership of /usr/bin/fusermount, and it was set to:
root:utempter
Hence i changed it with:

Code: Select all

chown root:fuse /usr/bin/fusermount
No luck. Same error.

I removed and purged sshfs. Ran "deborphan" and "aptitude purge ~c", then reinstalled it, without success.

I compared ownership of the following files with my other installations, and they seem valid:

Code: Select all

ROOT@rp-server# ls -l /usr/bin/fusermount 
-rwxr-xr-- 1 root fuse 23052 Sep 21  2010 /usr/bin/fusermount
ROOT@rp-server# ls -l /usr/bin/sshfs
-rwxr-xr-x 1 root root 52212 Feb  4  2009 /usr/bin/sshfs
ROOT@rp-server# ls -l /etc/fuse.conf 
-rw-r----- 1 root fuse 216 Sep 21  2010 /etc/fuse.conf
ROOT@rp-server# 
The same, or a similar, problem exists for encfs.

I searched the web for the error, but didn't find any hints.
Thanks for an idea.

nadir
Posts: 112
Joined: Sun Jun 10, 2012 5:45 am

Re: sshfs: operation not permitted

Tue Jul 10, 2012 3:55 pm

solved by another user at forums.debian.net.
Hope it helps someone with similar problems. Thanks
dilberts_left_nut wrote:from
http://sourceforge.net/apps/mediawiki/f ... ?title=FAQ
Why doesn't mounting as user work if installing FUSE from a package?
Distributions often package 'fusermount' without the suid bit, or only executable to the 'fuse' group.
This results in the following message, when trying to mount a filesystem as an unprivileged user:
fusermount: mount failed: Operation not permitted

The simplest solution is to change the mode of 'fusermount':
chmod 4755 /usr/bin/fusermount

Return to “Debian”