Summary: | sysutils/fusefs-encfs: failed to open fuse device: Permission denied | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | greencoppermine |
Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> |
Status: | Closed Works As Intended | ||
Severity: | Affects Many People | CC: | elplutoniano, junovitch |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
greencoppermine
2014-10-07 00:50:04 UTC
I forgot, I am running FreeBSD 10.1-RC1 and the fuse package is fusefs-encfs-1.7.4_7 If I add the "/usr/local/bin/encfs" command to sudo and makes the normal user use sudo the command succeeds. However, the user will not be able to access the directory even though it is owned by him. Clearly something is messed up using fuse! The normal user is in group wheel too. Unfortunately, this port is not maintained and thus there is nobody to assign the PR to. I'll have to move it to "open" without assigning it to anyone. There is not bug. Solved for me when i added my user using encfs to the "operator" group. That is because of the permissions in the /dev/fuse file. Good luck! ;) ;) As mentioned above, /dev/fuse is owned by operator so either lax devfs.rules permissions or the user must be part of the operator group. This seems to work as intended as shown below so I am marking the PR as such. jason@Silverstone:/tmp/test % mkdir foo bar jason@Silverstone:/tmp/test % encfs /tmp/test/foo/ /tmp/test/bar/ # ...<truncated> ... jason@Silverstone:/tmp/test % ll foo/ total 5 -rw-r--r-- 1 jason wheel 1091 Sep 5 21:40 .encfs6.xml jason@Silverstone:/tmp/test % ll bar/ total 0 jason@Silverstone:/tmp/test % touch bar/testfile jason@Silverstone:/tmp/test % ll bar/ total 1 -rw-r--r-- 1 jason wheel 0 Sep 5 21:47 testfile jason@Silverstone:/tmp/test % ll foo/ total 5 -rw-r--r-- 1 jason wheel 0 Sep 5 21:47 ,5EcdxPBzRznuNh-LJR8h4Tl -rw-r--r-- 1 jason wheel 1091 Sep 5 21:40 .encfs6.xml jason@Silverstone:/tmp/test % ll /dev/fuse crw-rw---- 1 root operator 0xbd Sep 5 21:47 /dev/fuse Regarding not being able to access it when mounting as root, this is by design as well. See mount.fuse(8) for details, a brief quote follows. user_allow_other Allow non-root users to specify the allow_other or allow_root mount options (see below). |