fox-it / dissect.target

The Dissect module tying all other Dissect modules together. It provides a programming API and command line tools which allow easy access to various data sources inside disk images or file collections (a.k.a. targets).
GNU Affero General Public License v3.0
38 stars 42 forks source link

FUSE error because of allow_other #683

Open mxmlnkn opened 2 months ago

mxmlnkn commented 2 months ago

Hi,

I wanted to try out the project, but my first test failed:

echo foo > bar
tar -cf simple.tar bar
target-mount directly-compressed.tar mounted
INFO:root:Using fuse2 library: libfuse.so.2
2024-04-15T16:42:34.702509Z [warning  ] <Target directly-compressed.tar>: Failed to find OS plugin, falling back to default [dissect.target.target]
Mounting to mounted with options: nothreads,allow_other,ro
fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf
FUSE error

I can't edit /etc/fuse.conf without being root. How can I disable the allow_other FUSE option that target-mount seems to add by default?

I commented out the line options["allow_other"] = True in ~/.local/lib/python3.10/site-packages/dissect/target/tools/mount.py and everything works fine then, but this is more of a hack than a solution.

Schamper commented 2 months ago

Thanks for reporting this. We could probably swap the default out for an argument (or fall back to without it if it fails and notify the user).

I'll see if I can make this change soon.