maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Fuse and sshfs? (https://talk.maemo.org/showthread.php?t=36654)

debernardis 2009-12-20 18:17

Re: Fuse and sshfs?
 
@Kenchy: are you able to "fusermount -u" the mounted directory?

qole 2009-12-20 21:34

Re: Fuse and sshfs?
 
The simplest workaround for maemo would be to add something to /etc/sudoers.d that would let you just do "sudo sshfs..."

Kenchy 2009-12-21 20:06

Re: Fuse and sshfs?
 
@debernardis, I think so, I can't check at the moment, as I have had to hand the n900 to my wife until christmas!

@qole I'm pretty sure running it with sudo won't make any difference. Fuse is intended to be run as by the user that needs the file-system. I have had issues with sshfs run as root (admittedly not on a maemo device).

qole 2009-12-21 22:09

Re: Fuse and sshfs?
 
Quote:

Originally Posted by Kenchy (Post 436725)
@debernardis, I think so, I can't check at the moment, as I have had to hand the n900 to my wife until christmas!

That sounds like an interesting story...

Quote:

Originally Posted by Kenchy (Post 436725)
@qole I'm pretty sure running it with sudo won't make any difference. Fuse is intended to be run as by the user that needs the file-system. I have had issues with sshfs run as root (admittedly not on a maemo device).

Yes, you have to use "-o allow_other" when running as root. But it works; that's how I do it (see my post above).

AliB 2009-12-22 01:49

Re: Fuse and sshfs?
 
Quote:

Originally Posted by debernardis
There seem to be some problems though. I cannot "fusermount -u mount_path" because it complains "mount: can't find mount_path in /etc/fstab".

This happens for me as well. I thought about filing a bug report, but I honestly can't find how to do so for the sshfs package... The bugzilla site does not list any of the extras-testing or extras-devel packages. Not creating the fuse group upon install is also a bug IMO, fuse allowing user mounts is the expected behaviour after all.

Also, has anyone gotten the reconnect option to work? Basically, the ssh-session keeps timing out when the device goes to sleep or switches network, screwing up the mounted sshfs. This is exactly what I thought the '-o reconnect' option was for, but it does not seem to work as expected - the ssh-session still dies after some time of inactivity, or when switching network, without ever reconnecting.

hallgreng 2009-12-23 20:54

Re: Fuse and sshfs?
 
i added the 'fuse' group and 'user' to it after changing the perms on /dev/fuse, it works fine for me now.

-o reconnect works fine for me. i accidentally tested it when i drove home from work (wifi connection). the server was still accessible when i reconnected at home.

AliB 2009-12-24 13:51

Re: Fuse and sshfs?
 
Did you get fusermount -u to work as well? While I can
Code:

sudo gainroot
umount path/

it would be nice to be able to unmount without root.

I see no practical difference at all in behaviour with or without -o reconnect... In both cases the mount point becomes inaccessible upon any network disconnect. They do give different errors on access, though. Without reconnect I get "transport endpoint not connected", with it I get "Input/output error" (both returned by, for instance, an ls in the parent directory).

Do you use any additional ssh-options on the server or client? Ie, I've tried a few values of ServerAliveInterval and similar on the client (to no effect).

adalal 2010-01-19 01:44

Re: Fuse and sshfs?
 
bump.. any idea on how to get the fusermount -u to work? using sudo gainroot and umount is quite a lengthy process...

qole 2010-01-19 05:04

Re: Fuse and sshfs?
 
Look into how to use visudo to give yourself sudo powers.

That way, you can just do 'sudo umount /media/myshare'

SubCore 2010-01-19 15:13

Re: Fuse and sshfs?
 
@adalal
another possibility would be to create a dedicated shortcut for unmounting, and use this as value for "Exec=":

/bin/busybox sh -c 'echo umount /media/mountpoint | sudo gainroot'


All times are GMT. The time now is 11:48.

vBulletin® Version 3.8.8