Extra Options -- syntax and semantic

57 views
Skip to first unread message

Jens

unread,
Jul 24, 2007, 5:29:31 AM7/24/07
to MacFusion-devel
Hi,

I've got some questions concerning the field "Extra Option (Advanced)"
in the favorites settings. According to

http://code.google.com/p/macfusion/issues/detail?id=28

this field is used to pass options directly to sshfs. In the thread
above there's a list of options of sshfs, which I can reproduce via
sshfs - h after installing sshfs and adding a symbolic link as
described in

http://code.google.com/p/macfuse/wiki/MACFUSE_FS_SSHFS

I've successfully used this field for the option "-odefer_auth" (even
if I'm confused about the missing space between o and defer_auth) with
an ftp account.

I also have a ssh connection configured. I wanted to add the option "-
o umask=755". Unfortunately this is not working (I tried both "-o
umask=755" and "-oumask=755"). Without that option, sshfs mounts
correctly and everything is working. With the option, sshfs mounts,
but I have no privileges to open the drive. Are only a some options
supported by MacFusion? Or do I have to change the format?

Besides that, when mounting the ssh drive without any options, I'm
able to copy files and create folders etc., but I cannot change the
permissions from the finder's information window. Is there a way to
enable that?

Jens

Graham Perrin

unread,
Jul 24, 2007, 8:23:17 AM7/24/07
to Jens, MacFusion users and developers
On 24 Jul 2007, at 10:29, Jens wrote:

> I've successfully used this field for the option "-odefer_auth"

> I also have a ssh connection configured. I wanted to add the

> option "-
> o umask=755". Unfortunately this is not working (I tried both "-o
> umask=755" and "-oumask=755")

Assuming you require both options together, try

-oumask=022,defer_auth

or

-odefer_auth,umask=022


As far as I know:
the options are separated by a comma
,
and the space after
-o
is optional

Re <http://linuxzoo.net/page/sec_umask.html> it appears that umask
should be
022
if you require permissions
755 and 644 for directories and files.

Regards
Graham

Jens

unread,
Jul 25, 2007, 4:45:10 AM7/25/07
to MacFusion-devel
Graham,

thank you!
-oumask=022,defer_auth
is working, as well as
-oumask=022
But
-oumask=755
is not working as described above. Thus it was the wrong umask value.
I'm a little bit confused, but at least it is working -- and it was no
MacFusion issue.

Jens

Jens

unread,
Jul 25, 2007, 5:54:12 AM7/25/07
to MacFusion-devel
Now I understand the option umask. It's the umask and not the file
permission I'm setting. So the help information of sshfs is a little
bit confusing:
-o umask=M set file permissions (octal)
Is it possible to set a default file permission. I.e. I want all files
uploaded to have automatically set permission to 644 and folders 755.
With umask I can only restrict the permissions.

Usually I can change the file permissions with Finder's information
dialog, but this is not possible here. And starting a separate ssh
connection and use chmod is not very comfortable.

Reply all
Reply to author
Forward
0 new messages