Jump to content
Sign in to follow this  
hannu

Using SSHFS and Fuse, permission fix

Recommended Posts

If you want to use SSHFS (Secure Shell File System) in Mandriva, take this into consideration:

install the two packages needed:

urpmi sshfs

urpmi fuse

SSHFS is meant to be used so that you mount the remote file system as regular user, not root:

sshfs remoteserver: localmountpoint

 

You will get an error: you don't have permission to use /dev/fuse

You can get around this:

as root: chmod 666 /dev/fuse

This will not stick, the /dev permissions get reset everytime the system boots

 

Here is the more permanent fix: as root, edit /etc/rc.local, add this line at the end:

chmod 666 /dev/fuse

 

SHHFS works great. It is much better for mounting file systems in other Unix-like boxes than having to risk using NFS or pretending to be Windows and log into samba drives.

Maybe the above issue could be handled in the fuse rpm in future releases.

Thank you,

Hannu

 

 

[moved from Networking by spinynorman]

Share this post


Link to post
Share on other sites
You will get an error: you don't have permission to use /dev/fuse

You can get around this:

as root: chmod 666 /dev/fuse

This will not stick, the /dev permissions get reset everytime the system boots

 

Here is the more permanent fix: as root, edit /etc/rc.local, add this line at the end:

chmod 666 /dev/fuse

 

actually the proper way to do this is to add fuse as a secondary group for each user that is allowed to use fuse.

 

If you look at /dev/fuse it's configured like this:

crw-rw---- 1 root fuse 10, 229 2009-01-18 14:03 /dev/fuse

 

So if you add the users to the fuse group in /etc/group, those users will be able to use fuse, for example:

grep fuse /etc/group

fuse:x:110:user1,user2

Edited by tux99

Share this post


Link to post
Share on other sites
actually the proper way to do this is to add fuse as a secondary group for each user that is allowed to use fuse.

 

Interesting that you point that out because I tried that first, didn't work in my installation. I even checked that I was in group fuse, still got the permission error.

That's why I ended up with the chmod line in rc.local

However, whatever works ..

Thanks,

Hannu

Share this post


Link to post
Share on other sites

it works for me in mdv 2008.1, I just tried it to confirm.

This is how it is intended to work by the makers of Mandriva, of course you can do it anyway you want, but by doing it the 'official' way, you ensure it will survive updates and upgrades.

Share this post


Link to post
Share on other sites

Did you log out after adding yourself to the group? If not, this will be why you still got the permission error.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...