sshfs questions

Red Squirrel

No Lifer
May 24, 2003
69,718
13,338
126
www.betteroff.ca
By default when I mount a sshfs share, it writes files with permissions of rw-r-r on the remote server. Is there a way to change this? I need it to be rwx-rwx---.

Also is there a way to mount a sshfs share in windows? Only way I can think of is setup a linux vm then mount the share through samba. Is there an easier way?
 

Red Squirrel

No Lifer
May 24, 2003
69,718
13,338
126
www.betteroff.ca
Think I found something. I have to put umask=002. I figured it would of been like 770 or something but whatever works.

now is there a way to mount a drive right in windows?
 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
Umask is the exact opposite of the permissions you want the file to have.

So you take the umax and subtract it from 7 for the bit and you have your real permission.

umask 002 is saying

default permssion 777
umask 002
--------------------------
new permission 775 or -rwxrwxr-x

I think you really want 007

You need to setup samba to mount easily in windows.
 

xSauronx

Lifer
Jul 14, 2000
19,582
4
81
this (oldish) thread
has some ideas

novel netdrive may do it, if you can find it. winscp may work if you can use sftp/scp instead of requiring a sshfs mount *shrug*

theres even a link to doing something in vmware. im not reading it, but i _guess_ it suggests to run a linux vm in windows to mount the sshfs drive, and then *share* that via samba so windows can get to it.