dissect.target icon indicating copy to clipboard operation
dissect.target copied to clipboard

FUSE error because of allow_other

Open mxmlnkn opened this issue 1 year ago • 1 comments

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.

mxmlnkn avatar Apr 15 '24 16:04 mxmlnkn

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.

Schamper avatar Apr 19 '24 14:04 Schamper