Jump to content
  • Announcements

    • spinynorman

      Mandriva Official Documentation

      Official documentation for extant versions of Mandriva can be found at doc.mandriva.com.   Documentation for the latest release may take some time to appear there. You can install all the manuals from the main repository if you have Mandriva installed - files are prefixed mandriva-doc.
    • paul

      Forum software upgrade   10/29/17

      So you may have noticed the forum software has upgraded !!!
      A few things that have changed. We no longer have community blogs (was never really used) We no longer have a portal page.
      We can discuss this, and decide whether it is needed (It costs money) See this thread: Here
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×