David Raymond | 11 Mar 20:28 2014

writing with wrong permissions


I have been experimenting with using sshfs as a replacement for nfs,
given the lack of client authentication with the latter.  I start
sshfs on the client as root with something like this in the fstab:

root <at> gryphon:/home.gryphon /home.gryphon fuse.sshfs \
      defaults,_netdev,allow_other,default_permissions 0 0

The allow_other allows users other than root to access files in the
mounted file system and the default_permissions enforces server
permissions.  (UIDs and GIDs are the same on server and client.)
This all works, but when I create a file as a non-root user,
for example,

      echo "some stuff" > junk

"junk" ends up with root permissions.  Oops!

Am I missing something?  Is this a bug or a feature?  Or am I
trying to make sshfs do something it wasn't intended to do?

I am using sshfs 2.5-1 and fuse 2.9.3-2 on Arch linux.

Thanks,

Dave Raymond

--

-- 
David J. Raymond
Prof. of Physics
(Continue reading)

Sencer Selcuk | 27 Feb 05:02 2014
Picon

Bug with SSFS

Hi,

I probably found a bug of sshfs, and wanted to report it. First let me
explain the problem & how you can reproduce it:

I mount a remote folder, to my local computer without any options:

    sshfs server:. ~/mnt

And I have only these lines in my .ssh/config file -when I remove these lines
problem is fixed, but I don't want to do this.

    Host *
      ControlMaster auto
      ControlPath /tmp/%r <at> %h:%p
      ControlPersist 60

Now when I go to ~/mnt folder and run an ssh command (which is much faster for
many cases, though not for this example) like this:

    ssh server "ls" > list.txt

it stays without any response forever. I can stop the command issuing Ctrl+C,
but then I cannot even make a simple `ls` in my home directory nor in mnt folder
till I kill sshfs with `kill -9`.

I don't have this problem if I issue the above "ssh server "ls" > list.txt"
command outside the mnt folder, nor I do if I don't redirect the output to a
file. Here is ssh debug output:

(Continue reading)

Luis Perez | 28 Jan 21:27 2014
Picon

Unable to lock database file in Cadence

Hello,

I am having an issue when using SSHFS and try to edit my Cadence files.
When mounting, do I need to specify "edit"mode?

Below is the command line that I currently using:

sshfs perxxx <at> eevlsifs.xxxx.edu:/home/perxxxx /home/perexxxx/xxxx

Thanks!

luis
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
Miklos Szeredi | 14 Jan 15:31 2014
Picon

sshfs 2.5

Version 2.5 is out there:

  http://sourceforge.net/projects/fuse/files/sshfs-fuse/2.5/

The list of changes is pretty short:

    * Add -o disable_hardlink option (debian bug #670926).  Reported
    by Louis-David Mitterrand

    * Optimize readdir by sending multiple requests in parallel.  Add
    -o sync_readdir to restore old behavior.  Patch by Alexander
    Neumann

    * Map SSH2_FX_FAILURE to ENOTEMPTY for rmdir.  Reported by Ross
    Lagerwall

    * When checking root directory use LSTAT not STAT.  This prevents
    I/O error being returned after a successful mount if a symlink is
    mounted.  Reported by Bart Friederichs

Cheers,
Miklos

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
(Continue reading)

Alexander Neumann | 22 Dec 21:25 2013
Picon

PATCH: Implement asynchronous readdir

Hi,

please see the attached patch which implements asynchronous readdir.
This enormously speeds up listing directories with 100k files on a
remote server (before: about 3 minutes 32 seconds, after: ~1.6 seconds).

The patch can also be found in the branch "speedup-large-directories" on
https://github.com/fd0/sshfs

I highly appreciate merging this patch into mainline sshfs. Comments are
more than welcome.

Happy Holidays and greetings from Germany,
Alex
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Fuse-sshfs mailing list
Fuse-sshfs <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuse-sshfs
fuse-sshfs | 19 Dec 19:51 2013

Possible Bug


$ sshfs -p 2222 -o umask=022,uid=1234,gid=1234
sshserverusername <at> sshserver.com:/home/sshserverusername /sshfilesystem/

$ ls -lash / | grep 'sshfilesystem'
4.0K drwxr-xr-x 1 username username 4.0K Dec 19 2013 sshfilesystem
$ ls -lash /sshfilesystem/zzzz/blah
4.0K -rwxr-xr-x 1 username username 34 Dec 19 13:32
/sshfilesystem/zzzz/blah
$ ls -lash /sshfilesystem/ | grep 'zzzz'
4.0K drwxr-xr-x 1 username username 4.0K Dec 19 2013 zzzz

When I edit the file 'blah' with gedit, nano, or vi, and then try to save
the file it says I don't have permission. 
Is this a bug or is this user error?
I can remove the file without error:

$ rm /sshfilesystem/zzzz/blah
$ ls /sshfilesystem/zzzz/blah
ls: cannot access /sshfilesystem/zzzz/blah: No such file or directory

and can make a new file without error:

$ echo 'asdhjksdhgjkahdjkshjdhjs' > /sshfilesystem/zzzz/blah
$ cat /sshfilesystem/zzzz/blah
asdhjksdhgjkahdjkshjdhjs

Any ideas?
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
(Continue reading)

Günter Merz | 10 Dec 14:03 2013
Picon
Picon

loopback image via sshfs

Sorry for (almost) double posting.  I hit the send button accidentally.

Hello list,

I'm mounting (via autofs, but that shouldn't make a difference) a path  
via sshfs that contains a file that is a loopback image.

The loopback image contains a luks-crypt on top of which sits an ext4  
filesystem.

I usually do the following to get to my encrypted ext4 filesystem:

    losetup /dev/loop0 /mnt/sshfs/volume.img
    cryptsetup luksOpen /dev/loop0 volume
    mount /dev/mapper/volume /mnt/volume

In general, this works.  I can access, read, write files.
However, some files have erroneous content, that, when mounted  
locally, are absolutely fine. They're not always the same files.
The filesystem quite often has (many) "block bitmap differences"  
errors which I can fix but they reappear on remount.

My sshfs mount options are:

allow_other,dev,workaround=all,idmap=user,intr,reconnect,gid=users,ServerAliveInterval=5,ServerAliveCountMax=1

I played around with "dev" and different "workaround" options without  
any notable change to my problem.

Is sshfs known not to work properly in the setup I've described?
(Continue reading)

Günter Merz | 10 Dec 13:49 2013
Picon
Picon

loopback image via sshfs

Hello list,

I'm mounting (via autofs, but that shouldn't make a difference) a path  
via sshfs that contains a file that is a loopback image.

The loopback image contains a luks-crypt on top of which sits an ext4  
filesystem.

I usually do the following to get to my encrypted ext4 filesystem:

    losetup /dev/loop0 /mnt/sshfs/volume.img
    cryptsetup luksOpen /dev/loop0 volume
    mount /dev/mapper/volume /mnt/volume

I found another description of my problem here:

In general, this works

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
Ross Lagerwall | 8 Nov 11:02 2013
Picon

rmdir on not-empy dir returns EPERM

Removing a non-empty directory returns EPERM which confuses applications
which expect ENOTEMPTY or EEXIST[1].  It would be great if sshfs could
map SSH2_FX_FAILURE to ENOTEMPTY for rmdir.

If there is somewhere else I should report this, please let me know.

[1]:
See the bug report at https://bugzilla.gnome.org/show_bug.cgi?id=541714
Specifically, comments 7 and 11.

Many thanks
--

-- 
Ross Lagerwall

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
송호철 | 14 Oct 09:58 2013
Picon

I don't know whether it's bug or not, but I have a problem with sshfs.

I'm getting error message like "type of file differs from mount point" repeatedly,
what's the problem?
------------------------------------------------------------------------
------------------------------------------------------------------------
Hochul Song,  M.S candidate
Computational Materials Research Group
Department of Materials Science and Engineering 
Seoul National University
Seoul 151-744, Korea
Phone: +82-2-880-1542
E-mail: nr2327shc <at> snu.ac.kr
http://cmsl.snu.ac.kr

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
Simeon Bird | 7 Sep 23:02 2013
Picon

access syscall always returns permission allowed on sshfs mounts

Hi,

I have noticed that the access syscall, if executed on sshfs mounts,
always seems to return 0 (ie, "permission allowed"), even if I do not
actually have the required permissions. I am using sshfs 2.4 and fuse 2.9.3.

This was my test program:

#include <unistd.h>
#include <stdio.h>

int main()
{
    int read =  access("some_file",R_OK);
    int write = access("some_file",W_OK);
    int exec =  access("some_file",X_OK);
    printf("executable: %d %d %d\n",read, write, exec);
    return 0;
}

where some_file had previously had "chmod 0" done to it.

I notice also that man 2 access states:

"access() may not work correctly on NFS file systems with UID mapping
enabled, because UID mapping  is  done  on  the server and hidden from
the client, which checks permissions.  Similar problems can occur to
FUSE mounts."

However, access returns 0 whether uid mapping is enabled or disabled,
(Continue reading)


Gmane