fuse(8)
๐ NAME ๐
Okay so this is fuse(8) from the System Manager's Manual, bestie โ the whole vibe is format and options for the fuse file systems.
๐ฆ DESCRIPTION ๐ฆ
FUSE (Filesystem in Userspace) is a simple interface for userspace programs to export a virtual filesystem to the Linux kernel. FUSE also aims to provide a secure method for non privileged users to create and mount their own filesystem implementations. No cap, that's the whole flex. ๐
๐ CONFIGURATION ๐
Some options regarding mount policy can be set in the file /etc/fuse.conf. Currently these options are:
mount_max = NNNโ sets the maximum number of FUSE mounts allowed to non-root users. The default is1000.user_allow_otherโ allows non-root users to specify theallow_otherorallow_rootmount options (see below).
โจ OPTIONS โจ
Most of the generic mount options described in mount are supported (ro, rw, suid, nosuid, dev, nodev, exec, noexec, atime, noatime, sync, async, dirsync). Filesystems are mounted with nodev,nosuid by default, and that can only be overridden by a privileged user. Periodt.
๐ General mount options:
These are FUSE specific mount options that can be specified for all filesystems:
default_permissionsโ by default FUSE doesn't check file access permissions, so the filesystem is free to implement its access policy or leave it to the underlying file access mechanism (e.g. in case of network filesystems). This option enables permission checking, restricting access based on file mode. This option is usually useful together with theallow_othermount option.allow_otherโ overrides the security measure restricting file access to the user mounting the filesystem. So all users (including root) can access the files. This option is by default only allowed to root, but this restriction can be removed with a configuration option described in the previous section.allow_rootโ similar toallow_otherbut file access is limited to the user mounting the filesystem and root. This option andallow_otherare mutually exclusive.kernel_cacheโ disables flushing the cache of the file contents on everyopen(2). This should only be enabled on filesystems where the file data is never changed externally (not through the mounted FUSE filesystem). Thus it is not suitable for network filesystems and other intermediate filesystems.
NOTE: if this option is not specified (and neitherdirect_io), data is still cached after theopen(2), so aread(2)system call will not always initiate a read operation.
auto_cacheโ enables automatic flushing of the data cache onopen(2). The cache will only be flushed if the modification time or the size of the file has changed.large_readโ issue large read requests. This can improve performance for some filesystems, but can also degrade performance. This option is only useful on 2.4.X kernels, as on 2.6 kernels request size is automatically determined for optimum performance.direct_ioโ disables the use of page cache (file content cache) in the kernel for this filesystem. This has several affects:- Each
read(2)orwrite(2)system call will initiate one or more read or write operations, data will not be cached in the kernel. - The return value of the
read()andwrite()system calls will correspond to the return values of the read and write operations. This is useful for example if the file size is not known in advance (before reading it).
- Each
max_read=Nโ with this option the maximum size of read operations can be set. The default is infinite. Note that the size of read requests is limited anyway to 32 pages (which is128kbyteon i386).max_readahead=Nโ set the maximum number of bytes to read-ahead. The default is determined by the kernel. Onlinux-2.6.22or earlier it's131072(128kbytes).max_write=Nโ set the maximum number of bytes in a single write operation. The default is128kbytes. Note that due to various limitations, the size of write requests can be much smaller (4kbytes). This limitation will be removed in the future.async_readโ perform reads asynchronously. This is the default.sync_readโ perform all reads (even read-ahead) synchronously.hard_removeโ the default behavior is that if an open file is deleted, the file is renamed to a hidden file (.fuse_hiddenXXX), and only removed when the file is finally released. This relieves the filesystem implementation of having to deal with this problem. This option disables the hiding behavior, and files are removed immediately in an unlink operation (or in a rename operation which overwrites an existing file).
It is recommended that you not use thehard_removeoption. Whenhard_removeis set, the following libc functions fail on unlinked files (returning errno ofENOENT):read(2),write(2),fsync(2),close(2),f*xattr(2),ftruncate(2),fstat(2),fchmod(2),fchown(2).
debugโ turns on debug information printing by the library.fsname=NAMEโ sets the filesystem source (first field in/etc/mtab). The default is the mount program name.subtype=TYPEโ sets the filesystem type (third field in/etc/mtab). The default is the mount program name. If the kernel supports it,/etc/mtaband/proc/mountswill show the filesystem type asfuse.TYPE. If the kernel doesn't support subtypes, the source field will beTYPE#NAME, or iffsnameoption is not specified, justTYPE.use_inoโ honor thest_inofield in kernel functionsgetattr()andfill_dir(). This value is used to fill in thest_inofield in thestat(2),lstat(2),fstat(2)functions and thed_inofield in thereaddir(2)function. The filesystem does not have to guarantee uniqueness, however some applications rely on this value being unique for the whole filesystem.readdir_inoโ ifuse_inooption is not given, still try to fill in thed_inofield inreaddir(2). If the name was previously looked up, and is still in the cache, the inode number found there will be used. Otherwise it will be set to-1. Ifuse_inooption is given, this option is ignored.nonemptyโ allows mounts over a non-empty file or directory. By default these mounts are rejected to prevent accidental covering up of data, which could for example prevent automatic backup.umask=Mโ override the permission bits inst_modeset by the filesystem. The resulting permission bits are the ones missing from the given umask value. The value is given in octal representation.uid=Nโ override thest_uidfield set by the filesystem (Nis numeric).gid=Nโ override thest_gidfield set by the filesystem (Nis numeric).blkdevโ mount a filesystem backed by a block device. This is a privileged option. The device must be specified with thefsname=NAMEoption.entry_timeout=Tโ the timeout in seconds for which name lookups will be cached. The default is1.0second. For all the timeout options, it is possible to give fractions of a second as well (e.g.entry_timeout=2.8).negative_timeout=Tโ the timeout in seconds for which a negative lookup will be cached. This means that if file did not exist (lookup returnedENOENT), the lookup will only be redone after the timeout, and the file/directory will be assumed to not exist until then. The default is0.0second, meaning that caching negative lookups is disabled.attr_timeout=Tโ the timeout in seconds for which file/directory attributes are cached. The default is1.0second.ac_attr_timeout=Tโ the timeout in seconds for which file attributes are cached for the purpose of checking ifauto_cacheshould flush the file data on open. The default is the value ofattr_timeout.intrโ allow requests to be interrupted. Turning on this option may result in unexpected behavior, if the filesystem does not support request interruption.intr_signal=NUMโ specify which signal number to send to the filesystem when a request is interrupted. The default is hardcoded toUSR1.modules=M1[:M2...]โ add modules to the filesystem stack. Modules are pushed in the order they are specified, with the original filesystem being on the bottom of the stack.
๐งฉ FUSE MODULES (STACKING) ๐งฉ
Modules are filesystem stacking support to high level API. Filesystem modules can be built into libfuse or loaded from shared object.
๐ iconv
Perform file name character set conversion. Options are:
from_code=CHARSETโ character set to convert from (seeiconv -lfor a list of possible values). Default isUTF-8.to_code=CHARSETโ character set to convert to. Default is determined by the current locale.
๐ฆ subdir
Prepend a given directory to each path. Options are:
subdir=DIRโ directory to prepend to all paths. This option is mandatory.rellinksโ transform absolute symlinks into relative.norellinksโ do not transform absolute symlinks into relative. This is the default.
๐ SECURITY ๐
The fusermount program is installed set-user-gid to fuse. This is done to allow users from fuse group to mount their own filesystem implementations. There must however be some limitations, in order to prevent Bad User from doing nasty things. Currently those limitations are:
- The user can only mount on a mountpoint, for which it has write permission.
- The mountpoint is not a sticky directory which isn't owned by the user (like
/tmpusually is). - No other user (including root) can access the contents of the mounted filesystem.
๐ NOTE ๐
FUSE filesystems are unmounted using the fusermount(1) command (fusermount -u mountpoint).
๐ AUTHORS ๐
The main author of FUSE is Miklos Szeredi <mszeredi@inf.bme.hu>.
This man page was written by Bastien Roucaries <roucaries.bastien+debian@gmail.com> for the Debian GNU/Linux distribution (but it may be used by others) from README file.
๐ SEE ALSO ๐
That's the whole fuse(8) glow-up from the System Manager's Manual, bestie โ the footer just says fuse(8), and this copy doesn't list a separate version or date. ๐
โจ๐ซถ
๐ฆ where this page comes from
- alpine 3.24: fuse-doc 2.9.9-r7 ยท GPL-2.0-only AND LGPL-2.1-only
- arch rolling: fuse2 2.9.9-6 ยท GPL-2.0-only AND LGPL-2.1-only
- centos-stream 10: fuse 2.9.9-25.el10 ยท GPL-1.0-or-later
- centos-stream 9: fuse 2.9.9-17.el9 ยท GPL+
- debian bookworm: fuse 2.9.9-6+b1 ยท GPL-2.0-only
- fedora 43: fuse 2.9.9-24.fc43 ยท GPL-1.0-or-later
- fedora 44: fuse 2.9.9-25.fc44 ยท GPL-1.0-or-later
- opensuse-leap 16.0: fuse 2.9.9-160000.2.2 ยท GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: fuse 2.9.9-160000.2.2 ยท GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: fuse 2.9.9-160000.2.2 ยท GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: fuse 2.9.9-160000.2.2 ยท GPL-2.0-or-later AND LGPL-2.1-or-later
- ubuntu jammy: fuse 2.9.9-5ubuntu3 ยท GPL-2.0-only
- ubuntu noble: fuse 2.9.9-8.1build1 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms