Bart Friederichs | 3 May 11:54
Picon
Favicon
Gravatar

sshfs gives an I/O error

Hi

I am not following the list, but thought I'd remind you of this issue:

When I want to mount using sshfs as remote root, it mounts fine, but I get
an I/O error when trying to read anything:

bf <at> desktop-bf:~/SSHNetwork$ sshfs -o allow_other root <at> intranet:/var/www
Frodoweb/
root <at> intranet's password:
bf <at> desktop-bf:~/SSHNetwork$ ls -la
ls: cannot access Frodoweb: Input/output error

When I use a normal user, it seems to work fine.

When I add a trialing slash, the whole thing works fine:

bf <at> desktop-bf:~/SSHNetwork$ sshfs -o allow_other root <at> intranet:/var/www/
Frodoweb/
root <at> intranet's password:
bf <at> desktop-bf:~/SSHNetwork$ ls -la
total 64
...

I am using:
bf <at> desktop-bf:~/SSHNetwork/Frodoweb$ sshfs --version
SSHFS version 2.3
FUSE library version: 2.8.6
fusermount version: 2.8.6
using FUSE kernel interface version 7.12
(Continue reading)

Daniel Milde | 26 Apr 10:42
Picon
Gravatar

cp moves content to host

Hello Miklos,
I just found out that SSHFS moves files from server to host when I run
copy command. According to FAG it shouldn't:
http://sourceforge.net/apps/mediawiki/fuse/index.php?title=SshfsFaq

Example:

sshfs host: data
cd data
time cp etc.tgz etc1.tgz

Output:
real	1m15.335s
user	0m0.000s
sys	0m0.040s

The file etc.tgz has about 50MB and it takes 2.673s when I run the same
command directly via SSH.

Is this bug or feature?

Thanks

Best regards
Daniel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
(Continue reading)

MTA | 20 Apr 14:52
Favicon

patch

Hi
We use sshfs on the platform arm uclibc, her daemon
function does not work as it is implemented in the standard libc.
We offer a patch, which will work on all platforms.
Thank you very much.

-- 

Обновления e-mail: service <at> m-200.com
Адрес http://www.m-200.com

ТК 'МТА',
С уважением,
 MTA                          mailto:maksim <at> m-200.com
Attachment (libfuse-daemon.patch): application/octet-stream, 777 bytes
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Fuse-sshfs mailing list
Fuse-sshfs <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuse-sshfs
Alex Pyattaev | 20 Apr 14:01
Picon

Patch for remote permissions?

Hello!
there is an old patch in the internet here
http://andre.frimberger.de/wp-content/uploads/downloads/2010/08/sshfs-2.2-
permissions-workaround.patch.txt
which allows to specify fmask and dmask for the uploaded files in a way that 
is not dependent on the local user's umask setting. Is there any chance of 
this getting merged into the production version? If there is, I could port it 
to the current stable version and send it to you guys for commit.

I really need this kind of functionality, preferably yesterday, so let me know 
what you think.

Best regards,
Alex Pyattaev
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
Pen-Yuan Hsing | 12 Apr 18:53
Picon
Favicon

Can't write to mounted SSHFS volume in Mac OS X 10.6.8


Hello,

I installed SSHFS via MacPorts onto my system with Mac OS X 10.6.8. It
runs well and mounts a remote volume correctly.

While I can read from the mounted volume, I am not allowed to write
anything to it! This is even though I logged in with credentials that
have write access on the server.

My only theory is that my Mac is trying to write to the SSHFS with local
credentials, and not the remote user that actually has write access. Is
this correct? Or is it another problem?

In any case, would you be able to help me with troubleshooting this issue?

Thank you so much!

Pen-Yuan Hsing
Dieter Plaetinck | 15 Mar 14:18
Picon

gazzilion lookups when cd'ing into mountpoint + assuring responsiveness

Hi,
I've used sshfs with success in various previous use cases,
although I'm now having an issue I haven't seen before.
I mount the sshfs like so:
sshfs -d -o debug -o idmap=user $server:/home/dieter/public_html/master /home/dieter/workspaces/eclipse/master

I can ls the contents of the mountpoint well, and read files, but as soon as I want to cd into the mount,
sshfs seems to perform a LOOKUP/getattr for pretty much every single file contained within the remote
directory (recursively).
This causes the cd call to stall.

My other question is, how is responsiveness assured? I know sshfs performs predictive readahead and
caching, but when are caches invalidated?
Does sshfs use something like inotify?
I'm working on a remote codebase (editing it locally, but storing and running it remotely, although a full
local cache is acceptable)
and I'm considering two options.  One is just using sshfs.  The other one is more involved but possibly more responsive:
I would just do an initial rsync of the directory to my local pc, and then use inotify to perform an rsync to the
remote host when files change.

any thoughts?

thanks,
Dieter

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
(Continue reading)

Dimitry Golubovsky | 10 Mar 15:18
Picon
Gravatar

sshfs client on Android (with Dropbear)?

Hi,

I am trying to port sshfs to Android. Android uses dropbear as ssh
implementation therefore no sftp on the client side. The host I want
to connrct to surely has "normal" openssh.

Is it necessary to have the sftp program at client side in order to
use sshfs, or is it only the server requirement to have sftp-server?

Thanks.

--

-- 
Dimitry Golubovsky

Anywhere on the Web

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
jozef menda | 1 Mar 10:58
Picon

sshfs symlinks not working

hello,
I have a problem with sshfs and symbolic links on server
I followed the solution described in faq but it didn't help.
i am mounting the server fs like this:
sshfs user <at> server:/ ~/server/ -o
follow_symlinks,transform_symlinks,workaround=rename,idmap=user,uid=500,gid=500
i tried also without idmap and transform_symlinks,didn't help.

I am using fedora 14 with gnome
sshfs --version:
SSHFS version 2.3
FUSE library version: 2.8.5
fusermount version: 2.8.5
using FUSE kernel interface version 7.12

uname -a:
Linux mypc 2.6.35.14-106.fc14.i686 #1 SMP Wed Nov 23 13:57:33 UTC 2011
i686 i686 i386 GNU/Linux

am I doing something wrong? thank you for your help.

best regards,

jozef menda

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
(Continue reading)

Mark Buell | 27 Feb 00:29
Picon
Favicon

Maybe a bug

I brought this to the ubuntu forums - but I think I may have found a bug in 
sshfs. 

http://ubuntuforums.org/showthread.php?p=11721070#post11721070

The meat of what I have found is in my last post. Copied here. The problem 
occurred when using sshfs to mount a remote file system. Files could not be 
moved on the sshfs mounted filesystem, and the "workaround" option did not 
remedy the situation. It was also noticed that encfs would not open encrypted 
directories on the sshfs filesystem.  More detail in the letter below.

==============================original message============================

I rewrote the situation - hopefully to make it clearer. 

I looked at permissions again, but I still found nothing in permissions  that 
seems to be related to the symptoms. However, here is what I DID  notice this 
time: it seems to be related to partitions. 

A while back, on the server, I mounted a new hard drive in the shared  area when 
I needed more space. This mount has seemed to be transparent  in normal usage. 
I've been using the space for months. However, it is  entirely possible that I 
never tried to move files across the partition  boundaries before. 

It is mounted like this. Everything under server-share is shared and  visible to 
all users. I don't need security in this situation.  Server-share is on its own 
partition on the primary hard drive. 

server-share/samba user directories/ 
server-share/Lr1/ (this is the main partition for the new hard drive)
(Continue reading)

Mike Kelly | 17 Feb 19:24
Favicon
Gravatar

[PATCH] make sure idmap files aren't writable by others

otherwise, other local users could change the mapping, and gain access
to things they shouldn't
---
 sshfs.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/sshfs.c b/sshfs.c
index 7afbd87..ed9652c 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3561,6 +3561,7 @@ static void read_id_map(char *file, uint32_t *(*map_fn)(char *),
 	FILE *fp;
 	char line[LINE_MAX];
 	unsigned int lineno = 0;
+	uid_t local_uid = getuid();

 	fp = fopen(file, "r");
 	if (fp == NULL) {
@@ -3568,6 +3569,21 @@ static void read_id_map(char *file, uint32_t *(*map_fn)(char *),
 				file, strerror(errno));
 		exit(1);
 	}
+	struct stat st;
+	if (fstat(fileno(fp), &st) == -1) {
+		fprintf(stderr, "failed to stat '%s': %s\n", file,
+				strerror(errno));
+		exit(1);
+	}
+	if (st.st_uid != local_uid) {
+		fprintf(stderr, "'%s' is not owned by uid %lu\n", file,
(Continue reading)

Mike Kelly | 17 Feb 17:35
Favicon
Gravatar

One more patch for idmap=file

Here's one more patch I forgot to send, that adds a bit more paranoia to
the idmap=file patches that were merged a few weeks ago.

Thanks.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

Gmane