This is Google's cache of http://lukeshu.ath.cx/1/wordpress/2010/11/fuse-is-crazy/. It is a snapshot of the page as it appeared on Dec 6, 2011 23:13:58 GMT. The current page could have changed in the meantime. Learn more

Text-only version
 
FUSE is crazy | ltsBlog

ltsBlog

FUSE is crazy

Well, I suppose just I’m only talking about Linux FUSE, I haven’t fiddled with FUSE on any other kernel. Anyway, FUSE screws with the idea of the root user:

$ ls
Makefile
build.log
...
$ sudo ls
ls: cannot open directory .: Permission denied
$ 

For those who don’t get it, the user with user ID `0′, usually with the username `root’ is the supreme administrator account — it is locked out of nothing, the kernel doesn’t even check file permissions when the user is root. The sudo (switch user do) command runs the following command as root. Anyway, even though the kernel doesn’t check file permissions when the user is root, FUSE does, in fact, it forces a umask of 0077, which means that even if the file permissions say “anyone logged in can read this file”, only the owner of the file can actually read it. I’m sure that this can be configured, but that doesn’t mean that it’s not brain damaged by default.

This entry was posted in Computers. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>