开发者

mount point - permission denied [closed]

开发者 https://www.devze.com 2023-01-09 19:51 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 6 years ago.

Improve this question

I created a fuse mountpoint. After mounting, the file permissions are all screwed up and it says I cannot ls or cd. Permission denied.

The file permissions look like this:

d????????? ? ? ? ? ? temp

and when i list the mounted devices I get: /dev/fuse on /temp type fuse (rw,nosuid,nodev)

I used mono-fuse. I just created a new folder with permissions 777 and the开发者_JAVA技巧n did a mount. After unmounting I can do all operations, but when I mount, I get such error.

I used HelloFS.exe that comes along with mono fuse for testing.

Can someone shed some light on this weird behavior and what mistake i have done.


I expect there is an incompatiblity with the userspace fuse library you're using and the kernel fuse version. This results in the kernel not understanding responses and it returning and EIO for everything (including the stat calls that "ls" does).

You should try increasing the debug level. As it's a Mono / CLR application, ensure that the libraries are of an appropriate version for your kernel; you may not need to recompile it.

You should also note that when you mount a directory, the mount-point's original permissions are ignore (and hence need not be 0777) ; the root directory of the new filesystem takes its place.

(You should probably not mount such a filesystem in /temp either; it is an example not for temp files)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号