Opened 14 years ago

Closed 14 years ago

#25609 closed defect (fixed)

macfuse-2.0.3_1 wrong file permissions

Reported by: ck@… Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: nerdling (Jeremy Lavergne)
Port: macfuse

Description

With the permissions as they are set now trying to mount anything via macfuse (eg. encfs ~/somedir ~/someotherdir) as normal user and even as root fails. Mounting as root can be fixed by setting kext permissions to root:wheel (see below). Fixing mounting as normal user further needs drwxr-xr-x permissions on the load_fusefs file (again see below).

Permissions of /Library/Filesystems/fusefs.fs/Support as they are set by the port now:

fusefs.fs//Support:
total 96
lrwxr-xr-x  1 root  wheel     81 Jul  9 23:45 autoinstall-macfuse-core -> /Library/PreferencePanes/MacFUSE.prefPane/Contents/MacOS/autoinstall-macfuse-core
drwxr-xr-x  3 root  admin    102 Jul  9 23:45 fusefs.kext
-rwxr-xr-x  2 root  admin   8916 Jul  9 23:44 load_fusefs
-rwxr-xr-x  2 root  admin  23932 Jul  9 23:44 mount_fusefs
-rwxr-xr-x  2 root  admin   6543 Jul  9 23:43 uninstall-macfuse-core.sh

fusefs.fs//Support/fusefs.kext:
total 0
drwxr-xr-x  4 root  admin  136 Jul  9 23:45 Contents

fusefs.fs//Support/fusefs.kext/Contents:
total 8
-rw-r--r--  2 root  admin  1032 Jul  9 23:44 Info.plist
drwxr-xr-x  3 root  admin   102 Jul  9 23:45 MacOS

fusefs.fs//Support/fusefs.kext/Contents/MacOS:
total 216
-rw-r--r--  2 root  admin  109776 Jul  9 23:44 fusefs

Permissions as they should be:

fusefs.fs//Support:
total 96
lrwxr-xr-x  1 root  wheel     81 Jul  9 21:02 autoinstall-macfuse-core -> /Library/PreferencePanes/MacFUSE.prefPane/Contents/MacOS/autoinstall-macfuse-core
drwxr-xr-x  3 root  wheel    102 Jul  9 21:02 fusefs.kext
-rwsr-xr-x  2 root  admin   8916 Jul  9 21:01 load_fusefs
-rwxr-xr-x  2 root  admin  23932 Jul  9 21:01 mount_fusefs
-rwxr-xr-x  2 root  admin   6543 Jul  9 21:01 uninstall-macfuse-core.sh

fusefs.fs//Support/fusefs.kext:
total 0
drwxr-xr-x  4 root  wheel  136 Jul  9 21:02 Contents

fusefs.fs//Support/fusefs.kext/Contents:
total 8
-rw-r--r--  2 root  wheel  1032 Jul  9 21:01 Info.plist
drwxr-xr-x  3 root  wheel   102 Jul  9 21:02 MacOS

fusefs.fs//Support/fusefs.kext/Contents/MacOS:
total 216
-rw-r--r--  2 root  wheel  109776 Jul  9 21:01 fusefs

Change History (10)

comment:1 Changed 14 years ago by drkp (Dan Ports)

Owner: changed from macports-tickets@… to dports@…
Status: newassigned

comment:2 Changed 14 years ago by drkp (Dan Ports)

Can't reproduce this -- my permissions match your "as they should be" ones. Any idea why yours don't?

comment:3 Changed 14 years ago by ck@…

Actually no. I spent several hours today figuring out what was wrong in the first place. The permission thing sprang to my eye when I tried the pkg release of MacFusion (2.1.5) and it just worked. After un- and reinstalling macports several times it seemed that the port was at fault.

comment:4 Changed 14 years ago by ck@…

Err... the un/reinstalling thing was with macfuse of course.

comment:5 Changed 14 years ago by ck@…

And of course I meant MacFuse 2.1.5 ... sorry been a long day.

comment:6 Changed 14 years ago by mlund (Mikael Lund)

I did selfupdate / updated outdated yesterday and sshfs stopped working, claiming problems with macfuse:

$ sshfs somehost: mntpnt /Library/Filesystems/fusefs.fs/Support/fusefs.kext failed to load - (libkern/kext) not privileged; check the system/kernel logs for errors or try kextutil(8). the MacFUSE file system is not available (77)

I tried changing the permissions as suggested above but that didn't help. Also I noted that I don't have the "/Library/PreferencePanes/MacFUSE.prefPane" dir. Uninstall/install didn't create one.

sshfs@2.2 macfuse@2.0.3_1 macos 10.6.3

comment:7 in reply to:  6 Changed 14 years ago by ck@…

Replying to mlund@…:

I did selfupdate / updated outdated yesterday and sshfs stopped working, claiming problems with macfuse:

$ sshfs somehost: mntpnt /Library/Filesystems/fusefs.fs/Support/fusefs.kext failed to load - (libkern/kext) not privileged; check the system/kernel logs for errors or try kextutil(8). the MacFUSE file system is not available (77)

I tried changing the permissions as suggested above but that didn't help. Also I noted that I don't have the "/Library/PreferencePanes/MacFUSE.prefPane" dir. Uninstall/install didn't create one.

sshfs@2.2 macfuse@2.0.3_1 macos 10.6.3

That sound exactly like my problem. Are you sure /Library/Filesystems/fusefs.fs/Support/load_fusefs has -rwsr-xr-x permissions? I just realized I gave the wrong permissions in the bug text above (they are correct in the dir listing though).

comment:8 Changed 14 years ago by drkp (Dan Ports)

Yes, please check the permissions to see if this is the same problem. A build log from sudo port -d install macfuse would also be helpful. Actually, would be helpful from both of you. (I can't reproduce the problem, so any potentially-relevant info would help)

The lack of a prefpane is normal, the port doesn't install it.

comment:9 Changed 14 years ago by drkp (Dan Ports)

Cc: snc@… added

I just committed a change (r69768) to set the permissions on these files. This should fix your problem -- can you confirm?

comment:10 Changed 14 years ago by drkp (Dan Ports)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.