Solution: “failed to open /dev/fuse: Permission denied”

Posted 1342 days ago - Encryption, Security

After installing and attempting to use sshfs (Secure Shell File System) for the first time in a few months, the permissions for the fuse device were giving me grief.

guyp@q9550 ~$ sshfs -p 62002 root@10.254.7.56:/ /mnt/sshfs
fuse: failed to open /dev/fuse: Permission denied

Ok, what happens if we prefix with sudo?

guyp@q9550 ~$ sudo sshfs -p 62002 root@10.254.7.56:/ /mnt/sshfs
guyp@q9550 ~$ ls -lah /mnt/sshfs
ls: cannot access /mnt/sshfs: Permission denied

Well dammit, now what? Forget sudo and go back to the issue. Let's see what the permissions on /dev/fuse look like...

guyp@q9550 ~$ ls -lah /dev/fuse
crw-rw---- 1 root fuse 10, 229 2009-10-17 01:57 /dev/fuse

According to that, members of the "fuse" group can read and write to /dev/fuse; excellent, so here's how to fix the issue once and for all:

guyp@q9550 ~$ sudo usermod -a -G fuse guyp
guyp@q9550 ~$ groups
guyp root adm wheel audio operator fuse
guyp@q9550 ~$ sshfs -p 62002 root@10.254.7.56:/ /mnt/sshfs
guyp@q9550 ~$ cat /mnt/sshfs/etc/debian_version
5.0.3
guyp@q9550 ~$

Congratulations, you're transferring files securely. Use sshfs to map remote drives for music, movies, remote backups, off-site surveillance recordings, whatever your heart desires.

Word Count: 247

Tags: ,

Click Here to Submit a Comment

Permalink / Last Modified:

Support Nullamatix.com:

See Also:

  • 02/29/2008 -- SftpDrive: A Must Have Utility For Web Designers
    Excerpt: "If you maintain a website that's hosted on a Linux server, you're aware the process of editing pages locally and uploading them to the server is often a hassle. Most server administrators run an ftp daemon to enable file transferring. Some of the file types a ..."
  • 08/22/2009 -- Howto: Fortinet Pub Key Authentication for Backups
    Excerpt: "With FortiOS 3.0 MR3 and up, properly configured accounts can use secure copy (SCP) to download the configuration file from a FortiGate unit. This will provide a means to create daily backups of all the FortiGate configuration files you're responsible for ..."
  • 02/21/2008 -- Is Comcast Blocking More Than Just Torrents?
    Excerpt: "Although I've yet to compile any concrete proof, recent indicators have made me wonder whether or not Comcast is filtering more than just torrent traffic. Since implementing the steps outlined in this post, Comcast has actually been pretty tolerable, until ..."
  • 12/17/2007 -- Howto: Remote Desktop At Work, Evading A Firewall
    Excerpt: "A lot of organizations intentionally block remote desktop capabilities. With that in mind, please be aware that following the instructions in this post may lead to consequences depending on policies outlined within your organization. This guide will ..."

Leave a Reply