RSS
 

fuse sshfs

30 May
Well working with fuse i needed to get nautilus my gnome file browser to let me edit the files. Well after doing a little search on google, i decided i would just look at the --help output from the file itself. Low and behold there was my answer. So for future record this is how you do it. Get the uid and gid of the user you are going to mount from. So in the terminal do id -u id -g this will give you your local uid and gid. So if my local uid and gid were 512 i would do the following.
sshfs -o uid=512,gid=512 me@myremoteserver:/remote/mount/path /local/mount/path
That should do it.
Posted on an Ubuntu Blog
ubuntu.wordpress
Update:
If you run the following command it will get the uid and gid for you.
sshfs -o uid=`id -u`,gid=`id -g` me@myremoteserver:/remote/mount/path /local/mount/path

For scripts this will work the best i think.

Leave a Reply

Comments are closed

  1. June 8th 2006 at 04:06 pm

    I've been looking for a solution to this too. I tried your way but it doesn't work for me.<br /> <br /> When I mount my remote system with sshfs I have to do so with sudo - otherwise I don't have the permissions... I wonder if this has something to do with it?<br /> <br /> I'm new to Linux... Any ideas?