Daniel Möller Montull | 3 Jun 2013 13:47
Picon

umask problem

Dear all,

I am trying to mount a folder from a storage server and I have some
troubles regarding file permissions. Short: I want a 007 umask.

But sshfs applies both the environment umask and a default 022 umask.

I thought the commandline option -o umask=007 would solve this but this
option only makes every file and directory *seem* to have 770
permissions while the true permissions are the same as if this option
was not provided. Rather useless.

Is there any clear solution to this? Or is this a server issue and I am
complaining to a wrong mail list?

I have found some people pointing to modifiy the sftp subsystem config
through /etc/ssh/sshd_config but what if I don't have admin acces or a
per-user config or even a per-connection config is needed?

Maybe sshfs could read ~/.profile to acquire the right umask. But I
think the right solution would be the -o umask=007 option to work
properly, since theese config files might not exist and a per-connection
config may be needed.

Thanks
--
Dani

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
(Continue reading)

Jeffrey Chimene | 12 May 2013 23:13
Picon

SSHFS creating zero-length fine on openVMS

Hi,

I've been using SSHFS to transfer files t/from openVMS for quite some
time. It's only recently that I wanted to maintain multiple versions of
the same file.

I notice that when creating the second and subsequent versions of a
file, the version is zero length. After creating the subsequent version,
the former version length is correct. I've repeated this experiment on
two different VMS installations.

For example, from Debian Jessie:

sshfs chimenej <at> portingalpha: /mnt/hp

======== Copy #1
cp run-all /mnt/hp/
`run-all' -> `/mnt/hp/run-all'
ls -lat /mnt/hp/run-all
-rw-r----- 1 8519689 130 535 May 12 13:40 /mnt/hp/run-all

======== VMS sees the following
$ dir/siz=all run-all*.*;*

Directory PTAC$DKA100:[CHIMENEJ]

run-all.;1                 2/16

Total of 1 file, 2/16 blocks.

(Continue reading)

Jin-Ho Yoon | 1 May 2013 14:34
Picon
Favicon

Re: hi

http://qiumo123.net/wp-content/plugins/tv1mod/brain.php?khlbjbt792jp

============
Life is really just a game, but there is some assembly required. -- Tom Wilson
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
Charles | 22 Mar 2013 07:01

sshfs -o rellinks: unexpected behaviour

When sshfs is given option -o rellinks, it responds with
    fuse: unknown option `rellinks'
According to my understanding of the sshfs man page and --help output
this option a) is valid and b) should be passed to the module, not to fuse.

What's wrong -- my understanding or sshfs?

Versions:
    SSHFS version 2.4
    FUSE library version: 2.8.5
    fusermount version: 2.8.5
    using FUSE kernel interface version 7.12
    OS: Slackware64 14.0

Best, Charles

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
Charles | 22 Mar 2013 07:01

sshfs documentation enhancement suggestions

After starting to use sshfs (version 2.4) for the first time -- so maybe
based on misconception -- here are two sshfs documentation enhancement
suggestions.

1. Mount options.  In the sshfs general options, mount options (-o
opt,[opt...]) documentation, it might be helpful to specify which
options are available.

Rationale: sshfs rightly does not support all the mount man page's
"FILESYSTEM INDEPENDENT MOUNT OPTIONS" and the mount man page does not
have a section for sshfs.  Thus the user has to guess, reason or
experiment to find which mount options are available.  For example I
found by experiment that noatime is accepted but nodiratime and
noiversion are not.

2. Command path completion.  It did not work for me within directories
under an sshfs mountpoint.  For example on typing cd <sshfs mount point>/
then tab and tab, nothing was listed as it is for the usual file
systems.  If this is normal behaviour it might be helpful to mention it
in the man page.

Rationale: this is not customary behaviour.  Nice for there to be no
surprises for the user who has read the documentation.  Nice for the
user who finds and investigates unusual behaviour to have it confirmed
as normal in the documentation.

Best, Charles

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
(Continue reading)

Favicon

sshfs halts before authentication

Hello,

like the subject says, sshfs halts before authentication (e.g. before
asking for a password). The weird thing is, it only does this for certain
directories, that have been mountpoints in the past, and I can't work
around the problem by deleting/recreating the directory either.

Neither lsof, fuser or running sshfs with debugging enabled tell
anything. The remote logs only say that the client disconnected without
sending auth info (as soon as I kill sshfs, until then it just halts).

I am really stuck here...

Cheers,
max

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
Favicon

strace for 'sshfs halts before authentication'

Maybe an strace up to the halt helps you:

execve("/usr/bin/sshfs", ["sshfs", "triakis:/", "triakis/"], [/* 39 vars */]) = 0
brk(0)                                  = 0x8b14000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77c3000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=116256, ...}) = 0
mmap2(NULL, 116256, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb77a6000
close(3)                                = 0
open("/lib/libfuse.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 <at> P\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=160372, ...}) = 0
mmap2(NULL, 159160, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb777f000
mmap2(0xb779d000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e) = 0xb779d000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\n\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=17492, ...}) = 0
mmap2(NULL, 16504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb777a000
mmap2(0xb777d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb777d000
close(3)                                = 0
open("/usr/lib/libgthread-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\4\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=3696, ...}) = 0
mmap2(NULL, 6592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7778000
mmap2(0xb7779000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0xb7779000
close(3)                                = 0
open("/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\31\0\0004\0\0\0"..., 512) = 512
(Continue reading)

Alan Jenkins | 18 Feb 2013 12:47
Picon

[PATCH] fix missing newline in manual page

---
 sshfs.1 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sshfs.1 b/sshfs.1
index d316930..a9dfa3c 100644
--- a/sshfs.1
+++ b/sshfs.1
 <at>  <at>  -138,6 +138,7  <at>  <at>  path to sftp server or subsystem (default: sftp)
 .TP
 \fB\-o\fR directport=PORT
 directly connect to PORT bypassing ssh
+.TP
 \fB\-o\fR slave
 communicate over stdin and stdout bypassing network
 .TP
--

-- 
1.8.1.2

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
Omega Weapon | 17 Feb 2013 12:23
Picon

sshfs does not cope with IdentityFile path with spaces

Please CC me in to emails - I'm not subscribed to the mailing list.

I have a SSH server to access where I use a special private keyfile that 
is stored in a path with spaces. So testing getting sshfs working (all 
the debug options were needed to even get sshfs to tell me what was 
breaking...):

=======================================================================

$ sudo sshfs -p 22222 -o 
debug,sshfs_debug,loglevel=debug,IdentityFile="<path to identity file 
with spaces>" root <at> <host>:"/root/files/source_code" "<local directory to 
mount into"

SSHFS version 2.4
FUSE library version: 2.9.0
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-oPort=22222> 
<-ologlevel=debug> <-oIdentityFile=path to identity file with spaces, no 
speechmarks etc> <-2> <root <at> omegafw> <-s> <sftp>
command-line line 0: garbage at end of line; "Files/Philips".
read: Connection reset by peer

=======================================================================

The fragment it complains about is the string after the first space in 
the IdentityFile path.

(Continue reading)

Mike | 14 Feb 2013 20:50

Remapping uid/gid question

Hi,

	I have an application where it would be darn conveinent to mount a 
remote file system locally and re-map the uid/gid. This is a temporary 
solution for a problem I have which will be resolved longer term by ldap 
and having these centrally managed.

	The issue is that, on the server, the user has uid 1008 and gid 1003. 
On the client, that user has uid/gid 1000. I have sshfs v2.4 and have 
tried using the uidmap/gidmap feature and apparently I'm just not able 
to figure it out.

	The local user name and group is simply 'vmail' and I have my 
uidfile/gid files set thusly:

sshfs.uidmap
vmail:1008

sshfs.gidmap
vmail:1003

	Unfortunately the permissions are wrong and I can't even look at the 
directory when mounted this way:

ls: cannot access qmail: Permission denied
d?????????   ? ?    ?             ?            ? qmail

	The command I am using is this:

sshfs -d -p 22 -o 
(Continue reading)

Mike | 13 Feb 2013 21:25
Picon

Remapping uid/gid question

Hi,

	I have an application where it would be darn conveinent to mount a 
remote file system locally and re-map the uid/gid. This is a temporary 
solution for a problem I have which will be resolved longer term by ldap 
and having these centrally managed.

	The issue is that, on the server, the user has uid 1008 and gid 1003. 
On the client, that user has uid/gid 1000. I have sshfs v2.4 and have 
tried using the uidmap/gidmap feature and apparently I'm just not able 
to figure it out.

	The local user name and group is simply 'vmail' and I have my 
uidfile/gid files set thusly:

sshfs.uidmap
vmail:1008

sshfs.gidmap
vmail:1003

	Unfortunately the permissions are wrong and I can't even look at the 
directory when mounted this way:

ls: cannot access qmail: Permission denied
d?????????   ? ?    ?             ?            ? qmail

	The command I am using is this:

sshfs -d -p 22 -o 
(Continue reading)


Gmane